WO2009144903A1 - データ通信装置、データ通信システムおよびデータ通信制御方法 - Google Patents

データ通信装置、データ通信システムおよびデータ通信制御方法 Download PDF

Info

Publication number
WO2009144903A1
WO2009144903A1 PCT/JP2009/002270 JP2009002270W WO2009144903A1 WO 2009144903 A1 WO2009144903 A1 WO 2009144903A1 JP 2009002270 W JP2009002270 W JP 2009002270W WO 2009144903 A1 WO2009144903 A1 WO 2009144903A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
communication
priority
full
duplex communication
Prior art date
Application number
PCT/JP2009/002270
Other languages
English (en)
French (fr)
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 JP2008142215A external-priority patent/JP2009290650A/ja
Priority claimed from JP2008155461A external-priority patent/JP2009302933A/ja
Application filed by パナソニック株式会社 filed Critical パナソニック株式会社
Publication of WO2009144903A1 publication Critical patent/WO2009144903A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/14Two-way operation using the same type of signal, i.e. duplex
    • H04L5/16Half-duplex systems; Simplex/duplex switching; Transmission of break signals non-automatically inverting the direction of transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/14Two-way operation using the same type of signal, i.e. duplex

Definitions

  • the present invention relates to a communication system capable of communicating data and commands by switching between full-duplex half-duplex communication and full-duplex communication between two communication devices connected via a plurality of communication lines.
  • the priority of data transmission has not been considered.
  • one communication device wants to perform high-priority data transmission at high speed by half-duplex communication.
  • the priority is not considered, and full-duplex communication between the communication devices is not performed. Will be done.
  • it has been difficult to transmit high-priority data at high speed by half-duplex communication.
  • An object of the present invention is to provide a communication system capable of communication control that switches between full-duplex half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • the data communication device includes a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands.
  • An arbitration processing unit that performs an arbitration process for determining whether to grant the right of transmission to the communication partner device.
  • Another aspect of the present invention is a data communication device, and the data communication device includes a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands.
  • a data communication apparatus that is applied to a data communication system in which half-duplex communication and full-duplex communication of a plurality of signal lines can be switched between the apparatuses, and the data or command to be transmitted next
  • a priority transmission unit that transmits first priority information indicating priority to a communication partner device by full-duplex communication, and a first that indicates the priority of data or a command scheduled to be transmitted next by the communication partner device.
  • a priority receiving unit that receives the priority information of 2
  • a management unit that manages the received priority information that is the data priority being received in full-duplex communication, the received priority information, and the first priority Whether the device has the right to continue full-duplex communication of the data or command being received based on the information, or to temporarily suspend the full-duplex communication being received and transmit by half-duplex communication of the full line
  • An arbitration processing unit that performs an arbitration process for determining whether or not.
  • Another aspect of the present invention is a data communication system, which is constituted by a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands.
  • a data communication system in which full-duplex half-duplex communication and full-duplex communication of a plurality of signal lines can be switched between devices, and the data communication device prioritizes data or commands to be transmitted next
  • the priority transmission unit that transmits first priority information indicating the data to the communication partner device by full-duplex communication and the transmission priority information indicating the priority of the data or command being transmitted by the own device
  • a priority holding unit for receiving, a priority receiving unit for receiving second priority information indicating the priority of data or a command scheduled to be transmitted next by the communication partner device, and a priority during transmission Based on the information and the second priority information, full-duplex communication of the data or command being transmitted is continued, or full-duplex communication of the data or command being transmitted is temporarily suspended and full-line half-duplex communication is performed.
  • an arbitration processing unit that performs an arbitration process for
  • Another aspect of the present invention is a data communication system, which is constituted by a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands.
  • a data communication system in which full-duplex half-duplex communication and full-duplex communication of a plurality of signal lines can be switched between devices, and the data communication device prioritizes data or commands to be transmitted next
  • a priority transmission unit that transmits first priority information indicating the data to the communication partner device in full-duplex communication, and a second that indicates the priority of the data or command that the communication partner device is scheduled to transmit next
  • a priority receiving unit that receives priority information, a management unit that manages received priority information that is a data priority being received in full-duplex communication, received priority information, and first priority Whether the device has the right to continue full-duplex communication of the data or command being received based on the information, or to temporarily suspend the full-duplex communication being received and transmit by half-duplex communication of the full line
  • An arbitration processing unit that performs an arbitration process for
  • Another aspect of the present invention is a data communication control method, and the data communication control method includes a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands.
  • a data communication method used in a data communication system in which half-duplex communication and full-duplex communication of a plurality of signal lines can be switched between data communication apparatuses, and data or command to be transmitted next First priority information indicating the priority of the data is transmitted to the communication partner device by full-duplex communication, and the own device holds the priority information being transmitted indicating the priority of the data or command being transmitted,
  • the communication partner apparatus receives second priority information indicating the priority of data or command scheduled to be transmitted next, and is transmitting based on the priority information being transmitted and the second priority information. Determines whether to continue full-duplex communication of data or command, or to temporarily suspend full-duplex communication of data or command being transmitted and give the communication partner device the right to transmit by full-duplex half-duplex communication
  • the arbitration process is performed.
  • Another aspect of the present invention is a data communication control method, and the data communication control method includes a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands.
  • a data communication method used in a data communication system in which half-duplex communication and full-duplex communication of a plurality of signal lines can be switched between data communication apparatuses, and data or command to be transmitted next The first priority information indicating the priority of the data or command to be transmitted next by the communication partner device to the communication partner device in full-duplex communication.
  • Receiving information managing the priority information being received, which is the data priority being received in full-duplex communication, and based on the priority information being received and the first priority information, Or to continue the full duplex communication of commands, or with the own device the right to transmit in a half-duplex communication the whole line to suspend the full duplex communication being received, performs the determining arbitration processing.
  • FIG. 1 is a block diagram of a data communication apparatus according to the first embodiment.
  • FIG. 2 is an explanatory diagram of the basic format of the communication unit.
  • FIG. 3 is an explanatory diagram of the operation (basic operation) of the data communication apparatus.
  • FIG. 4 is an explanatory diagram of the operation (modified example) of the data communication apparatus.
  • FIG. 5 is an explanatory diagram of the operation (modified example) of the data communication apparatus.
  • FIG. 6 is an explanatory diagram of the operation (modified example) of the data communication apparatus.
  • FIG. 7 is an explanatory diagram of the operation (modified example) of the data communication apparatus.
  • FIG. 8 is a block diagram of a communication system according to the second embodiment.
  • FIG. 9 is an explanatory diagram of the basic format of the communication unit.
  • FIG. 1 is a block diagram of a data communication apparatus according to the first embodiment.
  • FIG. 2 is an explanatory diagram of the basic format of the communication unit.
  • FIG. 3 is
  • FIG. 10 is an explanatory diagram of the operation (basic operation) of the communication system.
  • FIG. 11 is an explanatory diagram of the operation (modification) of the communication system.
  • FIG. 12 is an explanatory diagram of the operation (modification) of the communication system.
  • FIG. 13 is an explanatory diagram of the operation (modified example) of the communication system.
  • FIG. 14 is an explanatory diagram of the operation (modified example) of the communication system.
  • the data communication device of the present invention is configured by a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands, and a half of all of the plurality of signal lines between the plurality of data communication devices.
  • a priority receiving unit that receives second priority information indicating the priority of data or a command scheduled to be transmitted next by the device, a transmission based on the priority information being transmitted and the second priority information.
  • a mediation processing unit that performs mediation processing for determination.
  • the data communication device of the present invention is configured by a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands, and a half of all of the plurality of signal lines between the plurality of data communication devices.
  • a priority transmission unit that transmits to the communication partner device by full-duplex communication, and a priority reception unit that receives second priority information indicating the priority of data or a command scheduled to be transmitted next by the communication partner device
  • a management unit that manages the priority information being received, which is the data priority being received in full-duplex communication, and based on the priority information being received and the first priority information,
  • Co Arbitration processing unit that performs arbitration processing to determine whether the local device has the right to continue full-duplex communication on the network or to temporarily suspend the full-duplex communication being received and transmit using full-line half-
  • the data communication system includes a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands, and a half of all the signal lines between the plurality of data communication devices.
  • a priority receiving unit that receives second priority information indicating the priority of data or a command scheduled to be transmitted next, a priority information being transmitted, and a second priority information based on the second priority information.
  • a mediation processing unit that performs mediation processing for determination.
  • the data communication system includes a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands, and a half of all the signal lines between the plurality of data communication devices.
  • a priority transmission unit for transmitting to the device in full-duplex communication, a priority reception unit for receiving second priority information indicating the priority of data or a command scheduled to be transmitted next by the communication partner device, Based on the priority information being received and the first priority information, the management unit that manages the priority information being received, which is the data priority being received in full-duplex communication, and data or commands being received
  • An arbitration processing unit that performs arbitration processing to determine whether the device has a right to continue full-duplex communication or to temporarily suspend the full-duplex communication being received and transmit by full-line half-duplex communication It has the structure provided with.
  • the data communication control method includes a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands, and a half of all the signal lines between the plurality of data communication devices.
  • the data communication control method includes a plurality of data communication devices connected by a plurality of signal lines capable of transmitting both data and commands, and a half of all the signal lines between the plurality of data communication devices.
  • Full-duplex or communication own device the right to transmit in a half-duplex communication suspended to the whole line to have, performs the determining arbitration processing.
  • the present invention considers the priority of data to be transmitted by providing an arbitration processing unit that performs arbitration processing based on priority information of data to be transmitted next and priority information of data currently being transferred. Communication control for switching between full-duplex half-duplex communication and full-duplex communication becomes possible.
  • This embodiment exemplifies a case where a plurality of data transfer requests are speculatively issued and used in a data processing system or the like that performs data transfer with faster response first.
  • high data transfer capability is realized by increasing the operation rate of the data bus (using the data bus efficiently).
  • FIG. 1 is a block diagram showing the configuration of the data communication apparatus according to the present embodiment.
  • the data communication apparatus 1 is connected via two signal lines 2 (DAT0, DAT1) so that bidirectional communication is possible.
  • This signal line 2 can transmit both commands and data with a single signal line (with the same signal line 2).
  • full-line half-duplex communication or full-duplex communication using two signal lines 2 can be switched with a communication partner apparatus.
  • FIG. 1 for convenience of explanation, an example in which two communication devices 1 are connected by two signal lines 2 is shown, but the number of signal lines 2 is not limited to this. .
  • the data communication device 1 includes a transmission control unit 3 that transmits data and commands to other devices (not shown) using two signal lines 2, and two signal lines 2. And a reception control unit 4 that receives data and commands from other devices.
  • the transmission control unit 3 includes a data transmission control unit 5 that performs data transmission control, a command transmission control unit 6 that performs command transmission control, and a buffer configured by a RAM, an HDD, and the like for temporarily storing transmission data and transmission commands 7.
  • the buffer 7 stores data and commands that the data communication apparatus 1 intends to transfer to the communication partner apparatus, priority information indicating the priority of transmission of the data and commands, and the like.
  • the transmission control unit 3 includes a MUX (multiplexer) 8 that multiplexes transmission data and a transmission command, and a P / S (parallel / serial conversion unit) 9 that converts the multiplexed data and command from parallel to serial. Prepare.
  • the reception control unit 4 includes a data reception control unit 10 that performs data reception control, a command reception control unit 11 that performs command reception control, and a buffer configured by a RAM, an HDD, and the like for temporarily storing received data and reception commands 12.
  • the buffer 12 stores data and commands received by the data communication apparatus 1 from a communication partner apparatus, priority information indicating the priority of the data and commands, and the like.
  • the reception control unit 4 includes an S / P (serial / parallel conversion unit) 13 that converts received data and commands from serial to parallel, and a DMUX (demultiplexer) that converts the data and commands into parallel data and commands. ) 14.
  • the command transmission control unit 6 controls priority information to be transmitted to the communication partner device, and manages priority information of data being transmitted to the communication partner device in full-duplex communication. It has.
  • the command reception control unit 11 includes a priority reception control unit 16 that controls priority information received from a communication partner device and manages priority information of data being received from the communication partner device in full-duplex communication. ing.
  • the priority transmission control unit 15 controls the data communication device 1 to transmit data and command priority information to be transmitted next to the communication partner device by full-duplex communication. Further, the priority reception control unit 16 performs control so that the communication partner apparatus receives data and command priority information to be transmitted next from the communication partner apparatus in full-duplex communication.
  • the data communication device 1 has whether the device itself has a right to transmit data and commands scheduled to be transmitted next in half-duplex communication of all lines (also referred to as a transmission right), or a communication partner device has, Or the mediation processing part 17 which performs the mediation processing which determines whether neither has the right is provided.
  • the data communication apparatus 1 includes a transmission switching unit 18 that switches between transmission data and commands to be transmitted to the two signal lines 2 and two reception data and commands according to the result of the arbitration process.
  • the arbitration processing unit 17 determines which device is based on the priority of the data or command scheduled to be transmitted next by the data communication device 1 and the priority of the data or command currently received from the communication partner device. Arbitration processing is performed to determine whether or not the transmission right is possessed. Further, the arbitration processing unit 17 determines which device has the transmission right based on the priority of the data or command currently being transmitted by the data communication device 1 and the priority of the data or command scheduled to be transmitted by the communication partner device. Arbitration processing is performed to determine whether or not there is. The contents of the arbitration process will be described later with reference to the drawings.
  • the priority transmission control unit 15 sends the arbitration request for requesting the communication partner device to start the arbitration process together with the priority information of the data and command to be transmitted next by the data communication device 1 in full-duplex communication. It has a function to send in. Then, the arbitration processing unit 17 starts the arbitration process after the arbitration request is transmitted or after the arbitration request is received from the communication partner apparatus by full-duplex communication.
  • the priority is set in the range of “0” to “9”, and the smaller the priority number (for example, the priority “0” is higher than the priority “9”), the higher the priority is. It shall be (see FIG. 2).
  • the arbitration processing unit 17 determines which priority is higher with respect to the arbitration request from the own device or the communication partner device, and makes a request with a higher priority. Grants the right to switch from full-duplex communication to full-line half-duplex communication.
  • the priority determination is performed only when half-duplex communication right of all lines is given to a higher priority or when the priority is a preset value, for example, two or more higher. There are cases where the right of dual communication is given.
  • the priorities are “7”, the priorities from “5” to “0” are applicable (in other words, the priority is one).
  • the two priorities are considered to be approximately equal).
  • the device itself is used by using both of the two signal lines 2.
  • the internal connection is switched by the transmission switching unit 18 so that transmission data or commands are transmitted to both DAT0 and DAT1 in order to perform device transfer (full-line half-duplex communication), and the DAT1 transfer direction switching unit 21 also automatically updates DAT1.
  • the transfer direction is switched to the direction in which the device transmits data or commands.
  • the start of the arbitration process is not limited to the case where the arbitration request is received together with the priority information having high priority in full duplex communication.
  • the arbitration process may be performed periodically or may be started when there is no data transfer after a predetermined time has elapsed. Further, the arbitration process may be started when data transfer of a predetermined size is completed, or may be started when a specific command process is completed. Further, the arbitration process may be started every time the processing of each command is completed.
  • the command transmission control unit 6 controls transmission of a request command indicating the data or command processing content scheduled to be transmitted next by the data communication apparatus 1. In this case, the command transmission control unit 6 performs control so that a request command is transmitted to the communication partner apparatus by full-duplex communication at the time of arbitration processing or data transfer start.
  • the half-duplex communication period of this full line takes into account the interruption of an emergency data communication request (a data communication request with a very high priority such as an interrupt request) during data transfer in half-duplex communication. It is preset to an appropriate length. In other words, it can be said that there is an upper limit for the full-duplex half-duplex communication period. This upper limit may be set based on the data transfer time (data transfer time) in half-duplex communication on all lines, and based on the data transfer size (total size of transferred data). It may be set.
  • the priority transmission control unit 15 adds the priority information of the own device and the arbitration request for requesting the start of the arbitration process to the end of the data or command transmitted by the data communication device 1, and transmits the data to the communication partner device. It has a function to control.
  • the priority reception control unit 16 has a function of acquiring priority information and an arbitration request attached to the end of data or commands received from a communication partner apparatus. The place where the priority information and the arbitration request are attached is not limited to the end of the data or command, and may be attached to the beginning of the data or command, for example. These priority information and arbitration request may be transmitted independently without being attached to data or commands. In addition to the priority information and the arbitration request, winning / losing result information determined by each device may be added.
  • FIG. 2 is a diagram illustrating an example of a basic format of a communication unit.
  • the communication unit includes data or command to be transmitted this time, priority information of data or command scheduled to be transmitted next, and an arbitration request for requesting the start of arbitration processing. Furthermore, you may include the winning / losing result information determined by comparing the received priority and the transmission priority.
  • the data or command to be transmitted includes read data and write data (data transferred in response to a read request or a write request), the above-described request command, and the like.
  • the priority of data and commands scheduled to be transmitted next is priority “0” to “9”.
  • the arbitration request for requesting the start of the arbitration process is “1” for request, “0” for no request, and the like.
  • the winning / losing result information includes, for example, the priority of the own device is higher: “win”, the priority of the own device is lower: “losing”, and the like.
  • a processing rule such as “own device: win” may be set in advance.
  • the request command includes data to be transmitted next or processing content information of the command, command identification information such as a command identification ID, error information and information of CRC comparison result (CRC success / failure) of the previous process, , Information on the reception result (success / failure of reception) of the transmitted data is included.
  • the processing content information of the request command includes the data to be transmitted next, the type of command, the transfer size, the upper limit of the half-duplex communication period of all lines, and the like.
  • the types of data and commands include a full-line half-duplex communication read request, a full-duplex communication read request, a full-line half-duplex communication write request, a full-duplex communication write request, and the like.
  • the types of data and commands include queue operations (priority change, rotation, etc.) to the communication partner device, and operations to issued commands (command cancellation, stop / restart, etc.). .
  • FIG. 3 is a diagram for explaining the basic operation of the communication system according to the present embodiment.
  • the data communication apparatus transmits a plurality of data (data A and B), and the communication partner apparatus transmits a plurality of data (data X to Z).
  • the illustration of both devices is omitted, but the direction of data transmission from the data communication device to the communication partner device (transmission direction) is the direction from the left to the right (indicated by a right-pointing arrow).
  • the direction of data transmission from the communication partner apparatus to the data communication apparatus is a direction from right to left (illustrated by a left-pointing arrow) in the figure.
  • this data communication device is “master communication device”
  • the communication partner device is “slave communication device”
  • the priority of data or command to be transmitted next by this data communication device is “master priority”
  • communication The priority of the data or command to be transmitted next by the partner device is defined as “slave priority”.
  • the master communication device transmits data A by full-duplex communication.
  • This data A is given priority information (master priority “4”) of data B to be transmitted next and “0” without arbitration request.
  • the slave communication device transmits data X by full-duplex communication.
  • This data X is assigned with priority information (slave priority “2”) of data Y scheduled to be transmitted next and “1” with arbitration request.
  • the master communication device receives an arbitration request from the slave communication device, the arbitration process is started.
  • the master communication device compares the priority “4” of data B currently being transmitted with the priority “2” of data Y that the slave communication device is scheduled to transmit next. In this case, since the priority of the data Y is higher, the winning / losing result information becomes “negative”, the transfer of the data B being transmitted in the full-duplex communication is temporarily suspended, and the data Y of the slave communication device is transferred to DAT0 as the entire line. The transfer direction is switched so as to perform half-duplex communication.
  • the arbitration processing is not performed by the master communication device in response to the arbitration request from the slave communication device and the priority of data to be transmitted next as shown in FIG.
  • the priority “4” of data B being transmitted by the communication device is compared with the priority “2” of data Y to be transmitted next by the slave communication device, and the slave communication device is “win”. May be notified.
  • the slave communication apparatus transmits the data Y by half-duplex communication of all lines by switching the transfer direction of DAT0. In this way, transmission of high-priority data Y can be performed by half-duplex communication on all lines without waiting for completion of transfer of low-priority data B.
  • the master communication device resumes the remaining data transmission of the data B by full-duplex communication, and the slave communication device transmits a request command indicating the processing content of the next data Z, Data Z transmission is performed by full-duplex communication.
  • the slave communication device sets the priority “2” of the data Y scheduled to be transferred next and the arbitration request for requesting the full-line half-duplex communication “1”: Requested And send.
  • the data B being transmitted by the master communication device in full-duplex communication has a priority “4” and is lower than the priority of the data Y. Therefore, the data Y is transmitted in full-line half-duplex communication. It can be transferred. Therefore, the request command for data Y and the data Y are transferred using both DAT0 and DAT1.
  • the request command may be transferred only by DAT0, and the data Y may be transferred by both DAT0 and DAT1.
  • FIG. 3 shows a case where the master communication device suspends the transfer of data B being transmitted in full-duplex communication, and resumes from the continuation later. However, the transfer of data B is stopped halfway, You can redo the transfer from the beginning.
  • FIG. 4 is a diagram for explaining a modification of the operation of the communication system.
  • the operation when the priority of the data B temporarily suspended during the data Y transfer is increased is illustrated.
  • the master communication device does not resume data B by full-duplex communication, but raises the priority from “4” to “3” before the temporary interruption, Transition to the arbitration period to request duplex communication.
  • the priority of the data B transmitted by the master communication device and the data Z scheduled to be transmitted next by the slave communication device is compared, the data B is higher, so the master communication device transfers the data B all lines. Can be resumed by half-duplex communication.
  • the transfer of data B whose transfer is temporarily suspended by the transfer of high-priority data Y can be performed at half-duplex communication on all lines by increasing the priority when resuming according to the length of the interruption period. it can.
  • the communication is resumed with the same full-duplex communication as before the interruption as shown in FIG. 3, or an arbitration period is provided as shown in FIG. It is desirable to be able to set in advance whether to resume with heavy communication.
  • FIG. 5 is a diagram for explaining another modified example of the operation of the communication system.
  • the master communication device receives the priority “2” of data Y and the arbitration request from the slave communication device
  • the data B being transferred by the full-duplex communication is transmitted by the half-duplex communication of the full line. Switch to transfer. By doing so, transfer of data B can be completed as soon as possible, and transfer of data Y with the next highest priority can be performed by half-duplex communication of all lines.
  • FIG. 6 is a diagram for explaining another modification of the operation of the communication system.
  • the slave communication device In the modification of FIG. 6, there is no data that the slave communication device will transfer next when the data X transfer is completed, and the slave communication device transmits the priority “9”, so that there is no next transfer data. Notify that there is.
  • the master communication device When the master communication device receives the priority “9” from the slave communication device, the master communication device switches the data B being transmitted in the full-duplex communication to the full-line half-duplex communication. By doing so, the transfer efficiency can be increased without the DAT 1 being in an idle state.
  • the master communication device may continue the full-duplex communication as it is, assuming that a transfer request is subsequently made to the slave communication device. It is desirable to be able to set in advance whether to continue full-duplex communication or switch to half-duplex communication.
  • FIG. 7 is a diagram for explaining another modification of the operation of the communication system.
  • an upper limit is set for the half-duplex communication period of the full line of data Y, and data C (data with very high priority) is transmitted to the master communication device during the full-line half-duplex communication.
  • data C data with very high priority
  • the slave communication device transmits the data Y up to the upper limit of the full-duplex half-duplex communication period.
  • FIG. 7 shows an example in which the master communication device transmits data C by full-line half-duplex communication, transmission of data C may be performed by full-duplex communication. Then, after the transmission of data C is completed, the remaining portion of data Y is transmitted by half-duplex communication of all lines. In this way, it is possible to respond to an emergency transmission interrupt request for data C (data with very high priority) during full-line half-duplex communication.
  • the arbitration processing unit 17 that performs the arbitration process based on the priority information of the data scheduled to be transmitted next and the priority information of the data currently being transferred is provided. By providing, it becomes possible to perform communication control for switching between full-duplex half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • the master priority priority of data or command scheduled to be transmitted next by the master communication device
  • the master communication device Arbitration processing is performed to determine whether or not full-line half-duplex communication can be performed.
  • the master communication device can preferentially perform data transmission by half-duplex communication of all lines. In this way, it is possible to switch between full-line half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • the full-duplex communication is temporarily interrupted, and the high-priority data is half-full-line. It becomes possible to transfer by duplex communication.
  • the priority of the data whose transfer is interrupted is When the transfer is completed in half-duplex communication, when the suspended data transfer is resumed, a request command is sent again and arbitration processing is performed to transfer the suspended data to half-duplex communication. It becomes possible to communicate at high speed. Alternatively, if another high-priority data transfer request is generated while the transfer is interrupted, it is possible to perform a newly generated high-priority data transfer instead of the interrupted transfer.
  • the full-duplex communication being transferred is changed to half-duplex communication. By switching, it is possible to complete the data transfer being transferred as soon as possible and switch the transfer to a half-duplex communication with a high priority.
  • the full-duplex communication is switched to the half-duplex communication. It becomes possible to increase the transfer efficiency of the transmission path.
  • the length of the full-line half-duplex communication period is set in advance. That is, an upper limit is set in advance for the full-duplex half-duplex communication period. In this way, by setting an upper limit for the full-line half-duplex communication period, it becomes possible to respond to an interrupt request such as urgent data transmission, and the responsiveness is improved.
  • priority information is added to the end of data and commands, and the priority information is transmitted together with the data and commands.
  • priority information is transmitted together, so that priority information can be transmitted easily and reliably.
  • priority information is always transmitted and received together with data and commands, it is possible to always grasp the status of priority of transmission data on the other party (other communication device 1).
  • FIG. 8 is a block diagram showing the configuration of the data transfer apparatus according to this embodiment.
  • the data transfer apparatus 101 is connected to be capable of bidirectional communication via two signal lines 102 (DAT0, DAT1).
  • This signal line 102 can transmit both commands and data with a single signal line (with the same signal line 102).
  • half-duplex communication or full-duplex communication of the full line using the two signal lines 102 can be switched with the communication partner apparatus.
  • FIG. 8 for convenience of explanation, an example in which the data transfer apparatus 101 is connected by two signal lines 102 is shown, but the number of signal lines 102 is not limited to this.
  • the data transfer apparatus 101 uses two signal lines 102 to transmit a data and command to another apparatus (not shown), and the two signal lines 102. And a reception control unit 104 that receives data and commands from other devices.
  • the data transfer apparatus 101 also includes a data transmission control unit 113a that performs data transmission control, a command transmission control unit 112a that performs command transmission control, and transmission data and a transmission command that are temporarily stored in the transmission control unit 103. And a buffer 106a composed of RAM, HDD, or the like.
  • the buffer 106a stores data and commands that the data transfer apparatus 101 intends to transfer to a communication partner apparatus, priority information indicating the priority of transmission of the data and commands, and the like.
  • the transmission control unit 103 also includes a MUX (multiplexer) 114 that multiplexes transmission data and transmission commands, and a P / S (parallel / serial conversion unit) 115 that converts the multiplexed data and commands from parallel to serial. Prepare.
  • the reception control unit 104 includes a data reception control unit 113b that performs data reception control, a command transmission control unit 112b that performs command reception control, and a buffer configured by a RAM, an HDD, or the like for temporarily storing received data and reception commands. 106b.
  • the buffer 106b stores data and commands received by the data transfer apparatus 101 from the communication partner apparatus, priority information indicating the priority of the data and commands, and the like.
  • the reception control unit 104 also includes an S / P (serial / parallel conversion unit) 117 that converts received data and commands from serial to parallel, and a DMUX (demultiplexer) that separates the parallel converted data and commands. 116.
  • the command transmission control unit 112a includes a priority transmission control unit 107 that controls transmission of priority information
  • the command reception control unit 112b includes a priority reception control unit 108 that controls reception of priority information.
  • the priority transmission control unit 107 performs control so that the data and command priority information to be transmitted next by the data transfer apparatus 101 is transmitted to the communication partner apparatus by full-duplex communication.
  • the priority reception control unit 108 performs control so that the communication partner apparatus receives data and command priority information to be transmitted next from the communication partner apparatus by full-duplex communication.
  • the data transfer device 101 has its right to transmit data and commands scheduled to be transmitted next in half-duplex communication of all lines (also referred to as a transmission right) or whether the device of the communication partner has,
  • an arbitration processing unit 109 that performs an arbitration process for determining whether or not both have the right, and whether to transmit data or a command to be transmitted to two signal lines 102 according to the result of the arbitration process
  • a transmission switching unit 118 that switches between, a reception switching unit 119 that switches which of the two signal lines 102 receives received data and commands, a DAT0 transfer direction switching unit 120 that switches a transfer direction of DAT0, and a transfer of DAT1
  • DAT1 transfer direction switching unit 121 that switches the direction.
  • the arbitration processing unit 109 determines which one of the data and command to be transmitted next by the data transfer apparatus 101 and the priority of the data and command to be transmitted next by the communication partner apparatus. Arbitration processing is performed to determine whether the device has the transmission right. The contents of the arbitration process will be described later with reference to the drawings.
  • the priority transmission control unit 107 sends the arbitration request for requesting the communication partner apparatus to start the arbitration process together with the priority information of the data and command scheduled to be transmitted next by the data transfer apparatus 101. It has a function to send in. Then, the arbitration processing unit 109 receives the arbitration request from the communication partner device in full-duplex communication after the transmission of the arbitration request (the arbitration request may be received together with the priority from the communication partner device). Or after receiving an arbitration request from the communication partner device in full-duplex communication and sending the priority of the device to the communication partner in full-duplex communication (arbitration with priority to the communication partner device) The arbitration process is started when the request is transmitted.
  • the priority is set in the range of “0” to “9” in this example, and the lower the priority number (for example, the priority “0” is higher than the priority “9”). It is assumed to be high (see FIG. 9). Then, according to this priority, the arbitration processing unit 109 determines which priority is higher with respect to the arbitration request from the own device or the communication partner device, and makes a request with a higher priority. , Giving the right to switch from full-duplex communication to full-line half-duplex communication.
  • the priority is determined only when the priority is given to the higher half-duplex communication for all lines or even when the priority is a preset value, for example, two or more. A case where the right of half-duplex communication is given may be considered.
  • both of the two signal lines 102 are used to transfer the own device (half-duplex communication of all lines).
  • the transmission switching unit 118 switches internal connections so that transmission data or commands are transmitted to both, and the DAT1 transfer direction switching unit 121 switches the transfer direction in the direction in which the DAT1 also transmits data or commands.
  • the start of the arbitration process is not limited to the case where the arbitration request is received together with the priority information having high priority in full duplex communication.
  • the arbitration process may be performed periodically or may be started when there is no data transfer after a predetermined time has elapsed. Further, the arbitration process may be started when data transfer of a predetermined size is completed, or may be started when a specific command process is completed. Further, the arbitration process may be started every time the processing of each command is completed.
  • the transmission control unit 103 includes a command transmission control unit 112a that controls transmission of a request command indicating the processing contents of data or a command scheduled to be transmitted next by the data transfer apparatus 1.
  • the command transmission control unit 112a sends a request command to the communication partner device in full-duplex communication in the arbitration process. Control to send in. If the priority of the own device and the priority of the other device are the same, “Master communication device has transmission right”, “Perform arbitration again”, or “Acquire transmission right alternately. Processing rules such as “” may be set in advance.
  • the priority transmission control unit 107 has a function of controlling the priority information of the master priority at the start of the arbitration process to be transmitted to the communication partner apparatus by full duplex communication.
  • the command transmission control unit 112a has a function of controlling the priority of the own device and the request command at the start of the arbitration process to be transmitted to the communication partner apparatus in full duplex communication in the arbitration process. (See FIG. 11).
  • the start of the arbitration process includes a period from immediately before the start of the arbitration process to immediately after the start of the arbitration process.
  • the transmission control unit 103 controls the data transfer apparatus 101 to transmit a part of data scheduled to be transmitted next in advance during an idle period from the transmission of the priority information to the start of the arbitration process.
  • the preceding transmission control unit 113 may be provided. Note that the data advance transmission control unit 113 may perform control so as to transmit all the data to be transmitted next when the idle period is sufficiently long.
  • the data transfer apparatus 101 transmits full-line half-duplex communication.
  • the half-duplex communication period of this full line takes into account the interruption of an emergency data communication request (a data communication request with a very high priority such as an interrupt request) during data transfer in half-duplex communication. It is preset to an appropriate length. In other words, it can be said that there is an upper limit for the full-duplex half-duplex communication period. This upper limit may be set based on the data transfer time (data transfer time) in half-duplex communication on all lines, and based on the data transfer size (total size of transferred data). It may be set.
  • the priority transmission control unit 107 adds master priority priority information and an arbitration request for requesting the start of the arbitration process to the end of the data or command transmitted by the data transfer apparatus 1, and sends it to the communication partner apparatus. A function to control transmission is provided.
  • the priority reception control unit 108 also has a function of acquiring priority information and an arbitration request attached to the end of data or commands received from a communication partner apparatus. The place where the priority information and the arbitration request are attached is not limited to the end of the data or command, and may be attached to the beginning of the data or command, for example. These priority information and arbitration request may be transmitted independently without being attached to data or commands. In addition to the priority information and the arbitration request, winning / losing result information determined by each device may be added.
  • FIG. 9 is a diagram illustrating an example of a basic format of a communication unit.
  • the communication unit is composed of data or command to be transmitted this time, priority information of data or command to be transmitted next, and an arbitration request for requesting the start of arbitration processing. Further, it may include winning / losing result information determined by comparing the received slave priority with the transmitted master priority.
  • the data or command to be transmitted includes read data and write data (data transferred in response to a read request or a write request), the above-described request command, and the like.
  • the priority of data and commands scheduled to be transmitted next is priority “0” to “9”.
  • the arbitration request for requesting the start of the arbitration process is “1” for request, “0” for no request, and the like.
  • the winning / losing result information includes, for example, a master priority having a higher priority: “win”, a master priority having a lower priority: “losing”, and the like.
  • a processing rule such as “master communication device: win” may be set in advance.
  • the request command includes data to be transmitted next or processing content information of the command, command identification information such as a command identification ID, error information and information of CRC comparison result (CRC success / failure) of the previous process, , Information on the reception result (success / failure of reception) of the transmitted data is included.
  • the processing content information of the request command includes the data to be transmitted next, the type of command, the transfer size, the upper limit of the half-duplex communication period of all lines, and the like.
  • the types of data and commands include a full-line half-duplex communication read request, a full-duplex communication read request, a full-line half-duplex communication write request, a full-duplex communication write request, and the like.
  • the types of data and commands include queue operations (priority change, rotation, etc.) to the communication partner device, and operations to issued commands (command cancellation, stop / restart, etc.). .
  • FIG. 10 is a diagram for explaining the basic operation of the communication system according to the present embodiment.
  • the data transfer apparatus transmits a plurality of data (data A to C), and the communication partner apparatus transmits a plurality of data (data X to Z).
  • the illustration of both devices is omitted, but the direction of data transmission (transmission direction) from the data transfer device to the communication partner device is the direction from the left to the right (indicated by a right-pointing arrow).
  • the direction of data transmission from the communication partner device to the data transfer device is a direction from right to left (illustrated by a left-pointing arrow) in the drawing.
  • this data transfer device is the master communication device
  • the communication partner device is the slave communication device
  • the priority of the data or command to be transmitted next by this data transfer device is the master priority
  • the communication partner device is the next.
  • the priority of the data or command to be transmitted is the slave priority.
  • the master communication device first transmits data A by full-duplex communication.
  • This data A is given priority information (master priority “4”) of data B to be transmitted next and “0” without arbitration request.
  • the data A is attached with the result information of the outcome determined by comparing the received slave priority with the master priority to be transmitted. It is not done.
  • the slave communication device transmits data X by full-duplex communication.
  • priority information (slave priority “2”) of data Y to be transmitted next and “1” with an arbitration request are attached.
  • the slave priority “2” of data Y is compared with the master priority “4” of data B, since the priority of data Y is higher, the winning / losing result information is “win”, and the information is also It may also be sent (not shown). Since the arbitration request is transmitted from the slave communication device and the slave priority is higher than the master priority, the arbitration process is started.
  • the master communication device Before the arbitration process is started, the master communication device is given an opportunity to transmit the master priority. In this case, the master communication device performs transmission of data B by full-duplex communication. This data B is given priority information (master priority “5”) of data C scheduled to be transmitted next and “0” without arbitration request.
  • master priority “5” of data D and the slave priority “2” of data Y are compared, the priority of data D is lower, so the winning / losing result information is “losing”, and the information is added. May be sent.
  • the arbitration process is started based on the arbitration request from the slave communication device.
  • the master communication device transmits a request command indicating the processing content of the data C to be transmitted next (such as a write request for full duplex communication) by full duplex communication.
  • This request command is attached with priority information (slave priority “5”) of data C to be transmitted next.
  • the slave priority “2” of data Y is compared with the master priority “5” of data C, the priority of data Y is higher. You may also send it.
  • the slave communication device transmits a request command indicating the processing content of the data Y to be transmitted next (such as a write request for full-line half-duplex communication) by full-duplex communication.
  • This request command is attached with priority information (slave priority “2”) of data Y to be transmitted next.
  • priority information slave priority “2”
  • the slave priority “2” of data Y is compared with the master priority “5” of data C, the priority of data Y is higher, so the winning / losing result information is “win”. You may also send it.
  • the slave communication apparatus transmits the data Y by half-duplex communication of all lines by switching the transfer direction of DAT0. In this way, high-priority data Y can be transmitted by full-line half-duplex communication.
  • the master communication device performs transmission of data C by full-duplex communication, and the slave communication device transmits a request command indicating the processing content of the next data Z, data Z transmission. Use full-duplex communication.
  • FIG. 11 is a diagram for explaining a modified example of the operation of the communication system.
  • the master communication apparatus transmits a request command indicating the processing contents of data D to be transmitted next (such as a write request for full-line half-duplex communication) by full-duplex communication.
  • This request command is attached with priority information (master priority “1”) of data D to be transmitted next.
  • priority information master priority “1”
  • the master priority “1” of the data D and the slave priority “2” of the data Y are compared, the priority of the data E is higher, so the winning / losing result information is “win”.
  • the master communication device since the master priority is higher than the slave priority, it is determined that the master communication device has the transmission right for full-line half-duplex communication. Then, based on the result of such arbitration processing, the master communication device transmits data D by full-line half-duplex communication. In this way, high-priority data E can be transmitted by full-line half-duplex communication.
  • FIG. 12 is a diagram for explaining another modification of the operation of the communication system.
  • the operation in the case where the slave communication device transmits part of the data Y in advance during the idle period until the start of the arbitration process is illustrated.
  • the slave communication device transmits a part of the data Y by full duplex communication.
  • arbitration processing is performed in the same manner as in the example of FIG. 10, and based on the result of the arbitration processing, the slave communication device transmits the remainder of data Y by half-duplex communication of all lines.
  • the slave communication apparatus since the slave communication apparatus transmits a part of the data Y in advance, the transmission of the data Y (transmission of the remaining portion of the data Y) in the half-duplex communication of all lines can be shortened accordingly.
  • FIG. 13 is a diagram for explaining another modified example of the operation of the communication system.
  • an upper limit is set for the half-duplex communication period of the full line of data Y, and data E (very high priority data) is sent to the master communication device during the full-line half-duplex communication.
  • data E very high priority data
  • the operation when an emergency transmission interrupt request is made is illustrated.
  • the slave communication device transmits the data Y up to the upper limit of the full-duplex half-duplex communication period.
  • the master communication device transmits data E after the elapse of the full-duplex half-duplex communication period.
  • FIG. 13 shows an example in which the master communication apparatus transmits data E by full-line half-duplex communication
  • transmission of data E may be performed by full-duplex communication.
  • the remaining portion of the data Y is transmitted by full-duplex half-duplex communication. In this way, it is possible to respond to an emergency transmission interrupt request for data E (data with very high priority) during half-duplex communication on all lines.
  • FIG. 14 is a diagram for explaining another modification of the operation of the communication system.
  • the arbitration process is started after the transmission of data Y is completed in the full-line half-duplex communication.
  • the master communication device transmits a request command indicating the processing content of data C to be transmitted next (such as a write request for full-duplex communication) by full-duplex communication.
  • This request command is attached with priority information (slave priority “5”) of data C to be transmitted next.
  • priority information slave priority “5” of data C and the slave priority “7” of the data Z are compared, the priority of the data D is higher, and the winning / losing result information is “win”.
  • the slave communication device transmits a request command indicating the processing contents of data Z to be transmitted next (such as a write request for full-line half-duplex communication) by full-duplex communication.
  • This request command is attached with priority information (slave priority “7”) of data Z to be transmitted next.
  • the slave priority “7” of the data Z is compared with the master priority “5” of the data C, the priority of the data Z is lower, so the winning / losing result information is “losing”.
  • the slave communication device since the slave priority is lower than the master priority, the slave communication device does not have a transmission right for full-line half-duplex communication (the master device 101 has a transmission right for full-duplex communication). It is determined that it has). Then, based on the result of such arbitration processing, the master communication device transmits data C by full-duplex communication, and the slave communication device transmits data Z by full-duplex communication.
  • the priority of the data to be transmitted is provided by providing the arbitration processing unit 9 that performs the arbitration processing based on the priority information of the data scheduled to be transmitted next. This makes it possible to perform communication control for switching between full-duplex half-duplex communication and full-duplex communication.
  • the master priority priority of data or command scheduled to be transmitted next by the master communication device
  • the slave priority data scheduled to be transmitted next by the slave communication device
  • arbitration processing is performed to determine whether or not the master communication device can perform full-line half-duplex communication.
  • the master communication device can preferentially perform data transmission by half-duplex communication of all lines. In this way, it is possible to switch between full-line half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • the arbitration request is transmitted to the slave communication device, and the priority information of the slave priority is received from the slave communication device.
  • the slave communication device is given an opportunity to transmit the slave priority, and the fair arbitration processing can be performed.
  • the arbitration process is started when it is determined that the master priority is higher than the slave priority. In this way, the start of the arbitration process is determined based on the priority of the data to be transmitted. This makes it possible to switch between full-line half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • a request command is transmitted from the master communication device to the slave communication device in the arbitration process.
  • This request command indicates data scheduled to be transmitted next by the master communication apparatus and the processing contents of the command (for example, full-line half-duplex communication).
  • the master communication device wants to transmit data with high priority
  • it is determined that the master priority is higher than the slave priority and data transmission is performed in half-duplex communication on all lines based on the request command. This makes it possible to switch between full-line half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • priority information and a request command of the master priority at the start of the arbitration process are transmitted. For example, when it becomes necessary to transmit high priority data before the start of the arbitration process, the data to be transmitted next is changed. Even in such a case, since the priority and the request command for the data transmission after the change are transmitted, it is possible to cope with the change of the data scheduled to be transmitted.
  • the data transfer apparatus of the present embodiment it becomes possible to transmit a part of the data scheduled to be transmitted within the idle period, and the data transmission efficiency is improved.
  • the length of the full-line half-duplex communication period is set in advance. That is, an upper limit is set in advance for the full-duplex half-duplex communication period. In this way, by setting an upper limit for the full-line half-duplex communication period, it becomes possible to respond to an interrupt request such as urgent data transmission, and the responsiveness is improved.
  • priority information is added to the end of data and commands, and the priority information is transmitted together with the data and commands.
  • priority information is transmitted together, so that priority information can be transmitted easily and reliably.
  • priority information is always transmitted and received together with data and commands, it is possible to always grasp the status of the priority of transmission data on the other party (the other communication apparatus 101).
  • the data transfer device includes a plurality of data transfer devices connected by a plurality of signal lines capable of transmitting both data and commands, and the plurality of data transfer devices are connected between the plurality of data transfer devices.
  • a priority transmission unit for transmitting first priority information to a communication partner device by full-duplex communication, and a second priority indicating a priority of data or a command scheduled to be transmitted next by the communication partner device Based on the priority receiving unit that receives the degree information, the right to transmit by half-duplex communication of all lines based on the first priority information and the second priority information noisysy Les has a configuration provided with, an arbitration processing unit that performs a determining arbitration processing or has.
  • the first priority priority of data or command scheduled to be transmitted next by the own device
  • the second priority priority of data or command scheduled to be transmitted next by the communication partner device.
  • An arbitration process is performed to determine whether either the own device or the communication partner device can perform full-line half-duplex communication.
  • the own device can preferentially transmit data by half-duplex communication of all lines. In this way, it is possible to switch between full-line half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • the data transfer system includes a plurality of data transfer devices connected by a plurality of signal lines capable of transmitting both data and commands, and all the plurality of signal lines are connected between the plurality of data transfer devices.
  • the data transfer device includes first priority information indicating a priority of data or a command scheduled to be transmitted next A priority transmission unit that transmits the data to the communication partner device by full-duplex communication, and a priority for receiving second priority information indicating the priority of the data or command to be transmitted next by the communication partner device.
  • the own device or the device of the communication partner has the right to transmit by full-duplex half-duplex communication based on the degree receiving unit, the first priority information, and the second priority information It has an arbitration processing unit that performs a determining arbitration processing, the configuration with.
  • an arbitration process that determines whether either the own device or the communication partner device can perform full-line half-duplex communication. Is done. Thereby, for example, when the own device wants to transmit data with higher priority (than the communication device of the communication partner), the own device can preferentially transmit data by half-duplex communication of all lines. In this way, it is possible to switch between full-line half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • the data transfer control method includes a plurality of data transfer devices connected by a plurality of signal lines capable of transmitting both data and commands, and the plurality of signal lines are connected between the plurality of data transfer devices.
  • the arbitration process for determining whether the own device or the communication partner device can perform full-line half-duplex communication based on the first priority and the second priority is performed. Done. Thereby, for example, when the own device wants to transmit data with higher priority (than the communication partner device), the own device can preferentially transmit data by half-duplex communication of all lines. In this way, it is possible to switch between full-line half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted.
  • full-line half-duplex is considered in consideration of the priority of data to be transmitted. It is possible to provide a communication system having an effect of enabling communication control for switching between communication and full-duplex communication.
  • the arbitration processing unit compares the first priority information and the second priority information, and continues the half-duplex communication when both the priority information are equal. If the priority of the first priority information is higher, it is determined that the own apparatus performs full-duplex half-duplex communication. If the priority of the second priority information is higher, It has the structure which determines so that the apparatus of a communicating party may perform half-duplex communication of all the lines.
  • the priority transmitting unit sends a first arbitration request for requesting the start of the arbitration process to the communication partner apparatus together with the first priority information.
  • the priority receiving unit receives the second arbitration request for requesting the start of the arbitration process by full-duplex communication together with the second priority information.
  • the arbitration processing unit may send the second arbitration request together with the second priority information or the second priority information after the transmission of the first arbitration request.
  • the configuration is such that the arbitration process is started when a full duplex communication is received from the communication partner device.
  • the priority transmitting unit sends a first arbitration request for requesting the start of the arbitration process to the communication partner apparatus together with the first priority information.
  • the priority receiving unit receives the second arbitration request for requesting the start of the arbitration process by full-duplex communication together with the second priority information.
  • the arbitration processing unit may receive the first arbitration request together with the first priority information or the first priority information after receiving the second arbitration request. It has a configuration for starting the arbitration process when it is transmitted to the communication partner apparatus by full-duplex communication.
  • the arbitration processing unit sends a request command indicating the processing contents of data or a command scheduled to be transmitted next by the own apparatus when the arbitration process is performed. It has a configuration including a command transmission unit that transmits to the apparatus by full-duplex communication.
  • the priority transmission unit can transmit the first priority information at the start of the arbitration process to the communication partner apparatus by full-duplex communication
  • the priority receiving unit can receive the second priority information at the start of the arbitration process from the communication partner device in full-duplex communication
  • the arbitration processing unit is configured to start the arbitration process. The arbitration process is performed based on the first priority information and the second priority information.
  • the data transfer apparatus has at least a part of data scheduled to be transmitted next in its own apparatus during an idle period from the transmission of the first priority information to the start of the arbitration process. Is provided with a data transmission unit that transmits the data in advance.
  • the length of a period during which the data or command scheduled to be transmitted next by the own apparatus is transmitted to the communication partner apparatus by full-line half-duplex communication is preset.
  • the priority transmission unit has a configuration in which the first priority information is transmitted with data or a command transmitted by the apparatus attached thereto.
  • the communication device has an effect of enabling communication control for switching between full-duplex half-duplex communication and full-duplex communication in consideration of the priority of data to be transmitted, This is useful in a data processing system that speculatively issues a plurality of data transfer requests.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Communication Control (AREA)
  • Bidirectional Digital Transmission (AREA)

