Data communication apparatus

Abstract: A data communication apparatus comprises a first switching means which switches over between data communication and speech communication depending as whether or not a signal indicating data communication mode is received within a predetermined period of time, a second switching means which switches over between data communication and speech communication depending as whether or not a response signal to a procedure signal is received in a predetermined period of time, detecting means for detecting a state of the apparatus, and selecting means for selecting one of the first and second switching means.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a data communication apparatus, particularly to a data communication apparatus which has functions of selectively switching data communication and speech communication automatically. Related Background Art Traditionally, in a facsimile apparatus, etc. there are known systems for judging automatically voice communication and data communication in an automatic reception mode. The followings are known as systems for selectively switching data communication mode and voice communication mode automatically. First, an example for switching to the data communication mode after receiving a call will be described in reference to a facsimile apparatus. 1) In unautomatic reception mode, as soon as a call is received, facsimile procedure signals (NSF/CSI/DIS, etc.) are transmitted, and when response signals (e.g. NSS/TSI/DCS, etc.) are received, image communication is followed. If no response signals are received, quasi-ring tone is issued to call for an operator for speech communication. But, in some apparatuses facsimile procedure signals are detected even after the calling of an operator. In US-A- 4,677,660, an apparatus of this kind is disclosed. 2) There is known a system having a message answering sequence at the time of starting a reception control, in addition to the above function. Such message as "If you wish speech communication, please wait for a while. If you wish data communication, please push the start button" is sent. This system has the advantage that a proper message can be given to a caller to teach subsequent procedures without fail. 3) Like the above system 1), as soon as a call is received in an automatic reception mode, facsimile procedure signals (NSF/CFI/DIS signals, etc.) are transmitted, and then corresponding response signals (e.g. NSS/TSI/DCS signals, etc.) are received. At the same time when these signals are detected, a speech signal and others from a partner are discriminated. When the speech signal is detected, the judgment is made that the partner is trying to make speech communication, and the speech communication mode is chosen at once. The facsimile procedure signals may be detected even after the calling of an operator. US-A- 4,815,121 is directed to a system in which a mode is switched by detection of a speech signal. 4) As in the system 2), a message answering function is added to the system 3). Usually, after detection of a speech signal from partner station, such message as "Calling now. Please wait for a while" is sent. 5) In the above systems 1) - 4), a quasi-ring tone is used to call an operator. This system outputs a signal sent from a calling station through a speaker. At a called station, a message may not be issued through the speaker. US-A- 4,773,080 is an example of a system which issues a message through a speaker. The following is a system for automatically changing from a speech communication mode to a data communication mode. 6) Upon reception of a call, a significant signal (e.g. CNG signal) from a partner station is detected, and if this signal is received, data communication is selected. U.S. Patent Appln. Ser. No. 573,684 (filed on Aug. 28, 1990 and corresponding to EP-A-0 415 723 published 06.03.91) relates to a system which detects a CNG signal while sending a ring-back tone (quasi-reception tone) to the partner station at the time of the reception of a call. After transmission of this ring back tone, if no significant signal is detected after the lapse of a predetermined time period, an operator is called. This system gives priority to a speech communication mode since the ring back tone is always sent to a calling party after the reception of a call. A system for switching over a mode by detection of the CNG signal is disclosed in US-A- 4,800,439; US-A- 4,932,048 (published 05.06.90); and US-A- 4,916,607. However, in a conventional apparatus, data communication and speech communication are automatically switched over by one determined system regardless of communication condition. For this reason, in automatic switchover from the data communication to the speech communication, unless a message response is made as in the above system 1), an operator may erroneously consider completion of dialing to a facsimile equipment and disconnect the line. If a speech answering function is added, there occurs the problem that an apparatus is more expensive and communication time is always prolonged by the time corresponding to the message response. In the case of a system (the above 6) in which priority is given to thespeech communication mode and thereafter the mode is switched to data communication, there is a serious problem that polling transmission cannot be done. For instance, even if a call is received and CNG signal detection is executed while transmitting a ring-back tone, in the CNG signal is not detected when a calling station requests the polling because whether the mode is manual or automatic, the calling station is in a state of reception. So, it is impossible to shift to data communication and conduct the polling. It is a concern of the present invention to improve data communication apparatus in light of the above-mentioned problems. Japanese Patent Specification No. JP-A-63098266 discloses apparatus in which selection between data and speech communication is made automatically. In accordance with a first aspect of the present invention there is provided data communication apparatus as set out in claim 1. In accordance with a second aspect of the invention there is provided a data communication method as set out in claim 8. In order that the present invention may be more readily understood an embodiment thereof will now be described by way of example and with reference to the accompanying drawings, in which: Fig. 1 is a block diagram showing a structure of a facsimile apparatus according to one embodiment of the present invention. Figs. 2A and 2B are flow charts showing a control operation of the embodiment. One embodiment of the present invention will be explained in detail with reference to drawings as hereinbelow. While a facsimile apparatus is considered in the following embodiment, the present invention can be applied not only to a facsimile apparatus but also to various kinds of data communication equipments such as a telex machine. Fig. 1 is a block diagram showing a structure of the facsimile apparatus of the present embodiment. Here, only the circuit necessary for reception control is illustrated. As shown in the Figure, a telephone line 2a is connected to NCU2. To the NCU2 is connected a telephone set 4 as a speech terminal via a signal line 2b. As a non-speech terminal, a facsimile communication system after a hybrid circuit 6 is connected via a signal line 2c. A control circuit 28 controls a switchover operation of the NCU2 via a signal line 28a. Data "0" to "3" are sent to the NCU2, and the line 2a is connected either to the hybrid circuit 6 or the telephone set 4 according to respective data values. The facsimile apparatus after the hybrid circuit 6 is structured as follows. Firstly, the hybrid circuit 6 is used to separate a received signal and a sending signal. The sending signal is input from a signal line 14a and the received signal is output via a signal line 6a. A transmission system comprises an adder 14, output circuits indicated by numerals 8, 10 and 12, a modulator (not shown) and an image input device (not shown). The adder 14 sums signals input from the CED signal output circuit 8, NSF/CSI/DIS signal output circuit 10 and ring-back tone output circuit 12 via signal lines 8a, 10a and 12a respectively. The CED signal output circuit 8 outputs a CED signal to the adder 14 via the signal line 8a by inputting a pulse signal to a signal line 28b and generates a pulse signal on a signal line 8b at the end of transmission of the CED signal. The NSF/CSI/DIS signal output circuit 10 outputs NSF/CSI/DIS signals to the adder 14 via a signal line 10a by inputting a pulse signal to a signal line 28c and generate a pulse signal on a signal line 10b at the end of transmission of the signal. The ring-back tone output circuit 12 outputs a ring back tone to the adder 14 via a signal line 12a by inputting a pulse signal to a signal line 28d. An output from the hybrid circuit 6 is input to two signal receiving circuits, namely a protocol signal detection circuit 16 and a CNG signal detection circuit 18. The protocol signal detection circuit 16 and the CNG signal detection circuit 18 detect a facsimile procedure signal of 300 bps and a CNG signal (facsimile calling signal). If a target signal is detected, pulse signals are output to the control circuit 28 via signal lines 16a and 18a. An incoming call is detected by a calling signal detection circuit 20 connected, with the telephone set 4, to the line 2b. When the calling signal detection circuit 20 detects the calling signal, a pulse signal is output to the control circuit 28 via a signal line 20a. In the present embodiment, information as to the existence or non-existence of an original sheet at the transmission part is used for the switchover of communication mode at the time of call reception. So, an original sheet detection circuit 27 comprising photosensors, etc. is provided. When the sheet is detected, the original sheet detection circuit outputs a signal of level "1" to the control circuit 28 via a signal line 27a. A quasi-ring tone generating circuit 22 is used to call an operator and comprises a oscillator a speeker, etc. When a signal on a signal line 28e is of level "1", a quasi-ring tone is issued, whereas when the signal is of level "0", the quasi-ring tone is ceased. In the present embodiment, information about a hook condition of the telephone set 4 is used for the switchover of communication mode at the time of call reception, an off-hook detection circuit 24 is provided to detect the hook condition of the telephone set 4. When the telephone set 4 is off-hook, the off-hook detection circuit 24 outputs a signal of level "1" to a signal line 24a. If the telephone set 4 is on-hook, a signal of level "0" is output to the signal line 24a. Numeral 26 is a calling signal generation circuit which generates a signal synchronously with transmission timing of the ring-back tone. The calling signal generation circuit 26 generates a calling signal when a signal on a signal line 28f is of level "1", and ceases the calling signal when the signal is of level "0". The control circuit 28 comprises a microprocessor, a RAM, etc. and controls an operation of the apparatus according to a control program stored in a ROM 28r. Then, an operation of the apparatus structured as above-mentioned will be described. Figs. 2A and 2B show control procedures of the control circuit 28 stored in the ROM28a. In Step S42 of Fig. 2A, the signal of "0" is output to the signal lines 28e, 28f and 28d to cease the quasi-ring tone, the calling tone and the ring-back tone. In Step S44, the signal of "0" is output to the signal line 28a to turn off a CML relay of the NCU2 and connect the line to the telephone set 4. In Step S46, a signal on the signal line 20a is input to judge whether a CI signal (a calling signal of 16Hz) is detected or not. If the CI signal is detected, the flow goes to Step S50 and, if not, to Step 48 for other processing. In Step S50, the signal of "1" is output to the signal line 28a to turn on the CML relay. In Step S52, a signal on the signal line 27a is input to judge whether the original sheet is set on a sheet table or not. If the sheet is set on the sheet table, the flow goes to Step S80 and, if not, to Step S54. Steps S54 to S78 show an automatic switchover mode from speech communication to data communication in which priority is given to the speech communication mode relating to a calling station. If data communication is to be conducted, the mode is switched to the data communication mode. In Step S54, a T1 timer is set to 35 seconds. In Step S56, a ring back tone counter for counting the number of times of transmission of the ring-back tone used for calling an operator, is cleared. In Step S58, the signal of level "1" is output to the signal line 28d for 0.3 seconds and the ring-back tone is sent to the calling station for 0.3 seconds. In Step S60, a timer t2 (not shown) is set to 1.5 seconds. In Step S62, a signal on the signal line 18a is input to judge whether the CNG signal is detected, and in Step S68, a signal on the signal line 24a is input to judge whether the telephone set is off-hook. If the CNG signal is detected before the timer T2 times out, the apparatus shifts to the data communication mode (Step S64), and if the off-hook is detected before the timer T2 times out, the apparatus shifts to the speech communication mode (Step S70). If the timer T2 timers out, the flow goes to Step S72, the ring-back tone counter is incremented. In Step S74, it is judged whether the ring-back tone counter counts 6 or more. If 6 or more, the flow goes to Step S76, and if less than 6, goes to Step S58. In Step S76, the signal of level "1" is output to the signal line 28d and the signal line 28f for 0.3 seconds, and the ring back-tone is sent to the calling station for 0.3 seconds. At the same time, the calling signal for calling an operator is issued for 0.3 seconds. In Step S78, it is judged whether the timer T1 (not shown) times out. If it does not time out, the flow goes to Step S60, and if it times out, goes to Step S42. Steps S80 to S110 of Fig. 2B show an automatic switchover mode from data communication to speech communication in which priority is given to the data communication mode relating to the calling station. If the speech communication is to be conducted, the mode is switched to the speech communication mode. In Step S80, a pulse signal is provided on the signal line 28b to send the CED signal. In Step S82, 75ms is waited for. In Step S84, the timer T1 (not shown) is set to 35 seconds. In Step S86, the timer T2 is set to 10 seconds. In case a significant signal is not detected from the partner station within a specified period of time, an operator is called. The timer T2 is used for measurement of such specified period of time. In Step S88, a pulse signal is provided on the signal line 28c to transmit the NSF/CSI/DIS signals. In Step S90, the timer T4 (not shown) is set to 3 seconds as response reception time period. In Step S92, signals on the signal lines 16a and 18a are input to judge whether a significant signal (e.g. CNG signal, NSS/TSI/DCS signal, NSC/CIS/DTC signal) is detected. If a significant signal is detected, the flow goes to Step S94 and, if not, goes to step S98. In Step S94, the signal of level "0" is output to the signal line 28e to cease the quasi-ring tone. Step S96 represents the data communication mode. In Step S98, it is judged whether the timer T4 times out. If the timer times out, the flow goes to Step S106 and, if not, goes to Step S100. In Step S100, a signal on the signal line 24a is input to judge whether the telephone set is off-hook or not. In the case of the off-hook, the signal of level "0" is output to the signal line 28e to cease the quasi-ring tone (Step S102) and switch the mode to the speech communication mode (Step S104). If not off-hook, the flow goes to Step S92. In Step S106, it is judged whether the timer T2 times out. If it does not time over, the flow goes to Step S88 and, if it times out, the flow goes to Step S108. In Step S108, the signal of level "1" is output to the signal line 28e to issue the quasi-ring tone. In Step S110, it is judged whether the timer T1 times out. If it does not time out, the flow goes to Step S88 and, if it times out, goes to Step S42. With the above structure, according to a condition of the facsimile apparatus, the speech communication or the facsimile communication is preferentially selected at the time of call reception, thereby switching over from one mode to the other mode automatically. In the one automatic call reception mode, if there is no sheet, priority is given to the facsimile communication mode and the CNG signal is detected while sending the ring-back tone. When the CNG signal is detected, facsimile communication is executed. If the CNG signal cannot be detected within a predetermined period of time, the mode is switched to the speech communication mode automatically to issue the quasi-ring tone to call an operator. On the other hand, in the case of the automatic call reception, if there is a sheet, priority is given to the facsimile communication mode. If a facsimile signal from the partner station is detected, facsimile communication is conducted. If a significant facsimile signal is not detected within a specified period of time, the mode is switched to the speech communication mode automatically to produce the quasi-ring tone to call an operator. In this way, since "on-calling" can be indicated by the ring-back tone if the partner station wishes speech communication, it is avoided that the partner disconnects the line. On the other hand, if the sheet is set, the polling process is enabled. In the above-mentioned embodiment in the case of no sheet, the off-hook detection of the telephone set 4 is executed only when the CNG signal detection is performed. The off-hook detection may be conducted also at the time of transmission of the ring-back tone to switch over to the speech communication mode according to the result of the detection. Also, in case there is a sheet, the off-hook detection of the telephone set 4 is done only while the response signal is received. However, the off-hook detection may be conducted also when the NSF/CSI/DIS signals are transmitted to switch over to the speech communication mode according to the result of the detection. Also, in the case of no sheet, the transmission of the ring-back tone may be done under conditions other than the above-mentioned interval condition. Further, the transmission of a calling signal in the case of no sheet is not done using the output of the calling signal generation circuit 26 but may be conducted using the quasi-ring tone from the quasi-ring tone generation circuit 22. If there is a sheet, it is considered as a condition for switchover to the speech communication mode that a significant signal is not detected for 10 seconds. But the mode may be switched to the speech communication according to the detection of a speech signal from the partner station. A sheet at an image input device may be directly detected by a photosensor. But in an apparatus having a mode for reading an original image into an image memory, a sheet may be detected according to the existence of data store within the memory. In the above embodiment, a facsimile apparatus has been illustrated. With respect to another data communication apparatus too, the same structure can be applied.

