This application is based on and claims priority under 35 USC §119 from Japanese Patent Application No. 2007-302013 filed Nov. 21, 2007.
1. Technical Field
The present invention relates to a communication circuit, a computer readable medium storing a program, a communication apparatus and a communication method.
2. Related Art
A communication apparatus is provided with a line interface circuit for transmitting and receiving signals based on image or sound through a telephone line. In recent years, as one type of the line interface circuit, a line interface circuit including a semiconductor data access device (hereinafter, referred to as a semiconductor data access arrangement (DAA)) is practically used.
According to an aspect of the invention, there is provided a communication circuit including: a transmission and reception unit that transmits and receives communication signals through a telephone line; a connection unit that connects the transmission and reception unit to the telephone line; a detection unit that detects a line voltage value supplied from the telephone line; and a determination unit that determines a type of the telephone line, based on the line voltage value detected by the detection unit.
Exemplary embodiment (s) of the present invention will be described in detail based on the following figures, wherein:
Hereinafter, a detail description will be given for a case where the present invention is applied to a facsimile as an exemplary embodiment of the present invention with reference to the attached drawings.
The image forming apparatus 10 is provided with a controller 11, an image reading unit 12, a print processing unit 13, a user interface unit 14 and a FAX communication unit 15. They are connected to each other through a bus line 16. Further, the image forming apparatus 10 is connected to a telephone network 100 through the FAX communication unit 15. Here, as the telephone network 100, a public network 110, a local network 120 or the like is exemplified. The FAX communication unit 15 is configured so as to communicate not only with the public network 110 but also with the local network 120.
In the image forming apparatus 10, the controller 11 is provided with a CPU (Central Processing Unit) 11a, a ROM (Read Only Memory) 11b and a RAM (Random Access Memory) 11c. The CPU 11a that functions as a determination unit and a setting unit of the present exemplary embodiment reads a program stored in the ROM 11b, executes the read program while transmitting and receiving data to and from the RAM 11c as appropriate, and controls entire operation of the image forming apparatus 10 including the image reading unit 12, the print processing unit 13, the user interface unit 14 and the FAX communication unit 15.
The image reading unit 12 reads an image formed on a manuscript (not illustrated in the figure), and outputs the acquired image signal through the bus line 16.
The print processing unit 13 receives, through the bus line 16, the image signal that has been acquired by reading the manuscript by the image reading unit 12 and an image signal that has been received from the external through the FAX communication unit 15, and forms an image on a paper sheet based on the received image signals.
The user interface unit 14 that functions as a display receives request of, for example, a destination of a facsimile from a user, and displays a message or the like for the user.
The FAX communication unit 15 that functions as a transmission and reception unit generates a transmission signal based on, for example, an image signal acquired by reading a manuscript in the image reading unit 12, and outputs it to the external telephone network 100. Alternatively, the transmission signal may be generated based on an image signal acquired from a network (not illustrated in the figure), and be outputted to the external telephone network 100. In addition, the FAX communication unit 15 generates an image signal based on a transmission signal received from the external through the telephone network 100, and outputs the generated image signal through the bus line 16. Here, in the FAX communication unit 15 of the present exemplary embodiment, a setting of the communication function is to be changed according to whether the connected telephone network 100 is the public network 110 or the local network 120. For example, in the case of connecting to the public network 110, the FAX communication unit 15 is set so as to start dialing a call after detecting a dial tone in an off-hook status. On the other hand, for example, in the case of connecting to the local network 120, the FAX communication unit 15 is set so as to directly start dialing a call regardless of the presence or absence of the dial tone in the off-hook status. This is because there is a type of a local network 120 in which a dial tone is not generated, and thereby it may be impossible to start dialing a call if the detection of the dial tone is waited.
The modem 21 is connected to the bus line 16 of the image forming apparatus 10, the semiconductor DAA 22 and the LED 28. The modem 21 is controlled by the CPU 11a of the controller 11 shown in
The semiconductor DAA 22 is connected to the modem 21, the line terminals L1 and L2, and the transistor circuit 23. The semiconductor DAA 22 is controlled by the CPU 11a of the controller 11 shown in
The transistor circuit 23 is connected to the semiconductor DAA 22 and the rectifier 24. In the transistor circuit 23, a collector terminal is connected to the rectifier 24, a base terminal is connected to the semiconductor DAA 22, and the emitter terminal is grounded.
The rectifier 24 is connected to the line terminals L1 and L2, the transistor circuit 23, and a grounding conductor. The rectifier 24 rectifies the DC loop current flowing between the line terminals L1 and L2 so that the DC loop current has a polarity in one direction, in the case where the line voltage is applied between the line terminals L1 and L2 by being connected to the telephone network 100, and a closed loop is formed by conduction established between the collector and the emitter in the transistor circuit 23.
The relays 25 are respectively provided to a connecting line connecting the line terminal L1 and the telephone terminal T1, and a connecting line connecting the line terminal L2 and the telephone terminal T2. The relays 25 are used to switch the terminal that is connected to the telephone network 100 through the line terminals L1 and L2, between the image forming apparatus 10 shown in
The feeder circuit 26 functions as a power source for feeding the external telephone through the telephone terminal T1, when the line terminals L1 and L2 and the telephone terminals T1 and T2 are disconnected by the relays 25. It should be noted that, when the line terminals L1 and L2 and the telephone terminals T1 and T2 are disconnected by the relays 25, the telephone terminal T2 is connected to a grounding conductor that is connected to ground.
Moreover, the isolation transformer 27 is installed between the modem 21 and the semiconductor DAA 22, and prevents the direct current from flowing to the secondary side.
The LED 28 that functions as a display is connected to the modem 21. A light-emission operation of the LED 28 is controlled by the CPU 11a of the controller 11 shown in
Next, a configuration of the semiconductor DAA 22 will be described in detail.
The semiconductor DAA 22 is provided with an isolation interface (I/F) 31, a line voltage detecting part 32, a ring signal detecting part 33, an off-hook and dial-pulse controlling part 34, an impedance adjusting part 35 and a FAX transmission and reception controlling part 36. It should be noted that, the isolation interface (I/F) 31, the line voltage detecting part 32, the ring signal detecting part 33, the off-hook and dial-pulse controlling part 34, the impedance adjusting part 35 and the FAX transmission and reception controlling part 36 are mutually connected through an internal bus.
The isolation I/F 31 is connected to the modem 21 through the isolation transformer 27. The isolation I/F 31 functions as an interface for communication with the modem 21.
The line voltage detecting part 32 functioning as a detection unit is connected to the line terminals L1 and L2 through the resistors. The line voltage detecting part 32 has a function of detecting presence or absence of the voltage generated between the line terminals L1 and L2, that is, the line voltage supplied from the telephone network 100 to which the line terminals L1 and L2 are connected, and the value of the line voltage. It should be noted that the line voltage detecting part 32 may detect the presence or absence of the line voltage and the value of the line voltage, in each of the off-hook status and the on-hook status. Detection results of the line voltage detecting part 32 on the presence or absence of the line voltage and the value of the line voltage are stored in a register (not shown in the figure) provided in the modem 21. Then, in the present exemplary embodiment, the CPU 11a of the controller 11 detects the presence or absence of the line voltage and the value of the line voltage by referring to the register provided in the modem 21.
The ring signal detecting part 33 is also connected to the line terminals L1 and L2 through the resistors. At the time of call reception, upon input of ring signals from the telephone network 100 through the line terminals L1 and L2, the ring signal detecting part 33 outputs ring detection signals in the same cycle as the ring signals.
The off-hook and dial-pulse controlling part 34 is connected to the transistor circuit 23. The off-hook and dial-pulse controlling part 34 switches the statuses of the line between off-hook and on-hook through the transistor circuit 23. Additionally, at the time of call transmission, the off-hook and dial-pulse controlling part 34 outputs, to the telephone network 100, dial pulses corresponding to the destination telephone number.
The impedance adjusting part 35 is connected to the transistor circuit 23. The impedance adjusting part 35 adjusts the impedance between the line terminals L1 and L2, that is, the terminal impedance of the line, by appropriately setting the amount of base current supplied to the transistor circuit 23.
The FAX transmission and reception controlling part 36 is connected to the transistor circuit 23. At the time of facsimile transmission, the FAX transmission and reception controlling part 36 outputs, to the telephone network 100, a transmission signal received from the modem 21 through the isolation I/F 31. Moreover, at the time of facsimile reception, the FAX transmission and reception controlling part 36 outputs, to the modem 21 through the isolation I/F 31, a transmission signal received through the telephone network 100.
In the present exemplary embodiment, the telephone connector TEL and the line connector LINE are provided in a side of the FAX communication unit 15 which is exposed outside when the FAX communication unit 15 is mounted to the image forming apparatus 10 shown in
Hereinafter, a facsimile transmission operation and a facsimile reception operation of the above-mentioned image forming apparatus 10 will be described with reference to
For example, when the image forming apparatus 10 receives a facsimile transmission instruction including a destination telephone number through the user interface unit 14, and the image reading unit 12 reads an image that is to be transmitted, the CPU 11a of the controller 11 issues a call transmission instruction to the semiconductor DAA 22 through the modem 21 of the FAX communication unit 15. Then, in the semiconductor DAA 22, the off-hook and dial-pulse controlling part 34 supplies a predetermined current to the base terminal of the transistor circuit 23 so as to turn on the transistor circuit 23. When the transistor circuit 23 is turned on, conduction is established between the collector terminal and the emitter terminal of the transistor circuit 23, so that the current flows between the line terminals L1 and L2. The current flow in the transistor circuit 23 as described above causes the line to be in the off-hook status. Thus, the telephone network 100 side comes to be in the dial-stand-by status.
Additionally, the CPU 11a of the controller 11 carries out the following operation simultaneously with the above operation: adding a predetermined communication signal to, for example, an image signal acquired through the read-out operation performed by the image reading unit 12; and outputting the signals to the modem 21. Thereafter, the modem 21 generates a transmission signal by modulating the received image signal and communication signal, and outputs the transmission signal to the FAX transmission and reception controlling part 36 in the semiconductor DAA 22.
Subsequently, the CPU 11a of the controller 11 issues a dial instruction to the semiconductor DAA 22 through the modem 21. In response, the off-hook and dial-pulse controlling part 34 in the semiconductor DAA 22 outputs pulse signals corresponding to the destination telephone number. The pulse signals outputted from the off-hook and dial-pulse controlling part 34 are transmitted from the line terminals L1 and L2 to an exchanger (not shown in the figure) through the telephone network 100.
Then, when a destination facsimile (not shown in the figure) is connected through the telephone network 100, the FAX transmission and reception controlling part 36 transmits the transmission signal received from the modem 21 to the destination facsimile through the telephone network 100. Thereafter, upon completion of transmission of the transmission signal, the FAX transmission and reception controlling part 36 transmits a signal indicating the completion of the transmission to the off-hook and dial-pulse controlling part 34. In response, the off-hook and dial-pulse controlling part 34 stops the current supply to the base terminal of the transistor circuit 23, thereby turning off the transistor circuit 23. When the transistor circuit 23 is turned off, the conduction is no longer established between the collector terminal and the emitter terminal thereof, so that the current does not flow between the line terminals L1 and L2. No current flow in the transistor circuit 23 as described above causes the line to be in the on-hook status. Thus, the transmission operation is completed.
Next, a facsimile reception operation of the image forming apparatus 10 will be described.
For example, when a ring signal is transmitted from a destination facsimile (not shown in the figure) through the telephone network 100, the ring signal detecting part 33 of the semiconductor DAA 22 in the FAX communication unit 15 detects the ring signal, and transmits, to the off-hook and dial-pulse controlling part 34, a ring detection signal indicating the detection of the ring signal. Then, the off-hook and dial-pulse controlling part 34 supplies predetermined current to the base terminal of the transistor circuit 23 so that the transistor circuit 23 is turned on. When the transistor circuit 23 is turned on, the conduction is established between the collector terminal and the emitter terminal of the transistor circuit 23, so that the current flows between the line terminals L1 and L2. The current flow in the transistor circuit 23 as described above causes the line to be in the off-hook status. Thus, the telephone network 100 side comes to be in the reception waiting status.
Then, when a destination facsimile is connected through the telephone network 100, the FAX transmission and reception controlling part 36 starts receiving a transmission signal transmitted from the destination facsimile through the telephone network 100. Thereafter, upon completion of the reception of the transmission signal, the FAX transmission and reception controlling part 36 transmits a signal indicating the completion of the reception to the off-hook and dial-pulse controlling part 34. In response, the off-hook and dial-pulse controlling part 34 stops the current supply to the base terminal of the transistor circuit 23, thereby turning off the transistor circuit 23. When the transistor circuit 23 is turned off, the conduction is no longer established between the collector terminal and the emitter terminal thereof, so that the current does not flow between the line terminals L1 and L2. No current flow in the transistor circuit 23 as described above causes the line to be in the on-hook status. Thus, the reception operation is completed.
It should be noted that the transmission signal received by the FAX transmission and reception controlling part 36 at the reception operation is then transmitted to the modem 21 and is demodulated. Then, the CPU 11a of the controller 11 causes the demodulated image signal to be transmitted to the print processing unit 13 through the bus line 16. Thereafter, the print processing unit 13 forms an image according to the received image signal on a paper sheet, and outputs it.
Next, a detailed description will be given for a setting of the FAX communication function in the FAX communication unit 15. In the present exemplary embodiment, the FAX communication function is set according to the detection result of the line voltage detected by the line voltage detecting part 32 of the semiconductor DAA 22 in the FAX communication unit 15.
The processing starts when the image forming apparatus 10 is powered on by turning on a power switch thereof not illustrated in the figure (step 101). When the apparatus is powered on, the CPU 11a refers to the detection result on the presence or absence of the line voltage stored in the register provided in the modem 21 (step 102). Then, the CPU 11a determines whether or not the line voltage is detected (step 103). The telephone network 100 supplies, as long as there is no error therein, a predetermined line voltage to the line terminals L1 and L2 of the FAX communication unit 15.
If the line voltage is detected in step 103, the CPU 11a refers to the detection result on a value of the line voltage stored in the register provided in the modem 21 (step 104), and acquires a line voltage value VL. Subsequently, the CPU 11a determines whether or not the acquired line voltage value VL is equal to or larger than a first voltage value V1 (step 105). Here, the first voltage value V1 is set to a value (such as 40 V) slightly smaller than a line voltage value (48 V) in the public network 110.
If the line voltage value VL is equal to or larger than the first voltage value V1 in step 105, the CPU 11a determines that the FAX communication unit 15 is connected to the public network 110. Thus, the CPU 11a transmits a control signal to the FAX communication unit 15 to set the FAX communication function to a mode for the public communication line (step 106). The CPU 11a also transmits a control signal to the LED 28 of the FAX communication unit 15 so that the LED 28 emits light (step 107). Thereafter, the CPU 11a causes the user interface unit 14 to display a message such as “connection with the public communication line is established,” for example (step 108), and terminates the processing.
Meanwhile, if the line voltage value VL is smaller than the first voltage value V1 in step 105, the CPU 11a determines whether or not the line voltage value VL is equal to or larger than a second voltage value V2 (step 109). Here, the second voltage value V2 is set to a value smaller than the first voltage value V1, such as around 25 V.
If the line voltage value VL is equal to or larger than the second voltage value V2 in step 109, the CPU 11a determines that the FAX communication unit 15 is connected to the local network 120. Thus, the CPU 11a transmits a control signal to the FAX communication unit 15 to set the FAX communication function to a mode for the local communication line (step 110). Then, the CPU 11a also transmits a control signal to the LED 28 of the FAX communication unit 15 so that the LED 28 emits light (step 107). Thereafter, the CPU 11a causes the user interface unit 14 to display a message such as “connection with the local communication line is established,” for example (step 108), and terminates the processing.
On the other hand, if the line voltage value VL is smaller than the second voltage value V2 in step 109, the CPU 11a determines that although the FAX communication unit 15 is connected to the telephone network 100 (either to the public network 110 or to the local network 120), an error has occurred in the line. Accordingly, the CPU 11a transmits a control signal to the LED 28 of the FAX communication unit 15 so that the LED 28 blinks (step 111). Subsequently, the CPU 11a transmits a control signal to the FAX communication unit 15 to disable the FAX communication function (step 112). Then, the CPU 11a causes the user interface unit 14 to display a message such as “an error occurred in the line,” for example (step 108), and terminates the processing.
If a line voltage is not detected in step 103, the CPU 11a determines that the FAX communication unit 15 is not connected to the telephone network 100 (neither to the public network 110 nor to the local network 120). Accordingly, the CPU 11a transmits a control signal to the LED 28 of the FAX communication unit 15 to turn off the LED 28 (step 113). Subsequently, the CPU 11a transmits a control signal to the FAX communication unit 15 to disable the FAX communication function (step 112). Then, the CPU 11a causes the user interface unit 14 to display a message such as “a line is disconnected,” for example (step 108), and terminates the processing.
However, if a line connection is not detected in the above processing, the CPU 11a continues the processing from step 102 after the elapse of a predetermined time period. Hence, the processing is repeated until the detection in which the FAX communication unit 15 is connected to the public network 110 or the local network 120 is performed. Specifically, the processing is repeated until a line voltage value VL equal to or larger than the second voltage value V2 is detected.
In this image forming apparatus 10, not only the FAX function is set at the time of turning on the power switch, but also the telephone network 100 to which the FAX communication unit 15 is connected is monitored after the FAX function is set, by detecting the line voltage.
In this processing, the CPU 11a firstly determines whether or not a predetermined time period has passed (step 201). Here, if the predetermined time period has not passed, the processing returns to step 201.
On the other hand, if the predetermined time period has passed, the CPU 11a refers to the detection result of the presence or absence of the line voltage stored in the register of the modem 21 (step 202). Then, the CPU 11a determines whether or not the line voltage is detected (step 203).
If the line voltage is detected in step 203, the CPU 11a determines whether or not the image forming apparatus 10 is set to be powered off (step 204). Here, if the image forming apparatus 10 is set to be powered off, the CPU 11a terminates the processing. On the other hand, if the apparatus is still set to be powered on, the processing returns to step 201 and is continued.
In contrast, if the line voltage is not detected in step 203, the CPU 11a transmits a control signal to the LED 28 of the FAX communication unit 15 to turn off the LED 28 (step 205). Subsequently, the CPU 11a causes the user interface unit 14 to display a message such as “a line is disconnected,” for example (step 206), and proceeds to step 204.
In the present exemplary embodiment, the communication function of the FAX communication unit 15 is automatically set according to the type of the telephone network 100 (either the public network 110 or the local network 120) to which the FAX communication unit 15 is connected on the basis of the detection result of the line voltage value detected by the line voltage detecting part 32 of the semiconductor DAA 22. However, the invention is not limited to this. For example, the type of the telephone network 100 to which the FAX communication unit 15 is connected is determined on the basis of the detection result of the line voltage, and the determination result (in which connection with the public network 110 is established, connection with the local network 120 is established, a line is disconnected, or the like) may be displayed on the user interface unit 14.
The above-mentioned exemplary embodiment may be performed by a program for realizing a function by a computer configured by the CPU 11a, the ROM 11b and the RAM 11c of the image forming apparatus 10 shown in
Although the above-mentioned exemplary embodiment of the present invention has been mainly applied to a facsimile, it may be also applied to a communication apparatus such as a telephone by replacing image signals with communication signals.
The foregoing description of the exemplary embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The exemplary embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, thereby enabling others skilled in the art to understand the invention for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2007-302013 | Nov 2007 | JP | national |