Abstract

 データ通信装置(1)は、2つのデータ通信装置間において全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムに適用される。データ通信装置(1)(例えばマスター通信装置)は、通信相手の通信装置(1)(例えばスレーブ通信装置)へ全二重通信で送信中のデータ優先度を管理するとともに、スレーブ通信装置が次に送信する予定のデータの優先度(スレーブ優先度)をスレーブ通信装置から受信する。そして、送信中のデータ優先度とスレーブ優先度に基づいて、全二重通信でのデータ送信を継続するか、全二重通信を一時中断して全線の半二重通信で送信する権利をスレーブ通信装置に与えるか、を判定する調停処理が行われる。このようにして、送信するデータの優先度を考慮して全線の半二重通信と全二重通信の切替えを行う通信制御が可能なデータ通信装置が提供される。

Description

データ通信装置、データ通信システムおよびデータ通信制御方法
 本発明は、複数の通信線を介して接続された2つの通信装置間において、全線の半二重通信と全二重通信を切り換えてデータやコマンドの通信が可能な通信システムに関するものである。
 従来、2本のデータ通信線を介して接続された2つの通信装置間で、全二重通信と半二重通信を切り換えて通信を行うシステムが提案されている(例えば特許文献1参照)。この従来のシステムでは、2本のデータ通信線上の送信要求をモニタし、全二重通信(一方のデータ通信線を用いて送信するとともに、他方のデータ通信線を用いて受信する)と半二重通信(両方のデータ通信線を用いて送信または受信を行う)の切替えが行われる。例えば、両方の通信装置からデータ送信の要求がある場合には全二重通信が行われ、一方の通信装置からのみデータ送信の要求がある場合には半二重通信が行われる。
