Patent ID: 9720440
Date: 2017-08-01
CPC Classifications: G06F

Claim:
1. A communication apparatus having a CPU and a memory which stores instructions executable by the CPU, comprising: an output unit configured to output a clock signal to a communication module that communicates with an external device; a generation unit configured to generate a timing signal by delaying the clock signal; a communication unit configured to transmit data to the communication module according to the clock signal, and to receive data from the communication module in accordance with a timing corresponding to the timing signal; an adjustment unit configured to perform an adjustment process for requesting a predetermined test pattern from the communication module and for adjusting an amount of the delay in accordance with a result of receiving the test pattern which is sent from the communication module in response to the request of the test pattern and is received by the communication unit in accordance with the timing signal; and a control unit configured to control the communication unit, in a predetermined mode for continuously transmitting stream data to the communication module, to repeatedly perform first processing for transmitting a first command to the communication module, second processing for receiving a first response that is sent from the communication module in response to the first command, and third processing for transmitting a packet including the stream data to the communication module according to the first response, wherein, in the predetermined mode, if the first response sent from the communication module in response to the first command is received by the communication unit, the control unit controls the communication unit to perform processing for transmitting the packet including the stream data by the third process regardless of contents of the first response sent from the communication module in response to the first command and received by the communication unit, and if the first response sent from the communication module in response to the first command is not received by the communication unit, the control unit controls the communication unit so that the packet including the stream data is not transmitted to the communication module, wherein, in the predetermined mode, the control unit controls the communication unit to transmit a second command different from the first command to the communication module and controls the adjustment unit to perform the adjustment process if there is an error in a second response sent from the communication module in response to the second command, and wherein the control unit is implemented by the CPU.