Claims: A data communication apparatus adapted to handle data communication and speech communication, and comprising means (16) for detecting whether an incoming signal is a data communication signal or a speech signal, and switchover means (28) for appropriately switching the operation of the apparatus between data communication and speech communication in accordance with the nature of the incoming signal as detected by the detecting means, and characterised by second switchover means (28) responsive to the detection of an incoming call and adapted to send a procedure signal for data communication in response to the detection of the incoming call, said second switchover means being adapted to discriminate whether or not a response signal is received in response to the procedure signal within a predetermined period, and to switch appropriately between data communication and speech communication in response to whether the discrimination means detects that a response signal has been received within the predetermined period, and means for selecting one of the switchover means. Apparatus according to claim 1, further comprising detection means (27) for detecting a condition of said apparatus, wherein said selection means selects one of said switchover means in accordance with the output of said detection means. Apparatus according to claim 2, wherein said detection means detects whether or not data to be communicated is present in the apparatus. Apparatus according to claim 3, wherein the apparatus comprises a facsimile apparatus, and the data to be communicated is a sheet at an image input device which forms part of the apparatus. Apparatus according to claim 1, wherein said first switchover means includes means (12) for sending a ring back tone indicating calling an operator, and is adapted to discriminate whether or not a signal indicating data communication has been received whilst repeatedly sending said ring back tone. Apparatus according to claim 1, wherein if the signal indicating data communication is received within a second predetermined time period, said first switchover means selects data communication, and if the signal indicating data communication is not received within the second predetermined time period, said first switchover means selects speech communication. Apparatus according to claim 1, wherein if the response signal is received within the first predetermined period, said second switchover means is adapted to continue the data communication, and if the response signal is not received within the first predetermined period, said second switchover means is adapted to select speech communication. A data communication method in which an apparatus is switched between a data communication mode and a speech communication mode in response to an incoming signal received from a destination party, and comprising a first switchover mode which includes discriminating the nature of an incoming call and switching the apparatus in accordance with the nature of the incoming call, and a second switchover mode which includes responding to the incoming call by sending a procedure signal for data communication, discriminating whether or not a response signal to the procedure signal has been received within a predetermined period of time, and switching automatically between data and speech communication in accordance with the result of the discrimination, and selecting between the first and the second switchover modes. A method according to claim 8, further comprising detecting a condition of the apparatus and selecting between the first and second switchover modes in accordance with the detection by said detection step. A method according to claim 8, wherein said detection step detects whether data to be communicated is present or not in the apparatus. A method according to claim 10, wherein the data comprises a sheet located at an image input device. A method according to claim 8, wherein in said first switchover mode a ring back tone is sent indicating calling an operator, and it is discriminated whether or not a signal indicating data communication is received whilst repeatedly sending the ring back tone. A method according to claim 8 or 12, wherein if the signal indicating data communication is received within a second predetermined time period, said first switchover mode selects data communication, and if the signal indicating data communication is not received within the second predetermined time period, said first switchover mode selects speech communication. A method according to claim 8, wherein if the response signal is received within the first predetermined period, said second switchover mode continues the data communication which was set, and if the response signal is not received within the first predetermined period, said second switchover mode selects speech communication.

Inventors: YOSHIDA TAKEHIRO, YOSHIDA, TAKEHIRO, YOSHIDA, TAKEHIRO, C/O CANON KABUSHIKI KAISHA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: H04N1
IPC codes: H04N1, H04M11