特開2002-94600号公報
 しかしながら、従来のシステムにおいては、データ送信の優先度について考慮がされていなかった。例えば、一方の通信装置が優先度の高いデータ送信を半二重通信で高速に行いたい場合がある。しかし、そのような場合に、他方の通信装置からデータ送信の要求があると、その他方のデータ通信の優先度が低い場合でも、その優先度は考慮されず、通信装置間では全二重通信が行われることになる。その結果、優先度の高いデータを半二重通信で高速に送信することが困難であった。
 本発明は、上記背景の下でなされたものである。本発明の目的は、送信するデータの優先度を考慮して全線の半二重通信と全二重通信の切替えを行う通信制御が可能な通信システムを提供することにある。
 本発明の一の態様は、データ通信装置であり、このデータ通信装置データ通信装置は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ転送システムに適用されるデータ通信装置であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持する優先度保持部と、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、送信中の優先度情報と第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を通信相手の装置に与えるか、を判定する調停処理を行う調停処理部と、を備えている。
 本発明の別の態様は、データ通信装置であり、このデータ通信装置は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムに適用されるデータ通信装置であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、全二重通信で受信中のデータ優先度である受信中の優先度情報を管理する管理部と、受信中の優先度情報と第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行う調停処理部と、を備えている。
 本発明の別の態様は、データ通信システムであり、このデータ通信システムは、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムであって、データ通信装置は、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持する優先度保持部と、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、送信中の優先度情報と第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を通信相手の装置に与えるか、を判定する調停処理を行う調停処理部と、を備えている。
 本発明の別の態様は、データ通信システムであり、このデータ通信システムは、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムであって、データ通信装置は、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、全二重通信で受信中のデータ優先度である受信中の優先度情報を管理する管理部と、受信中の優先度情報と第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行う調停処理部と、を備えている。
 本発明の別の態様は、データ通信制御方法であり、このデータ通信制御方法は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムで用いられるデータ通信方法であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信し、自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持し、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信し、送信中の優先度情報と第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を通信相手の装置に与えるか、を判定する調停処理を行う。
 本発明の別の態様は、データ通信制御方法であり、このデータ通信制御方法は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムで用いられるデータ通信方法であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信し、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信し、全二重通信で受信中のデータ優先度である受信中の優先度情報を管理し、受信中の優先度情報と第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行う。
 以下に説明するように、本発明には他の態様が存在する。したがって、この発明の開示は、本発明の一部の態様の提供を意図しており、ここで記述され請求される発明の範囲を制限することは意図していない。
図1は、第1の実施の形態におけるデータ通信装置のブロック図 図2は、通信単位の基本フォーマットの説明図 図3は、データ通信装置の動作(基本的な動作)の説明図 図4は、データ通信装置の動作(変形例)の説明図 図5は、データ通信装置の動作(変形例)の説明図 図6は、データ通信装置の動作(変形例)の説明図 図7は、データ通信装置の動作(変形例)の説明図 図8は、第2の実施の形態における通信システムのブロック図 図9は、通信単位の基本フォーマットの説明図 図10は、通信システムの動作(基本的な動作)の説明図 図11は、通信システムの動作(変形例)の説明図 図12は、通信システムの動作(変形例)の説明図 図13は、通信システムの動作(変形例)の説明図 図14は、通信システムの動作(変形例)の説明図
 以下に本発明の詳細な説明を述べる。ただし、以下の詳細な説明と添付の図面は発明を限定するものではない。代わりに、発明の範囲は添付の請求の範囲により規定される。
 本発明のデータ通信装置は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ転送システムに適用されるデータ通信装置であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持する優先度保持部と、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、送信中の優先度情報と第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を通信相手の装置に与えるか、を判定する調停処理を行う調停処理部と、を備えた構成を有している。
 本発明のデータ通信装置は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムに適用されるデータ通信装置であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、全二重通信で受信中のデータ優先度である受信中の優先度情報を管理する管理部と、受信中の優先度情報と第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行う調停処理部と、を備えた構成を有している。
 本発明のデータ通信システムは、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムであって、データ通信装置は、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持する優先度保持部と、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、送信中の優先度情報と第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を通信相手の装置に与えるか、を判定する調停処理を行う調停処理部と、を備えた構成を有している。
 本発明のデータ通信システムは、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムであって、データ通信装置は、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、全二重通信で受信中のデータ優先度である受信中の優先度情報を管理する管理部と、受信中の優先度情報と第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行う調停処理部と、を備えた構成を有している。
 本発明のデータ通信制御方法は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムで用いられるデータ通信方法であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信し、自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持し、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信し、送信中の優先度情報と第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を通信相手の装置に与えるか、を判定する調停処理を行う。
 本発明のデータ通信制御方法は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムで用いられるデータ通信方法であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信し、通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信し、全二重通信で受信中のデータ優先度である受信中の優先度情報を管理し、受信中の優先度情報と第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行う。
 本発明は、次に送信する予定のデータの優先度情報と現在転送中のデータの優先度情報に基づいて調停処理を行う調停処理部を設けることにより、送信するデータの優先度を考慮して全線の半二重通信と全二重通信の切替えを行う通信制御が可能になる。
 以下、本発明の実施の形態の通信システムについて、図面を用いて説明する。本実施の形態では、複数のデータ転送要求を投機的に発行し、より応答の速いデータ転送から先に行うデータ処理システム等に用いられる場合を例示する。このようなデータ処理システムでは、データバスの稼働率を高める(データバスを効率的に利用する)ことにより、高性能なデータ転送能力が実現される。
(第1の実施の形態)
 本実施の形態のデータ通信装置の構成を図1を参照して説明する。図1は、本実施の形態のデータ通信装置の構成を示すブロック図である。ここでは、まず、データ通信装置の全体構成について説明する。データ通信装置1は、2本の信号線2(DAT0、DAT1)を介して双方向通信可能に接続されている。この信号線2は、1本で(同じ信号線2で)コマンドとデータをいずれも送信することができる。そして、このデータ通信装置では、通信相手の装置との間で、2本の信号線2を用いた全線の半二重通信または全二重通信が切替え可能になっている。なお、図1では、説明の便宜のため、2つの通信装置1が2本の信号線2で接続された例が図示されているが、信号線2の数はこれに限定されるものではない。
 つぎに、データ通信装置1の構成について説明する。図1に示すように、データ通信装置1は、2本の信号線2を用いて他の装置(図示せず)へデータやコマンドを送信する送信制御部3と、2本の信号線2を用いて他の装置からデータやコマンドを受信する受信制御部4とを備える。
 送信制御部3は、データ送信制御を行うデータ送信制御部5と、コマンド送信制御を行うコマンド送信制御部6と、送信データや送信コマンドを一時格納するためのRAMやHDDなどで構成されたバッファ7とを備えている。バッファ7には、そのデータ通信装置1が通信相手の装置へ転送する予定のデータやコマンドと、そのデータやコマンドの送信の優先度を示す優先度情報などが記憶されている。また、送信制御部3は、送信データと送信コマンドを多重化するMUX(マルチプレクサ)8と、多重化されたデータとコマンドをパラレルからシリアルに変換するP/S(パラレル・シリアル変換部)9を備える。
 受信制御部4は、データ受信制御を行うデータ受信制御部10と、コマンド受信制御を行うコマンド受信制御部11と、受信データや受信コマンドを一時格納するためのRAMやHDDなどで構成されたバッファ12とを備えている。バッファ12には、そのデータ通信装置1が通信相手の装置から受信したデータやコマンドと、そのデータやコマンドの優先度を示す優先度情報などが記憶されている。また、受信制御部4は、受信したデータとコマンドをシリアルからパラレルに変換するS/P(シリアル・パラレル変換部)13と、パラレルに変換された後、データとコマンドに分離するDMUX(デマルチプレクサ)14とを備える。
 コマンド送信制御部6は、通信相手の装置へ送信する優先度情報の制御を行うとともに、通信相手の装置へ全二重通信で送信中のデータの優先度情報を管理する優先度送信制御部15を備えている。コマンド受信制御部11は、通信相手の装置から受信した優先度情報の制御と、通信相手の装置から全二重通信で受信中のデータの優先度情報を管理する優先度受信制御部16を備えている。優先度送信制御部15は、そのデータ通信装置1が次に送信する予定のデータやコマンドの優先度情報を、通信相手の装置へ全二重通信で送信するように制御する。また、優先度受信制御部16は、通信相手の装置が次に送信する予定のデータやコマンドの優先度情報を、通信相手の装置から全二重通信で受信するように制御する。
 また、データ通信装置1は、次に送信する予定のデータやコマンドを全線の半二重通信で送信する権利(送信権ともいう)を自装置が有するか、あるいは通信相手の装置が有するか、あるいはどちらもその権利を有していないかを判定する調停処理を行う調停処理部17を備えている。さらに、データ通信装置1は、調停処理の結果に応じて、送信するデータやコマンドを2本の信号線2のどちらに送信するかを切り替える送信切替部18と、受信するデータやコマンドを2本の信号線2のどちらから受信するかを切り替える受信切替部19と、DAT0の転送方向を切り替えるDAT0転送方向切替部20とDAT1の転送方向を切り替えるDAT1転送方向切替部21とを備えている。
 この調停処理部17は、そのデータ通信装置1が次に送信する予定のデータやコマンドの優先度と、通信相手の装置から現在受信中のデータやコマンドの優先度に基づいて、どちらの装置が送信権を有するか否かを判定する調停処理を行う。さらに、調停処理部17は、そのデータ通信装置1が現在送信中のデータやコマンドの優先度と、通信相手の装置が送信予定のデータやコマンドの優先度に基づいて、どちらの装置が送信権を有するか否かを判定する調停処理を行う。なお、調停処理の内容については、図面を用いて後述する。
 優先度送信制御部15は、そのデータ通信装置1が次に送信する予定のデータやコマンドの優先度情報とともに、通信相手の装置に対して調停処理の開始を要求する調停要求を全二重通信で送信する機能を備えている。そして、調停処理部17は、調停要求の送信が行われた後に、もしくは、通信相手の装置から調停要求を全二重通信で受信した後に調停処理を開始する。
 優先度はこの例では「0」~「9」の範囲で設定されており、優先度の数字が小さいほうが(例えば、優先度「0」のほうが優先度「9」よりも)優先度が高いものとする(図2参照)。そして、調停処理部17は、この優先度に従い、自装置あるいは通信相手の装置からの調停要求に対し、どちらの優先度が高いかを判定し、より優先度が高い要求をしている方に全二重通信から全線の半二重通信に切り替えて通信を行う権利を与える。
 ここで、優先度の判定は、優先度が1つでも高い方に全線の半二重通信の権利を与える場合や、優先度があらかじめ設定した値、例えば2つ以上高いときにのみ全線の半二重通信の権利を与える場合などが考えられる。ここで、優先度が2つ以上高いとは、一方の優先度が「7」であった場合「5」~「0」までの優先度が該当する(逆にいえば、優先度が1つだけ高い場合には、二つの優先度はほぼ等しいものとみなされる)。このように、自装置の方が優先度が高く、かつ、所定の条件(優先度の差が2つ以上であること)を満たすと判定すると、2本の信号線2を両方使用して自装置の転送(全線の半二重通信)を行うべくDAT0、DAT1両方へ送信データあるいはコマンドを送信するように送信切替部18で内部の接続を切り替え、DAT1転送方向切替部21にてDAT1も自装置がデータあるいはコマンドを送信する方向に転送方向を切り替える。
 また、調停処理の開始は、全二重通信で優先度の高い優先度情報とともに調停要求を受信した場合に限られるものではない。例えば、調停処理は、周期的に行われてもよく、所定の時間経過後のデータ転送のないときに開始されてもよい。また、調停処理は、予め指定したサイズのデータ転送が完了したときに開始されてもよく、あるいは、特定のコマンドの処理が完了したときに開始されてもよい。さらに、調停処理は、各コマンドの処理が完了するごとに開始されてもよい。
 コマンド送信制御部6は、そのデータ通信装置1が次に送信する予定のデータまたはコマンドの処理内容を示す要求コマンドの送信を制御する。この場合、コマンド送信制御部6は、調停処理時あるいはデータ転送開始時に、通信相手の装置に対して要求コマンドを全二重通信で送信するように制御する。
 調停処理の結果、そのデータ通信装置1が全線の半二重通信の送信権を有していると判定されると、そのデータ通信装置1は、データやコマンドの送信を全線の半二重通信で行うことが可能になる。本実施の形態では、この全線の半二重通信の期間が、半二重通信でのデータ転送中における緊急データ通信要求(割込み要求など優先度が非常に高いデータ通信要求)の割込みを考慮した適度な長さに予め設定されている。すなわち、全線の半二重通信の期間には、上限が設けられているともいえる。なお、この上限は、全線の半二重通信でのデータ転送時間(データ転送を行った時間)を基準に設定してもよく、また、データ転送サイズ(転送したデータの合計サイズ)を基準に設定してもよい。
 優先度送信制御部15は、そのデータ通信装置1が送信するデータやコマンドの末尾に、自装置の優先度情報と、調停処理の開始を要求する調停要求を付けて、通信相手の装置へ送信するように制御する機能を備えている。また、優先度受信制御部16は、通信相手の装置から受信したデータやコマンドの末尾に付けられた優先度情報と調停要求とを取得する機能を備えている。なお、これらの優先度情報、調停要求が付けられる場所は、データやコマンドの末尾に限られるものではなく、例えば、データやコマンドの先頭に付けられてもよい。また、これらの優先度情報、調停要求は、データやコマンドに付けずに、単独で送信してもよい。また、優先度情報、調停要求とともに、各装置で判定した勝敗結果情報を付けてもよい。
 ここで、図2を参照して、上記の2つの装置間で送受信が行われる通信単位の基本フォーマットについて具体的に説明する。図2は、通信単位の基本フォーマットの一例を示した図である。図2に示すように、通信単位は、今回送信するデータまたはコマンドと、次に送信する予定のデータやコマンドの優先度情報と、調停処理の開始を要求する調停要求とで構成されている。さらに、受信した優先度と送信する優先度とを比較して決定される勝敗結果情報とを含んでも良い。
 例えば、送信するデータまたはコマンドには、リードデータやライトデータ(リード要求やライト要求に応じて転送されるデータ)、上述の要求コマンドなどが含まれる。また、既に説明したが、次に送信する予定のデータやコマンドの優先度は、優先度「0」~「9」などである。また、調停処理の開始を要求する調停要求は、要求あり:「1」、要求なし:「0」などである。また、勝敗結果情報は、例えば、自装置の優先度のほうが優先度が高い:「勝」、自装置の優先度のほうが優先度が低い:「敗」などである。なお、自装置の優先度と通信相手の装置の優先度が同じ優先度である場合には、「自装置:勝」などの処理ルールを予め設定してもよい。
 要求コマンドには、次に送信する予定のデータまたはコマンドの処理内容情報と、コマンド識別IDなどのコマンド識別情報と、エラー情報や1つ前の処理のCRC比較結果(CRCの成否)の情報と、送信したデータの受信結果(受信の成否)の情報などが含まれている。
 そして、要求コマンドの処理内容情報には、次に送信する予定のデータやコマンドの種類、転送サイズ、全線の半二重通信の期間の上限などが含まれている。データやコマンドの種類には、全線の半二重通信のリード要求、全二重通信のリード要求、全線の半二重通信のライト要求、全二重通信のライト要求などが含まれている。また、データやコマンドの種類には、通信相手の装置へのキュー操作(優先度の変更、ローテートなど)や、発行済みのコマンドへの操作(コマンドのキャンセル、ストップ/リスタートなど)が含まれる。
 以上のように構成された本実施の形態のデータ通信装置について、図3~図7を用いてその動作を説明する。ここでは、本実施の形態のデータ通信装置の特徴的な動作を中心に説明する。
 図3は、本実施の形態の通信システムの基本的な動作を説明するための図である。図3の例では、本データ通信装置が複数のデータ(データA、B)を送信し、また、通信相手の装置が、複数のデータ(データX~Z)を送信する様子が示されている。なお、図3では、両装置の図示は省略されているが、本データ通信装置から通信相手の装置へのデータ送信のディレクション(送信方向)は、図において左から右へ向かう方向(右向き矢印で図示)であり、また、通信相手の装置から本データ通信装置へのデータ送信のディレクションは、図において右から左へ向かう方向(左向き矢印で図示)である。以下の説明において、本データ通信装置を「マスター通信装置」、通信相手の装置を「スレーブ通信装置」、本データ通信装置が次に送信するデータもしくはコマンドの優先度を「マスター優先度」、通信相手の装置が次に送信するデータもしくはコマンドの優先度を「スレーブ優先度」とする。
 この図3の例では、まず、マスター通信装置が、データAの送信を全二重通信で行う。このデータAには、次に送信する予定のデータBの優先度情報(マスター優先度「4」)と調停要求なし「0」が付けられている。
 つぎに、スレーブ通信装置は、データXの送信を全二重通信で行う。このデータXには、次に送信する予定のデータYの優先度情報(スレーブ優先度「2」)と調停要求あり「1」とが付けられている。マスター通信装置はスレーブ通信装置からの調停要求を受けると調停処理が開始される。
 調停処理において、マスター通信装置は、現在送信中のデータBの優先度「4」と、スレーブ通信装置が次に送信する予定のデータYの優先度「2」とを比較する。この場合、データYの優先度の方が高いため、勝敗結果情報は「負」となり、全二重通信で送信中のデータBの転送を一時中断し、DAT0をスレーブ通信装置のデータYを全線の半二重通信するように転送方向の切替処理を行う。
 なお、調停処理は、図3のようにスレーブ通信装置からの調停要求ならびに次に送信する予定のデータの優先度を受けて、マスター通信装置にて実施するのではなく、スレーブ通信装置が、マスター通信装置が送信中のデータBの優先度「4」とスレーブ通信装置が次に送信する予定のデータYの優先度「2」とを比較し、スレーブ通信装置の方が「勝」であることを通知するのでも良い。
 この調停処理では、スレーブ優先度がマスター優先度より優先度が高いため、スレーブ通信装置が全線の半二重通信の送信権を有すると判定される。そして、このような調停処理の結果に基づいて、DAT0の転送方向を切り替えてスレーブ通信装置が、全線の半二重通信でデータYの送信を行う。このようにして、優先度の高いデータYの送信を優先度の低いデータBの転送完了を待たずに、全線の半二重通信で行うことができる。そして、データYの送信が完了すると、マスター通信装置は、データBの残りのデータ送信を全二重通信で再開し、また、スレーブ通信装置は、次のデータZの処理内容を示す要求コマンド、データZ送信を全二重通信で行う。
 ここで、図3を参照して、スレーブ通信装置の動作を説明する。スレーブ通信装置は、全二重通信でのデータX転送完了時に、次に転送する予定のデータYの優先度「2」と全線の半二重通信を要求する調停要求を「1」:要求ありにして送信する。その時点で、マスター通信装置が全二重通信で送信中のデータBは優先度「4」であり、データYの優先度よりも低いことが分かるため、データYを全線の半二重通信で転送できることになる。したがって、データYの要求コマンドならびにデータYをDAT0とDAT1との両方を使用して転送する。なお、要求コマンドはDAT0のみで転送し、データYをDAT0とDAT1との両方で転送するのでも良い。
 また、図3ではマスター通信装置が全二重通信で送信中のデータBの転送を一時中断し、後にその続きから再開する場合を記載したが、データBの転送を途中で中止し、再度、最初から転送をやり直すのでも良い。
 つぎに、通信システムの動作の変形例を、図面を用いて説明する。なお、以下では、図3の動作と相違する点を中心に説明する。
 図4は、通信システムの動作の変形例を説明するための図である。図4の変形例では、データY転送中に一時中断しているデータBの優先度が上がった場合の動作を例示する。この場合、データY転送完了時に、マスター通信装置はデータBを全二重通信で再開するのではなく、優先度を一時中断前の「4」から「3」に上げたうえで、全線の半二重通信を要求するために調停期間に移行する。ここで、マスター通信装置が送信するデータBとスレーブ通信装置が次に送信する予定のデータZとの優先度を比較すると、データBの方が高いため、マスター通信装置はデータBの転送を全線の半二重通信で再開することが可能となる。
 この調停処理では、優先度の高いデータYの転送により転送が一時中断されたデータBの転送を、中断期間の長さなどに従い再開時に優先度を上げ、全線の半二重通信で行うことができる。データYの転送完了後、図3に示すように中断前と同じ全二重通信で再開するか、図4のように調停期間を設け、その時点の状態に応じて、必要であれば半二重通信で再開するのかを事前に設定できるようにしておくことが望ましい。
 図5は、通信システムの動作の他の変形例を説明するための図である。図5の変形例では、マスター通信装置は、スレーブ通信装置からデータYの優先度「2」と調停要求とを受信すると、全二重通信で転送中のデータBを全線の半二重通信で転送するよう切り替える。そうすることで、できるだけ早くデータBの転送を完了させ、次に優先度の高いデータYの転送を全線の半二重通信で行うことができる。
 図6は、通信システムの動作の他の変形例を説明するための図である。図6の変形例では、スレーブ通信装置がデータX転送完了時に次に転送する予定のデータが存在しない場合であり、スレーブ通信装置は優先度「9」を送信することで、次転送データなしであることを通知する。マスター通信装置はスレーブ通信装置から優先度「9」を受信すると、全二重通信で送信中であったデータBを全線の半二重通信に切り替える。そうすることでDAT1がアイドル状態になることなく、転送効率を高めることが可能となる。なお、マスター通信装置はスレーブ通信装置から優先度「9」を受信したとき、その後スレーブ通信装置に転送要求が生じることを想定して、全二重通信をそのまま継続しても良い。全二重通信を継続するか、半二重通信に切り替えるかは事前に設定できるようにしておくことが望ましい。
 図7は、通信システムの動作の他の変形例を説明するための図である。図7の変形例では、データYの全線の半二重通信の期間に上限が設けられており、全線の半二重通信中に、マスター通信装置にデータC(非常に優先度の高いデータ)の緊急送信の割込み要求がなされた場合の動作を例示する。この場合、スレーブ通信装置は、全線の半二重通信の期間の上限までデータYの送信を行う。
 この全線の半二重通信中に、マスター通信装置にデータCの緊急送信の割込み要求がなされると、マスター通信装置は、全線の半二重通信の期間の経過後にデータCの送信を行う。図7では、マスター通信装置が、全線の半二重通信でデータCの送信を行う例が示されているが、データCの送信は、全二重通信で行われてもよい。そして、データCの送信が完了後、全線の半二重通信でデータYの残部の送信を行う。このようにして、全線の半二重通信中のデータC(非常に優先度の高いデータ)の緊急送信の割込み要求に対応することができる。
 このような本発明の実施の形態の通信装置によれば、次に送信する予定のデータの優先度情報と現在転送中のデータの優先度情報とに基づいて調停処理を行う調停処理部17を設けることにより、送信するデータの優先度を考慮して全線の半二重通信と全二重通信との切替えを行う通信制御が可能になる。
 すなわち、本実施の形態の通信装置では、マスター優先度(マスター通信装置が次に送信する予定のデータまたはコマンドの優先度)とスレーブ通信装置とが全二重通信で転送中のデータの優先度、あるいは、スレーブ優先度(スレーブ通信装置が次に送信する予定のデータまたはコマンドの優先度)とマスター通信装置とが全二重通信で転送中のデータの優先度に基づいて、マスター通信装置が全線の半二重通信を行うことができるか否かを判定する調停処理が行われる。これにより、例えば、マスター通信装置が(スレーブ通信装置より)優先度の高いデータを送信したい場合には、マスター通信装置が全線の半二重通信で優先的にデータ送信を行うことができる。このように、送信するデータの優先度を考慮して、全線の半二重通信と全二重通信の切替えを行うことができる。
 また、本実施の形態の通信装置では、全二重通信中に一方の装置に優先度の高い転送要求が発生した場合、全二重通信を一時中断して優先度の高いデータを全線の半二重通信で転送することが可能になる。
 また、本実施の形態の通信装置では、全二重通信を一時中断して優先度の高いデータを全線の半二重通信で転送している間に、転送中断しているデータの優先度が上がった場合、半二重通信での転送完了時に、中断していたデータ転送を再開するにあたり、改めて要求コマンドを送信し、調停処理を行うことで、転送中断していたデータを半二重通信で高速に通信することが可能になる。あるいは転送中断中に、別の優先度の高いデータ転送要求が発生していた場合、中断していた転送ではなく、新たに発生した優先度の高いデータ転送を行うことも可能になる。
 また、本実施の形態の通信装置では、全二重通信中に相手の通信装置に優先度の高い半二重通信の要求が発生した場合、転送中の全二重通信を半二重通信に切り替えることで、出来だけ早く転送中のデータ転送を完了させ、優先度の高い半二重通信に転送を切り替えることが可能になる。
 また、本実施の形態の通信システムでは、全二重通信中に相手の通信装置から、次に転送するデータがないことを通知されると、全二重通信を半二重通信に切り替えることで伝送路の転送効率を高めることが可能になる。
 また、本実施の形態の通信システムでは、全線の半二重通信の期間の長さが予め設定される。すなわち、全線の半二重通信の期間に予め上限が設けられる。このように、全線の半二重通信の期間に上限を設けることにより、緊急なデータ送信などの割込み要求に対応することが可能になり、応答性が向上する。
 また、本実施の形態の通信システムでは、データやコマンドの末尾に優先度情報が付けられ、データやコマンドとともに優先度情報が送信される。データやコマンドの送信を行う際に、データ送信のディレクションが同じである優先度情報を一緒に送信するので、優先度情報を簡単かつ確実に送信することができる。また、データやコマンドとともに優先度情報が常に送受信されるので、常時、相手側(他の通信装置1)の送信データの優先度の状況を把握することができる。
(第2の実施の形態)
 次に、本発明に関連する他の実施の形態の通信システムについて、図面を用いて説明する。本実施の形態では、複数のデータ転送要求を投機的に発行し、より応答の速いデータ転送から先に行うデータ処理システム等に用いられる場合を例示する。このようなデータ処理システムでは、データバスの稼働率を高める(データバスを効率的に利用する)ことにより、高性能なデータ転送能力が実現される。
 本実施の形態のデータ転送装置の構成を、図8を参照して説明する。図8は、本実施の形態のデータ転送装置の構成を示すブロック図である。ここでは、まず、データ転送装置の全体構成について説明する。データ転送装置101は、2本の信号線102(DAT0、DAT1)を介して双方向通信可能に接続されている。この信号線102は、1本で(同じ信号線102で)コマンドとデータとをいずれも送信することができる。そして、このデータ転送装置101では、通信相手の装置との間で、2本の信号線102を用いた全線の半二重通信または全二重通信が切替え可能になっている。なお、図8では、説明の便宜のため、データ転送装置101が2本の信号線102で接続された例が図示されているが、信号線102の数はこれに限定されるものではない。
 つぎに、データ転送装置101の構成について説明する。図8に示すように、データ転送装置101は、2本の信号線102を用いて、他の装置(図示せず)へデータやコマンドを送信する送信制御部103と、2本の信号線102を用いて、他の装置からデータやコマンドを受信する受信制御部104とを備える。
 また、このデータ転送装置101は、送信制御部103に、データ送信制御を行うデータ送信制御部113aと、コマンド送信制御を行うコマンド送信制御部112aと、送信データ、送信コマンドを一時格納するためのRAMやHDDなどで構成されたバッファ106aとを備えている。バッファ106aには、そのデータ転送装置101が通信相手の装置へ転送する予定のデータやコマンドと、そのデータやコマンドの送信の優先度を示す優先度情報などが記憶されている。また、送信制御部103は、送信データと送信コマンドを多重化するMUX(マルチプレクサ)114と、多重化されたデータ、コマンドをパラレルからシリアルに変換するP/S(パラレル・シリアル変換部)115を備える。
 受信制御部104は、データ受信制御を行うデータ受信制御部113bと、コマンド受信制御を行うコマンド送信制御部112bと、受信データ、受信コマンドを一時格納するためのRAMやHDDなどで構成されたバッファ106bとを備えている。バッファ106bには、そのデータ転送装置101が通信相手の装置から受信したデータやコマンドと、そのデータやコマンドの優先度を示す優先度情報などが記憶されている。また、受信制御部104は、受信したデータとコマンドとをシリアルからパラレルに変換するS/P(シリアル・パラレル変換部)117と、パラレルに変換されたデータ、コマンドを分離するDMUX(デマルチプレクサ)116とを備える。
 コマンド送信制御部112aは、優先度情報の送信を制御する優先度送信制御部107を備えており、コマンド受信制御部112bは、優先度情報の受信を制御する優先度受信制御部108を備えている。優先度送信制御部107は、そのデータ転送装置101が次に送信する予定のデータやコマンドの優先度情報を、通信相手の装置へ全二重通信で送信するように制御する。また、優先度受信制御部108は、通信相手の装置が次に送信する予定のデータやコマンドの優先度情報を、通信相手の装置から全二重通信で受信するように制御する。
 また、データ転送装置101は、次に送信する予定のデータやコマンドを全線の半二重通信で送信する権利(送信権ともいう)を自装置が有するか、あるいは通信相手の装置が有するか、あるいはどちらもその権利を有していないかを判定する調停処理を行う調停処理部109と、調停処理の結果に応じて、送信するデータやコマンドを2本の信号線102のどちらに送信するかを切り替える送信切替部118と、受信するデータやコマンドを2本の信号線102のどちらから受信するかを切り替える受信切替部119と、DAT0の転送方向を切り替えるDAT0転送方向切替部120とDAT1の転送方向を切り替えるDAT1転送方向切替部121とを備えている。この調停処理部109は、そのデータ転送装置101が次に送信する予定のデータやコマンドの優先度と、通信相手の装置が次に送信する予定のデータやコマンドの優先度とに基づいて、どちらの装置が送信権を有するか否かを判定する調停処理を行う。なお、調停処理の内容については、図面を用いて後述する。
 優先度送信制御部107は、そのデータ転送装置101が次に送信する予定のデータやコマンドの優先度情報とともに、通信相手の装置に対して調停処理の開始を要求する調停要求を全二重通信で送信する機能を備えている。そして、調停処理部109は、調停要求の送信が行われた後に、通信相手の装置から優先度を全二重通信で受信した場合(通信相手の装置から優先度とともに調停要求を受信する場合も含む)に、もしくは、通信相手の装置から調停要求を全二重通信で受信した後に、通信相手へ自装置の優先度を全二重通信で送信した場合(通信相手の装置へ優先度とともに調停要求を送信する場合も含む)に、調停処理を開始する。
 優先度は、この例では「0」~「9」の範囲で設定されており、優先度の数字が小さいほうが(例えば、優先度「0」のほうが優先度「9」よりも)優先度が高いものとする(図9参照)。そして、調停処理部109は、この優先度に従い、自装置あるいは通信相手の装置からの調停要求に対し、どちらの優先度が高いかを判定し、より優先度が高い要求をしている方に、全二重通信から全線の半二重通信に切り替えて通信を行う権利を与える。ここで、優先度の判定は、優先度が1つでも高い方に全線の半二重通信の権利を与える場合や、優先度があらかじめ設定した値、例えば2つ以上高いときにのみ、全線の半二重通信の権利を与える場合などが考えられる。ここで、優先度が2つ以上高いとは、一方の優先度が「7」であった場合「5」~「0」までの優先度が該当する。自装置の方が優先度が高く、所定の条件を満たすと判定すると、2本の信号線102を両方使用して自装置の転送(全線の半二重通信)を行うべく、DAT0、DAT1の両方へ送信データあるいはコマンドを送信するように、送信切替部118で内部の接続を切り替え、DAT1転送方向切替部121にて、DAT1も自装置がデータあるいはコマンドを送信する方向に転送方向を切り替える。
 また、調停処理の開始は、全二重通信で優先度の高い優先度情報とともに調停要求を受信した場合に限られるものではない。例えば、調停処理は、周期的に行われてもよく、所定の時間経過後のデータ転送のないときに開始されてもよい。また、調停処理は、予め指定したサイズのデータ転送が完了したときに開始されてもよく、あるいは、特定のコマンドの処理が完了したときに開始されてもよい。さらに、調停処理は、各コマンドの処理が完了するごとに開始されてもよい。
 送信制御部103は、そのデータ転送装置1が次に送信する予定のデータまたはコマンドの処理内容を示す要求コマンドの送信を制御するコマンド送信制御部112aを備えている。コマンド送信制御部112aは、自装置の優先度が通信相手の装置の優先度より優先度が高いと判定された場合に、調停処理において、通信相手の装置に対して要求コマンドを全二重通信で送信するように制御する。なお、自装置の優先度と通信相手の装置の優先度が同じである場合には、「マスター通信装置が送信権を有する」や「調停処理を再度行う」や「交互に送信権を獲得する」などの処理ルールを予め設定してもよい。
 また、優先度送信制御部107は、調停処理の開始時におけるマスター優先度の優先度情報を、通信相手の装置に対して全二重通信で送信するように制御する機能を備えている。そして、コマンド送信制御部112aは、調停処理の開始時における自装置の優先度と要求コマンドとを、調停処理において、通信相手の装置に対して全二重通信で送信するように制御する機能を備えている(図11参照)。なお、この調停処理の開始時には、調停処理の開始直前から開始直後までの期間が含まれる。
 送信制御部103は、優先度情報の送信後から調停処理の開始までのアイドル期間に、そのデータ転送装置101が次に送信する予定のデータの一部を先行して送信するように制御するデータ先行送信制御部113を備えていてもよい。なお、このデータ先行送信制御部113は、アイドル期間が十分に長い場合には、次に送信する予定のデータの全部を送信するように制御してもよい。
 調停処理の結果、そのデータ転送装置101が全線の半二重通信の送信権を有していると判定されると、そのデータ転送装置101は、データやコマンドの送信を全線の半二重通信で行うことが可能になる。本実施の形態では、この全線の半二重通信の期間が、半二重通信でのデータ転送中における緊急データ通信要求(割込み要求など優先度が非常に高いデータ通信要求)の割込みを考慮した、適度な長さに予め設定されている。すなわち、全線の半二重通信の期間には、上限が設けられているともいえる。なお、この上限は、全線の半二重通信でのデータ転送時間(データ転送を行った時間)を基準に設定してもよく、また、データ転送サイズ(転送したデータの合計サイズ)を基準に設定してもよい。
 優先度送信制御部107は、そのデータ転送装置1が送信するデータやコマンドの末尾に、マスター優先度の優先度情報と、調停処理の開始を要求する調停要求を付けて、通信相手の装置へ送信するように制御する機能を備えている。また、優先度受信制御部108は、通信相手の装置から受信したデータやコマンドの末尾に付けられた優先度情報と調停要求とを取得する機能を備えている。なお、これらの優先度情報、調停要求が付けられる場所は、データやコマンドの末尾に限られるものではなく、例えば、データやコマンドの先頭に付けられてもよい。また、これらの優先度情報、調停要求は、データやコマンドに付けずに、単独で送信してもよい。また、優先度情報、調停要求とともに、各装置で判定した勝敗結果情報を付けてもよい。
 ここで、図9を参照して、上記の2つの装置間で送受信が行われる通信単位の基本フォーマットについて具体的に説明する。図9は、通信単位の基本フォーマットの一例を示した図である。図9に示すように、通信単位は、今回送信するデータまたはコマンドと、次に送信する予定のデータやコマンドの優先度情報と、調停処理の開始を要求する調停要求とで構成されている。さらに、受信したスレーブ優先度と送信するマスター優先度とを比較して決定される勝敗結果情報とを含んでも良い。
 例えば、送信するデータまたはコマンドには、リードデータやライトデータ(リード要求やライト要求に応じて転送されるデータ)、上述の要求コマンドなどが含まれる。また、既に説明したが、次に送信する予定のデータやコマンドの優先度は、優先度「0」~「9」などである。また、調停処理の開始を要求する調停要求は、要求あり:「1」、要求なし:「0」などである。また、勝敗結果情報は、例えば、マスター優先度のほうが優先度が高い:「勝」、マスター優先度のほうが優先度が低い:「敗」などである。なお、マスター優先度とスレーブ優先度が同じ優先度である場合には、「マスター通信装置:勝」などの処理ルールを予め設定してもよい。
 要求コマンドには、次に送信する予定のデータまたはコマンドの処理内容情報と、コマンド識別IDなどのコマンド識別情報と、エラー情報や1つ前の処理のCRC比較結果(CRCの成否)の情報と、送信したデータの受信結果(受信の成否)の情報などが含まれている。
 そして、要求コマンドの処理内容情報には、次に送信する予定のデータやコマンドの種類、転送サイズ、全線の半二重通信の期間の上限などが含まれている。データやコマンドの種類には、全線の半二重通信のリード要求、全二重通信のリード要求、全線の半二重通信のライト要求、全二重通信のライト要求などが含まれている。また、データやコマンドの種類には、通信相手の装置へのキュー操作(優先度の変更、ローテートなど)や、発行済みのコマンドへの操作(コマンドのキャンセル、ストップ/リスタートなど)が含まれる。
 以上のように構成された本実施の形態のデータ転送装置について、図10~図14を用いてその動作を説明する。ここでは、本実施の形態のデータ転送装置の特徴的な動作を中心に説明する。
 図10は、本実施の形態の通信システムの基本的な動作を説明するための図である。図10の例では、本データ転送装置が複数のデータ(データA~C)を送信し、また、通信相手の装置が、複数のデータ(データX~Z)を送信する様子が示されている。なお、図10では、両装置の図示は省略されているが、本データ転送装置から通信相手の装置へのデータ送信のディレクション(送信方向)は、図において左から右へ向かう方向(右向き矢印で図示)であり、また、通信相手の装置から本データ転送装置へのデータ送信のディレクションは、図において右から左へ向かう方向(左向き矢印で図示)である。以下の説明において、本データ転送装置をマスター通信装置、通信相手の装置をスレーブ通信装置、本データ転送装置が次に送信するデータもしくはコマンドの優先度をマスター優先度、通信相手の装置が次に送信するデータもしくはコマンドの優先度をスレーブ優先度とする。
 この図10の例では、まず、マスター通信装置が、データAの送信を全二重通信で行う。このデータAには、次に送信する予定のデータBの優先度情報(マスター優先度「4」)と調停要求なし「0」が付けられている。なお、この時点では、スレーブ通信装置からスレーブ優先度を受信していないので、このデータAには、受信したスレーブ優先度と送信するマスター優先度とを比較して決定される勝敗結果情報は付けられていない。
 つぎに、スレーブ通信装置は、データXの送信を全二重通信で行う。このデータXには、次に送信する予定のデータYの優先度情報(スレーブ優先度「2」)と調停要求あり「1」が付けられている。この場合、データYのスレーブ優先度「2」とデータBのマスター優先度「4」とを比較すると、データYの優先度の方が高いため、勝敗結果情報は「勝」となり、その情報も付けて送信しても良い(図示せず)。そして、スレーブ通信装置から調停要求が送信されており、かつ、スレーブ優先度がマスター優先度より優先度が高いため、調停処理が開始される。
 調停処理が開始される前に、マスター通信装置にマスター優先度を送信する機会が与えられる。この場合、マスター通信装置は、データBの送信を全二重通信で行う。そして、このデータBには、次に送信する予定のデータCの優先度情報(マスター優先度「5」)と調停要求なし「0」が付けられている。なお、データDのマスター優先度「5」とデータYのスレーブ優先度「2」とを比較すると、データDの優先度の方が低いため、勝敗結果情報は「敗」となり、その情報を付けて送信しても良い。
 そして、スレーブ通信装置からの調停要求に基づいて調停処理が開始される。調停処理において、マスター通信装置は、次に送信する予定のデータCの処理内容(全二重通信のライト要求など)を示す要求コマンドの送信を全二重通信で行う。この要求コマンドには、次に送信する予定のデータCの優先度情報(スレーブ優先度「5」)が付けられている。この場合、データYのスレーブ優先度「2」とデータCのマスター優先度「5」とを比較すると、データYの優先度の方が高いため、勝敗結果情報は「負」となり、その情報を付けて送信しても良い。
 一方、調停処理において、スレーブ通信装置は、次に送信する予定のデータYの処理内容(全線の半二重通信のライト要求など)を示す要求コマンドの送信を全二重通信で行う。この要求コマンドには、次に送信する予定のデータYの優先度情報(スレーブ優先度「2」)が付けられている。この場合、データYのスレーブ優先度「2」とデータCのマスター優先度「5」とを比較すると、データYの優先度の方が高いため、勝敗結果情報は「勝」となり、その情報を付けて送信しても良い。
 この調停処理では、スレーブ優先度がマスター優先度より優先度が高いため、スレーブ通信装置が全線の半二重通信の送信権を有すると判定される。そして、このような調停処理の結果に基づいて、DAT0の転送方向を切り替えてスレーブ通信装置が、全線の半二重通信でデータYの送信を行う。このようにして、優先度の高いデータYの送信を全線の半二重通信で行うことができる。そして、データYの送信が完了すると、マスター通信装置は、データCの送信を全二重通信で行い、また、スレーブ通信装置は、次のデータZの処理内容を示す要求コマンド、データZ送信を全二重通信で行う。
 つぎに、通信システムの動作の変形例を、図面を用いて説明する。なお、以下では、図10の動作と相違する点を中心に説明する。
 図11は、通信システムの動作の変形例を説明するための図である。図11の変形例では、調停処理の開始までに、マスター通信装置に優先度の高いデータDを送信する必要が生じた場合の動作を例示する。この場合、マスター通信装置は、調停処理において、次に送信する予定のデータDの処理内容(全線の半二重通信のライト要求など)を示す要求コマンドの送信を全二重通信で行う。この要求コマンドには、次に送信する予定のデータDの優先度情報(マスター優先度「1」)が付けられている。この場合、データDのマスター優先度「1」とデータYのスレーブ優先度「2」とを比較すると、データEの優先度の方が高いため、勝敗結果情報は「勝」となる。
 この調停処理では、マスター優先度がスレーブ優先度より優先度が高いため、マスター通信装置が全線の半二重通信の送信権を有すると判定される。そして、このような調停処理の結果に基づいて、マスター通信装置が、全線の半二重通信でデータDの送信を行う。このようにして、優先度の高いデータEの送信を全線の半二重通信で行うことができる。
 図12は、通信システムの動作の他の変形例を説明するための図である。図12の変形例では、調停処理の開始までのアイドル期間に、スレーブ通信装置がデータYの一部を先行送信する場合の動作を例示する。この場合、スレーブ通信装置は、データYの一部を全二重通信で送信する。
 その後、図10の例と同様にして調停処理が行われ、その調停処理の結果に基づいて、スレーブ通信装置が、全線の半二重通信でデータYの残部の送信を行う。この場合、スレーブ通信装置は、データYの一部を先行送信しているので、その分だけ全線の半二重通信でのデータYの送信(データYの残部の送信)が短くて済む。
 図13は、通信システムの動作の他の変形例を説明するための図である。図13の変形例では、データYの全線の半二重通信の期間に上限が設けられており、全線の半二重通信中に、マスター通信装置にデータE(非常に優先度の高いデータ)の緊急送信の割込み要求がなされた場合の動作を例示する。この場合、スレーブ通信装置は、全線の半二重通信の期間の上限までデータYの送信を行う。
 この全線の半二重通信中に、マスター通信装置にデータEの緊急送信の割込み要求がなされると、マスター通信装置は、全線の半二重通信の期間の経過後にデータEの送信を行う。図13では、マスター通信装置が、全線の半二重通信でデータEの送信を行う例が示されているが、データEの送信は、全二重通信で行われてもよい。そして、データEの送信が完了後、全線の半二重通信でデータYの残部の送信を行う。このようにして、全線の半二重通信中のデータE(非常に優先度の高いデータ)の緊急送信の割込み要求に対応することができる。
 図14は、通信システムの動作の他の変形例を説明するための図である。図14の変形例では、全線の半二重通信でデータYの送信が完了した後、調停処理が開始される。この調停処理において、マスター通信装置は、次に送信する予定のデータCの処理内容(全二重通信のライト要求など)を示す要求コマンドの送信を全二重通信で行う。この要求コマンドには、次に送信する予定のデータCの優先度情報(スレーブ優先度「5」)が付けられている。この場合、データCのマスター優先度「5」とデータZのスレーブ優先度「7」とを比較すると、データDの優先度の方が高いため、勝敗結果情報は「勝」となる。
 一方、この調停処理において、スレーブ通信装置は、次に送信する予定のデータZの処理内容(全線の半二重通信のライト要求など)を示す要求コマンドの送信を全二重通信で行う。この要求コマンドには、次に送信する予定のデータZの優先度情報(スレーブ優先度「7」)が付けられている。この場合、データZのスレーブ優先度「7」とデータCのマスター優先度「5」とを比較すると、データZの優先度の方が低いため、勝敗結果情報は「敗」となる。
 この調停処理では、スレーブ優先度がマスター優先度より優先度が低いため、スレーブ通信装置が全線の半二重通信の送信権を有していない(マスター装置101が全二重通信の送信権を有している)と判定される。そして、このような調停処理の結果に基づいて、マスター通信装置が、全二重通信でデータCの送信を行い、また、スレーブ通信装置は、データZの送信を全二重通信で行う。
 このような本発明の実施の形態のデータ転送装置によれば、次に送信する予定のデータの優先度情報に基づいて調停処理を行う調停処理部9を設けることにより、送信するデータの優先度を考慮して全線の半二重通信と全二重通信との切替えを行う通信制御が可能になる。
 すなわち、本実施の形態のデータ転送装置では、マスター優先度(マスター通信装置が次に送信する予定のデータまたはコマンドの優先度)とスレーブ優先度(スレーブ通信装置が次に送信する予定のデータまたはコマンドの優先度)とに基づいて、マスター通信装置が全線の半二重通信を行うことができるか否かを判定する調停処理が行われる。これにより、例えば、マスター通信装置が(スレーブ通信装置より)優先度の高いデータを送信したい場合には、マスター通信装置が全線の半二重通信で優先的にデータ送信を行うことができる。このように、送信するデータの優先度を考慮して、全線の半二重通信と全二重通信の切替えを行うことができる。
 本実施の形態のデータ転送装置では、マスター通信装置が調停処理の開始を要求する場合には、スレーブ通信装置へ調停要求を送信して、スレーブ通信装置からスレーブ優先度の優先度情報を受信する。これにより、マスター通信装置からの調停要求によって調停処理が開始される際に、スレーブ通信装置にはスレーブ優先度を送信する機会が与えられ、公平な調停処理を行うことが可能になる。
 本実施の形態のデータ転送装置では、マスター優先度がスレーブ優先度より高いと判定された場合に、調停処理が開始される。このようにして、送信するデータの優先度に基づいて調停処理の開始が決定される。これにより、送信するデータの優先度を考慮した全線の半二重通信と全二重通信の切替えが可能になる。
 また、本実施の形態のデータ転送装置では、マスター優先度がスレーブ優先度より高いと判定された場合には、調停処理において、マスター通信装置からスレーブ通信装置へ要求コマンドが送信される。この要求コマンドには、マスター通信装置が次に送信する予定のデータやコマンドの処理内容(例えば、全線の半二重通信など)が示されている。例えば、マスター通信装置が優先度の高いデータを送信したい場合には、マスター優先度がスレーブ優先度より高いと判定され、要求コマンドに基づいて全線の半二重通信でのデータ送信が行われる。これにより、送信するデータの優先度を考慮した全線の半二重通信と全二重通信の切替えが可能になる。
 また、本実施の形態のデータ転送装置では、調停処理の開始時のマスター優先度の優先度情報と要求コマンドが送信される。例えば、調停処理の開始までに優先度の高いデータを送信する必要が生じた場合には、次に送信する予定のデータが変更される。そのような場合であっても、変更後のデータ送信についての優先度と要求コマンドが送信されるので、送信予定のデータの変更に対応することが可能になる。
 また、本実施の形態のデータ転送装置では、アイドル期間内に送信予定のデータの一部を先行送信することが可能になり、データ送信の効率が向上する。
 また、本実施の形態のデータ転送装置では、全線の半二重通信の期間の長さが予め設定される。すなわち、全線の半二重通信の期間に予め上限が設けられる。このように、全線の半二重通信の期間に上限を設けることにより、緊急なデータ送信などの割込み要求に対応することが可能になり、応答性が向上する。
 本実施の形態のデータ転送装置では、データやコマンドの末尾に優先度情報が付けられ、データやコマンドとともに優先度情報が送信される。データやコマンドの送信を行う際に、データ送信のディレクションが同じである優先度情報を一緒に送信するので、優先度情報を簡単かつ確実に送信することができる。また、データやコマンドとともに優先度情報が常に送受信されるので、常時、相手側(他の通信装置101)の送信データの優先度の状況を把握することができる。
 上記のように、本実施の形態のデータ転送装置は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ転送装置によって構成され、複数のデータ転送装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ転送システムに適用されるデータ転送装置であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、前記第1の優先度情報と前記第2の優先度情報に基づいて、全線の半二重通信で送信する権利を、自装置と前記通信相手の装置のいずれが有するかを判定する調停処理を行う調停処理部と、を備えた構成を有している。
 この構成により、第1の優先度(自装置が次に送信する予定のデータまたはコマンドの優先度)と第2の優先度(通信相手の装置が次に送信する予定のデータまたはコマンドの優先度)に基づいて、自装置と通信相手の装置のいずれが全線の半二重通信を行うことができるか否かを判定する調停処理が行われる。これにより、例えば、自装置が(通信相手の装置より)優先度の高いデータを送信したい場合には、自装置が全線の半二重通信で優先的にデータ送信を行うことができる。このように、送信するデータの優先度を考慮して、全線の半二重通信と全二重通信の切替えを行うことができる。
 本実施の形態のデータ転送システムは、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ転送装置によって構成され、複数のデータ転送装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ転送システムであって、前記データ転送装置は、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、前記第1の優先度情報と前記第2の優先度情報に基づいて、全線の半二重通信で送信する権利を、自装置と前記通信相手の装置のいずれが有するかを判定する調停処理を行う調停処理部と、を備えた構成を有している。
 このシステムによれば、第1の優先度と第2の優先度に基づいて、自装置と通信相手の装置のいずれが全線の半二重通信を行うことができるか否かを判定する調停処理が行われる。これにより、例えば、自装置が(通信相手の通信装置より)優先度の高いデータを送信したい場合には、自装置が全線の半二重通信で優先的にデータ送信を行うことができる。このように、送信するデータの優先度を考慮して、全線の半二重通信と全二重通信の切替えを行うことができる。
 本実施の形態のデータ転送制御方法は、データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ転送装置によって構成され、複数のデータ転送装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ転送システムで用いられるデータ転送方法であって、次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信し、前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信し、前記第1の優先度情報と前記第2の優先度情報に基づいて、全線の半二重通信で送信する権利を、自装置と前記通信相手の装置のいずれが有するかを判定する調停処理を行う。
 この方法によっても、第1の優先度と第2の優先度に基づいて、自装置と通信相手の装置のいずれが全線の半二重通信を行うことができるか否かを判定する調停処理が行われる。これにより、例えば、自装置が(通信相手の装置より)優先度の高いデータを送信したい場合には、自装置が全線の半二重通信で優先的にデータ送信を行うことができる。このように、送信するデータの優先度を考慮して、全線の半二重通信と全二重通信の切替えを行うことができる。
 このような本実施の形態では、次に送信する予定のデータの優先度情報に基づいて調停処理を行う調停処理部を設けることにより、送信するデータの優先度を考慮して全線の半二重通信と全二重通信の切替えを行う通信制御が可能になるという効果を有する通信システムを提供することができる。
 また、本実施の形態のデータ転送装置では、調停処理部は、第1の優先度情報と第2の優先度情報を比較し、両優先度情報が等しい場合には半二重通信を継続するよう判定し、第1の優先度情報の方が優先度が高い場合には自装置が全線の半二重通信するよう判定し、第2の優先度情報の方が優先度が高い場合には通信相手の装置が全線の半二重通信するように判定する構成を有している。
 また、本実施の形態のデータ転送装置では、前記優先度送信部は、前記第1の優先度情報とともに、前記調停処理の開始を要求する第1の調停要求を前記通信相手の装置へ全二重通信で送信可能であり、前記優先度受信部は、前記第2の優先度情報とともに、前記通信相手の装置が前記調停処理の開始を要求する第2の調停要求を全二重通信で受信可能であり、前記調停処理部は、前記第1の調停要求の送信後に、前記優先度受信部が前記第2の優先度情報もしくは前記第2の優先度情報とともに前記第2の調停要求を前記通信相手の装置から全二重通信で受信した場合に、前記調停処理を開始する構成を有している。
 また、本実施の形態のデータ転送装置では、前記優先度送信部は、前記第1の優先度情報とともに、前記調停処理の開始を要求する第1の調停要求を前記通信相手の装置へ全二重通信で送信可能であり、前記優先度受信部は、前記第2の優先度情報とともに、前記通信相手の装置が前記調停処理の開始を要求する第2の調停要求を全二重通信で受信可能であり、前記調停処理部は、前記第2の調停要求の受信後に、前記優先度送信部が前記第1の優先度情報もしくは前記第1の優先度情報とともに前記第1の調停要求を前記通信相手の装置へ全二重通信で送信した場合に、前記調停処理を開始する構成を有している。
 また、本実施の形態のデータ転送装置では、前記調停処理部は、前記調停処理する際に、自装置が次に送信する予定のデータまたはコマンドの処理内容を示す要求コマンドを、前記通信相手の装置へ全二重通信で送信するコマンド送信部を備えた構成を有している。
 また、本実施の形態のデータ転送装置では、前記優先度送信部は、前記調停処理の開始時における前記第1の優先度情報を前記通信相手の装置へ全二重通信で送信可能であり、前記優先度受信部は、前記調停処理の開始時における前記第2の優先度情報を前記通信相手の装置から全二重通信で受信可能であり、前記調停処理部は、前記調停処理の開始時における前記第1の優先度情報と前記第2の優先度情報とを基に前記調停処理を行う構成を有している。
 また、本実施の形態のデータ転送装置は、前記第1の優先度情報の送信後から前記調停処理が開始されるまでのアイドル期間に、自装置が次に送信する予定のデータの少なくとも一部を先行して送信するデータ送信部を備えた構成を有している。
 また、本実施の形態のデータ転送装置では、自装置が次に送信する予定のデータまたはコマンドを前記通信相手の装置へ全線の半二重通信で送信する期間の長さが予め設定されている。
 また、本実施の形態のデータ転送装置では、前記優先度送信部は、前記第1の優先度情報を、自装置が送信するデータまたはコマンドの末尾に付けて送信する構成を有している。
 以上、本発明の実施の形態を例示により説明したが、本発明の範囲はこれらに限定されるものではなく、請求項に記載された範囲内において目的に応じて変更・変形することが可能である。
 以上に現時点で考えられる本発明の好適な実施の形態を説明したが、本実施の形態に対して多様な変形が可能なことが理解され、そして、本発明の真実の精神と範囲内にあるそのようなすべての変形を添付の請求の範囲が含むことが意図されている。
 本出願は、2008年5月30日出願の日本特許出願2008-142215号、及び、2008年6月13日出願の日本特許出願2008-155461号に基づくものであり、その内容はここに参照として取り込まれる。
 以上のように、本発明にかかる通信装置は、送信するデータの優先度を考慮して全線の半二重通信と全二重通信の切替えを行う通信制御が可能になるという効果を有し、複数のデータ転送要求を投機的に発行するデータ処理システム等で用いられ、有用である。
 1 データ通信装置
 2 信号線
 3 送信制御部
 4 受信制御部
 5 データ送信制御部
 6 コマンド送信制御部
 7 バッファ
 8 マルチプレクサ
 9 パラレル・シリアル変換部
 10 データ受信制御部
 11 コマンド受信制御部
 12 バッファ
 13 シリアル・パラレル変換部
 14 デマルチプレクサ
 15 優先度送信制御部
 16 優先度受信制御部
 17 調停処理部
 18 送信切替部
 19 受信切替部
 20 DAT0転送方向切替部
 21 DAT1転送方向切替部
 101 データ転送装置
 102 信号線
 103 送信制御部
 104 受信制御部
 106a、106b バッファ
 107 優先度送信制御部
 108 優先度受信制御部
 109 調停処理部
 112a コマンド送信制御部
 112b コマンド受信制御部
 113 データ先行送信制御部
 114 マルチプレクサ
 115 パラレル・シリアル変換部
 116 デマルチプレクサ
 117 シリアル・パラレル変換部
 118 送信切替部
 119 受信切替部
 120 DAT0転送方向切替部
 121 DAT1転送方向切替部

Claims (19)

  1.  データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ転送システムに適用されるデータ通信装置であって、
     次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、
     自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持する優先度保持部と、
     前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、
     前記送信中の優先度情報と前記第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を前記通信相手の装置に与えるか、を判定する調停処理を行う調停処理部と、
    を備えたことを特徴とするデータ通信装置。
  2.  前記調停処理部は、
     前記送信中の優先度情報と前記第2の優先度情報を比較し、
     両優先度情報が等しい場合または前記送信中の優先度情報の方が優先度が高い場合には全二重通信を継続すると判定し、
     前記第2の優先度情報の方が優先度が高い場合には、送信中のデータまたはコマンドの全二重通信を一時中断して前記通信相手の装置に全線の半二重通信で送信する権利を与えると判定することを特徴とする請求項1記載のデータ通信装置。
  3.  前記調停処理部は、
     前記送信中の優先度情報と前記第2の優先度情報を比較し、
     両優先度情報が等しい場合または前記送信中の優先度情報の方が優先度が高い場合には全二重通信を継続すると判定し、
     前記第2の優先度情報の方が優先度が高い場合には、自装置の全二重通信を全線の半二重通信に切り替えて、送信中のデータまたはコマンドを全線の半二重通信で送信した後に、前記通信相手の装置に全線の半二重通信で送信する権利を与えると判定することを特徴とする請求項1記載のデータ通信装置。
  4.  前記調停処理部は、
     前記送信中の優先度情報と前記第2の優先度情報を比較し、
     前記第2の優先度情報が前記通信相手の装置が次に転送するデータが無いことを示している場合は、自装置の全二重通信を全線の半二重通信に切り替えて、送信中のデータまたはコマンドを全線の半二重通信で送信すると判定することを特徴とする請求項1記載のデータ通信装置。
  5.  前記優先度受信部は、前記第2の優先度情報とともに前記調停処理の開始を要求する第2の調停要求を全二重通信で受信可能であり、
     前記調停処理部は、前記第2の調停要求の受信に応じて、前記調停処理を実行中の全二重通信と並行して開始することを特徴とする請求項1に記載のデータ通信装置。
  6.  前記通信相手の装置へのデータ送信を制御するとともに、データ送信中の全二重通信が前記調停処理部の判定に基づいて一時中断されるまでに送信完了したデータサイズを管理するデータ送信制御部と、
     前記通信相手の装置から全線の半二重通信で送信されたデータを受信し終えた後、前記調停処理部が前記調停処理を開始する際に、前記データ送信制御部が管理している前記データサイズに基づいて、残りのデータサイズ分のデータ送信を再開するための要求コマンドを前記通信相手の装置へ送信するコマンド送信部と、
    を備えたことを特徴とする請求項1に記載のデータ通信装置。
  7.  前記通信相手の装置へのデータ送信を制御するとともに、データ送信中の全二重通信が前記調停処理部の判定に基づいて一時中断されるまでに送信完了したデータサイズを管理するデータ送信制御部を備え、
     前記データ送信制御部は、データ送信中の全二重通信が一時中断された後、前記通信相手の装置から全線の半二重通信で送信されるデータを受信完了したときに、管理している前記データサイズに基づいて、残りのデータサイズ分のデータ送信を再開することを特徴とする請求項1に記載のデータ通信装置。
  8.  前記コマンド送信部は、一時中断した全二重通信を再開する際、前記第1の優先度情報として、前記一時中断の前よりも優先度の高い優先度情報を付した要求コマンドを、前記通信相手の装置へ送信することを特徴とする請求項7記載のデータ通信装置。
  9.  前記コマンド送信部は、一時中断した全二重通信を再開する際、全線の半二重通信を要求する要求コマンドを、前記通信相手の装置へ送信することを特徴とする請求項7記載のデータ通信装置。
  10.  データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムに適用されるデータ通信装置であって、
     次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、
     前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、
     全二重通信で受信中のデータ優先度である受信中の優先度情報を管理する管理部と、
     前記受信中の優先度情報と前記第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行う調停処理部と、
    を備えたことを特徴とするデータ通信装置。
  11.  前記調停処理部は、
     前記受信中の優先度情報と前記第1の優先度情報を比較し、
     両優先度情報が等しい場合または前記受信中の優先度情報の方が優先度が高い場合には全二重通信を継続すると判定し、
     前記第1の優先度情報の方が優先度が高い場合には、受信中のデータまたはコマンドの全二重通信を一時中断して自装置が全線の半二重通信で送信する権利を有すると判定することを特徴とする請求項10に記載のデータ通信装置。
  12.  前記優先度送信部は、前記第1の優先度情報とともに前記調停処理の開始を要求する第1の調停要求を全二重通信で送信可能であり、
     前記調停処理部は、前記第1の調停要求の送信に応じて、前記調停処理を開始することを特徴とする請求項10に記載のデータ通信装置。
  13.  前記調停処理部が、受信中の全二重通信を一時中断すると判定した場合、
     前記通信相手の装置からのデータ受信を制御するとともに、データ受信中の全二重通信が前記調停処理部の判定に基づいて一時中断されるまでに受信完了したデータサイズを管理するデータ受信制御部を備え、
     前記データ受信制御部は、データ受信中の全二重通信が一時中断された後、前記通信相手の装置への全線の半二重通信で送信するデータを送信完了したときに、管理している前記データサイズに基づいて、残りのデータサイズ分のデータ受信を再開することを特徴とする請求項10に記載のデータ通信装置。
  14.  自装置がデータまたはコマンドを前記通信相手の装置へ全線の半二重通信で送信する期間の長さ、または、自装置がデータまたはコマンドを前記通信相手の装置から全線の半二重通信で受信する期間の長さは、予め設定されていることを特徴とする請求項1に記載のデータ通信装置。
  15.  前記優先度送信部は、前記第1の優先度情報を、自装置が送信するデータまたはコマンドの末尾に付けて送信することを特徴とする請求項1に記載のデータ通信装置。
  16.  データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムであって、
     前記データ通信装置は、
     次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、
     自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持する優先度保持部と、
     前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、
     前記送信中の優先度情報と前記第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を前記通信相手の装置に与えるか、を判定する調停処理を行う調停処理部と、
    を備えたことを特徴とするデータ通信システム。
  17.  データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムであって、
     前記データ通信装置は、
     次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信する優先度送信部と、
     前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信する優先度受信部と、
     全二重通信で受信中のデータ優先度である受信中の優先度情報を管理する管理部と、
     前記受信中の優先度情報と前記第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行う調停処理部と、
    を備えたことを特徴とするデータ通信システム。
  18.  データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムで用いられるデータ通信方法であって、
     次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信し、
     自装置が送信中のデータまたはコマンドの優先度を示す送信中の優先度情報を保持し、
     前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信し、
     前記送信中の優先度情報と前記第2の優先度情報に基づいて、送信中のデータまたはコマンドの全二重通信を継続するか、送信中のデータまたはコマンドの全二重通信を一時中断して全線の半二重通信で送信する権利を前記通信相手の装置に与えるか、を判定する調停処理を行うことを特徴とするデータ通信制御方法。
  19.  データおよびコマンドのいずれも送信可能な複数の信号線によって接続された複数のデータ通信装置によって構成され、複数のデータ通信装置間において前記複数の信号線の全線の半二重通信と全二重通信とが切替え可能に行われるデータ通信システムで用いられるデータ通信方法であって、
     次に送信する予定のデータまたはコマンドの優先度を示す第1の優先度情報を、通信相手の装置へ全二重通信で送信し、
     前記通信相手の装置が次に送信する予定のデータまたはコマンドの優先度を示す第2の優先度情報を受信し、
     全二重通信で受信中のデータ優先度である受信中の優先度情報を管理し、
     前記受信中の優先度情報と前記第1の優先度情報に基づいて、受信中のデータまたはコマンドの全二重通信を継続するか、受信中の全二重通信を一時中断して全線の半二重通信で送信する権利を自装置が有するか、を判定する調停処理を行うことを特徴とするデータ通信制御方法。
PCT/JP2009/002270 2008-05-30 2009-05-22 データ通信装置、データ通信システムおよびデータ通信制御方法 WO2009144903A1 (ja)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2008-142215 2008-05-30
JP2008142215A JP2009290650A (ja) 2008-05-30 2008-05-30 データ転送装置、データ転送システムおよびデータ転送制御方法
JP2008-155461 2008-06-13
JP2008155461A JP2009302933A (ja) 2008-06-13 2008-06-13 データ通信装置、データ通信システムおよびデータ通信制御方法

Publications (1)

Publication Number Publication Date
WO2009144903A1 true WO2009144903A1 (ja) 2009-12-03

Family

ID=41376793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2009/002270 WO2009144903A1 (ja) 2008-05-30 2009-05-22 データ通信装置、データ通信システムおよびデータ通信制御方法

Country Status (1)

Country Link
WO (1) WO2009144903A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107680615A (zh) * 2017-09-25 2018-02-09 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) 一种话音信号检测方法及系统
CN113114331A (zh) * 2021-02-26 2021-07-13 深圳市万联航通电子科技有限公司 一种多路串行接口的合并传输方法、系统、装置及介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816501A (ja) * 1994-06-27 1996-01-19 Mitsubishi Electric Corp 通信装置およびそれを用いた通信システム
JP2001086185A (ja) * 1999-09-14 2001-03-30 Sharp Corp 通信方法および装置
JP2001086104A (ja) * 1999-09-14 2001-03-30 Sharp Corp 双方向伝送システム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816501A (ja) * 1994-06-27 1996-01-19 Mitsubishi Electric Corp 通信装置およびそれを用いた通信システム
JP2001086185A (ja) * 1999-09-14 2001-03-30 Sharp Corp 通信方法および装置
JP2001086104A (ja) * 1999-09-14 2001-03-30 Sharp Corp 双方向伝送システム

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107680615A (zh) * 2017-09-25 2018-02-09 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) 一种话音信号检测方法及系统
CN113114331A (zh) * 2021-02-26 2021-07-13 深圳市万联航通电子科技有限公司 一种多路串行接口的合并传输方法、系统、装置及介质

Similar Documents

Publication Publication Date Title
US20050102456A1 (en) Command transmission method and command transmission apparatus in pipeline bus system
JPH09128315A (ja) データのフローを制御する方法及び装置
WO2012012961A1 (zh) 总线调度方法及装置
CN103650401A (zh) 一种移动终端内部通信方法
WO2009144903A1 (ja) データ通信装置、データ通信システムおよびデータ通信制御方法
JPH10308791A (ja) データ通信方法、データ通信装置、およびデータ通信プログラム記録媒体
JP2004187094A (ja) 通信確立装置
US9619005B2 (en) Apparatus and method for saving power of USB device
JP2009302933A (ja) データ通信装置、データ通信システムおよびデータ通信制御方法
US7177280B2 (en) Data transfer processing apparatus, data transfer method, and data transfer program
JP2000224208A (ja) パケット転送制御装置及びパケット転送方法
JP3387464B2 (ja) 通信制御システムとその制御方法
JP5317185B2 (ja) ホットスタンバイシステム及びホットスタンバイ方法
JP2009290650A (ja) データ転送装置、データ転送システムおよびデータ転送制御方法
JP4458873B2 (ja) シリアルデータ転送方法とその装置
JP2006197417A (ja) 通信制御方法及びシステム
JPH11242506A (ja) プログラマブルコントローラ
JP2001325212A (ja) マルチプロセッサシステムにおけるソースプロセッサから宛先プロセッサにデータブロックを送信する方法と装置
JP2002185560A (ja) シリアル転送方式
WO2023004801A1 (zh) 一种任务处理方法及装置
JPH0816501A (ja) 通信装置およびそれを用いた通信システム
JP2000004246A (ja) 通信装置の監視制御方法
JP3922552B2 (ja) 半二重光無線通信システム、半二重光無線通信子機、半二重光無線通信方法
JP2005267324A (ja) 構内交換機及びデータ転送処理システム
KR100720576B1 (ko) 이동통신 기지국에 구비되는 패킷 전송 장치 및 이를이용한 전송 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09754412

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09754412

Country of ref document: EP

Kind code of ref document: A1