CN106131359B - Device and method for detecting telephone line and automatically controlling fax receiving and sending - Google Patents
Device and method for detecting telephone line and automatically controlling fax receiving and sending Download PDFInfo
- Publication number
- CN106131359B CN106131359B CN201610798315.4A CN201610798315A CN106131359B CN 106131359 B CN106131359 B CN 106131359B CN 201610798315 A CN201610798315 A CN 201610798315A CN 106131359 B CN106131359 B CN 106131359B
- Authority
- CN
- China
- Prior art keywords
- control module
- telephone line
- voltage
- module
- voltage signal
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M11/00—Telephonic communication systems specially adapted for combination with other electrical systems
- H04M11/06—Simultaneous speech and data transmission, e.g. telegraphic transmission over the same conductors
- H04M11/066—Telephone sets adapted for data transmision
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/82—Line monitoring circuits for call progress or status discrimination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N1/32609—Fault detection or counter-measures, e.g. original mis-positioned, shortage of paper
- H04N1/32625—Fault detection
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Facsimiles In General (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a device and a method for detecting a telephone line and automatically controlling fax transceiving, wherein the device comprises a telephone line interface, a line detection module, a modulation and demodulation module, a control module and a network module; the circuit detection module detects a voltage signal of the telephone line and sends the voltage signal to the control module; the control module judges whether the telephone line is in fault according to the voltage signal and the working state in the control module, when the telephone line is in fault, the control module sends a fault alarm signal to external computer equipment through the network module, and judges whether to send a fax file to the modulation and demodulation module or receive the fax file from the modulation and demodulation module according to whether the telephone line is in fault, so that the receiving and sending processing can be carried out at proper time. The invention has the advantages that whether the telephone line is in fault is judged by detection, and the continuation or the stop of the fax document receiving and sending is determined according to the fault, so that the repeated attempt of sending the fax is avoided, the situation that the receiving state is continuously kept when the line is in fault is also avoided, and the fax receiving and sending efficiency is improved.
Description
Technical Field
The invention relates to a device and a method for detecting a telephone line and automatically controlling fax receiving and sending.
Background
The automatic telephone fax system on the market at present does not have the function of automatically detecting the state of a telephone line, so that when a telephone line has a fault, a user is not easy to perceive the fault, and a system administrator can intervene to process the fault when complaints are often caused by the failure of outgoing calls and incoming calls; meanwhile, because there is no function of detecting the state of the telephone line before off-hook, the system can only judge whether the line is normal by detecting the dial tone after off-hook when processing the outgoing call task, so that not only the detailed line state cannot be obtained, but also if a line fault occurs, the system often repeatedly tries to send out the fax file until reaching the preset retry number and abandons the sending of the fax file; when the line fails, the system still continues to make sending attempts and returns failure results, which wastes time for the user to submit tasks to the system again and occupies system resources.
Disclosure of Invention
In order to overcome the disadvantages of the prior art, an object of the present invention is to provide an apparatus for detecting a telephone line and automatically controlling fax transmission and reception, which can solve the problem of system resources occupation caused by repeated attempts of sending a fax by a system on the fax telephone line.
The second objective of the present invention is to provide a method for detecting a telephone line and automatically controlling fax transmission/reception, which can solve the problem of system resource occupation caused by repeated attempts of fax transmission by a system on a fax telephone line.
One of the purposes of the invention is realized by adopting the following technical scheme:
a device for detecting telephone lines and automatically controlling fax transceiving comprises a telephone line interface, a line detection module, a modulation and demodulation module, a control module and a network module;
the circuit detection module is used for detecting a voltage signal between a positive line and a negative line of a telephone line connected to the outside of the telephone line interface and sending the voltage signal to the control module;
the network module is used for connecting an external network and sending the fax file from the external computer equipment to the control module for storage or sending the fax file from the control module to the external computer equipment;
the control module is used for judging whether the telephone line has a fault according to the voltage signal and the working state of the control module, and judging whether to send a fax file to the modulation and demodulation module or receive the fax file from the modulation and demodulation module according to whether the telephone line has the fault; and transmitting a fault alarm signal to an external computer device through the network module when the telephone line has a fault.
Preferably, the line detection module comprises a resistor R1, a resistor R2, a photoelectric coupler OC, an AD converter and a power supply; the first input end of optoelectronic coupler OC passes through resistance R1 and is connected with negative pole line RING, and the second input end of optoelectronic coupler OC is connected with positive pole line TIP, and the input of AD converter and resistance R2's one end all are connected with optoelectronic coupler OC's collecting electrode, and optoelectronic coupler OC's emitter ground, resistance R2's the other end connected power, and the output and the control module of AD converter are connected.
Preferably, the device for detecting the telephone line and automatically controlling the fax transceiving further comprises a buzzer connected with the control module, and the control module is further used for controlling the buzzer to sound and alarm according to the working state signal and the voltage signal.
Preferably, the device for detecting the telephone line and automatically controlling fax transceiving further comprises an LED connected with the control module, and the control module is further configured to control the LED to flash and alarm according to the working state signal and the voltage signal.
Preferably, the control module is an MCU.
The second purpose of the invention is realized by adopting the following technical scheme:
a method for detecting telephone line and automatically controlling fax transmission and reception is applied to a control module in a device for detecting telephone line and automatically controlling fax transmission and reception, and comprises the following steps:
s1, receiving a voltage signal sent by the line detection module;
s2, judging whether the voltage signal is zero voltage, if so, executing S8, otherwise, executing S3;
s3, judging whether the voltage signal is the first voltage, if so, executing S4, otherwise, executing S5;
s4, judging whether the control module is idle, if so, the control module carries out transceiving processing; otherwise, executing S8;
s5, judging whether the voltage signal is the second voltage, if so, executing S6, otherwise, executing S7;
s6, judging whether the control module is idle, if so, the control module carries out transceiving processing; otherwise, executing S8;
s7, when the voltage signal is the third voltage, judging whether the control module is idle, if so, executing S8; otherwise, the control module carries out transceiving processing;
and S8, stopping the transceiving process, and sending a fault alarm signal to the computer equipment through the network module so that the computer equipment displays according to the fault alarm signal.
Preferably, S8 further includes: and controlling the buzzer to give an audible alarm.
Preferably, S8 further includes: or controlling an LED to flash and alarm.
Compared with the prior art, the invention has the beneficial effects that: the line detection module is used for detecting a voltage signal between a positive line and a negative line of a telephone line, so that the control module can judge whether the telephone line is in fault or busy line according to the voltage signal and the working state of the modem, and determines to control the start and stop of a fax file in the control module according to the fault or busy line, thereby avoiding the control module from repeatedly trying to send the fax file.
Drawings
FIG. 1 is a block diagram of an apparatus for detecting a telephone line and automatically controlling facsimile transmission and reception according to the present invention;
FIG. 2 is a circuit diagram of a circuit detection module according to the present invention;
FIG. 3 is a diagram illustrating a memory of a control module according to the present invention;
fig. 4 is a flowchart of a method for detecting a telephone line and automatically controlling fax transmission and reception according to the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and the detailed description below:
a device for detecting telephone line and automatically controlling fax receiving and sending is shown in figure 1, and comprises a telephone line interface, a DAA user circuit module, a line detection module, a modulation and demodulation module, a control module, a network module, a buzzer and an LED; the telephone line interface is connected with an external telecommunication carrier network through an external telephone line, and the network module is used for connecting an external network so as to communicate with external computer equipment.
The DAA user circuit module is connected with the telephone line interface, the DAA user circuit module is connected with the control module through the modulation and demodulation module, the line detection module, the LED and the buzzer are all connected with the control module, and the control module is connected with external computer equipment through the network module. The control module may be, but is not limited to, an MCU, and the computer device may be, but is not limited to, a PC or a smart mobile device.
The line detection module is used for detecting a voltage signal between a positive line TIP and a negative line RING of a telephone line connected to the outside of the telephone line interface and sending the voltage signal to the control module; as shown in fig. 2, the line detection module includes a resistor R1, a resistor R2, a photo coupler OC, an AD converter, and a power supply; the first input end of optoelectronic coupler OC passes through resistance R1 and is connected with negative pole line RING, and the second input end of optoelectronic coupler OC is connected with positive pole line TIP, and the input of AD converter and resistance R2's one end all are connected with optoelectronic coupler OC's collecting electrode, and optoelectronic coupler OC's emitter ground, resistance R2's the other end connected power, and the output and the control module of AD converter are connected.
The external computer equipment sends the fax file to the control module for storage through the network module; as shown in fig. 3, the memory of the control module stores a plurality of fax documents sent from the external computer device; the control module carries out digital processing on one fax file according to the voltage signal and the working state of the control module, and sends the digitally processed fax file to the modulation and demodulation module, so that the modulation and demodulation module carries out analog processing on the fax file, and sends the analog processed fax file to the telephone line interface through the DAA user circuit module. When an incoming call exists on an external telephone line, the telephone line interface sends an external incoming fax file to the modulation and demodulation module through the DAA user circuit module, the control module receives the fax file from the modulation and demodulation module, and meanwhile, the control module can judge whether to stop receiving according to the voltage signal and the working state of the control module.
When the control module sends the fax file to the modulation and demodulation module and receives the fax file from the modulation and demodulation module, namely the control module receives and sends the fax file, the control module is in a working state, otherwise, the control module is in an idle state.
When the voltage signal is zero voltage, the telephone line is disconnected, and the control module carries out alarm processing; the alarm processing of the control module includes: the method comprises the steps of controlling a buzzer to give out sound alarm, or controlling an LED to give out flashing alarm, or sending a fault alarm signal to the computer equipment through a network module, so that the computer equipment displays according to the fault alarm signal or sends an alarm notification signal to an external management terminal, and a manager can know that an external telephone line has a fault through the management terminal and maintain in time; the alert notification signal may be, but is not limited to, an E-mail.
When the voltage signal is a first voltage, the first voltage refers to a standby voltage when the telephone line is in a non-off-hook state, and the telephone line interface is in an idle state; if the control module is in an idle state, the control module performs transceiving processing; if the control module is in the working state, the external telephone line can be in failure, and the control module carries out alarm processing.
When the voltage signal is a second voltage, the second voltage refers to the voltage of a telephone line in a state of incoming call, and an incoming call exists on a telephone line interface; and if the control module is in an idle state, the control module performs transceiving processing. If the control module is in the working state, the external telephone line can be in failure, and the control module carries out alarm processing.
When the voltage signal is a third voltage, the third voltage refers to an operating voltage at which the telephone line is in an off-hook state, and if the control module is in an operating state, the control module can continue the transceiving process. If the control module is in an idle state, it is possible that an external telephone line is failed or an off-hook answering operation has been performed by an external facsimile machine or telephone, and the control module performs an alarm process.
When the voltage signal is a fourth voltage, an abnormal condition may occur on an external telephone line, and the control module performs alarm processing; the fourth voltage refers to a voltage other than the zero voltage, the first voltage, the second voltage, and the third voltage.
The zero voltage refers to a voltage when a telephone line is disconnected (disconnected), and is characterized by a voltage of approximately 0V. The first voltage, which is the standby voltage when the telephone line is not off-hook (idle), is characterized in this embodiment by a dc voltage of about 48V. The second voltage is an operating voltage when the telephone line is off-hook (occupied), and is characterized by an ac voltage of about 10 to 18V in the present embodiment. The third voltage is a voltage when the telephone line has an incoming call (ringing), and is characterized by an ac voltage of about 24 to 72V in this embodiment. The voltage values described above are typical voltage values, but the voltage values may vary according to variations in the circuit in practical use.
A method for detecting a telephone line and automatically controlling fax transmission and reception, which is applied to a control module in a device for detecting a telephone line and automatically controlling fax transmission and reception, as shown in fig. 4, and comprises the following steps:
The receiving and sending processing of the control module is specifically as follows: the control module sends the fax document to the modulation and demodulation module, or the control module receives the fax document from the modulation and demodulation module.
The invention provides a device and a method for detecting the state (ringing, idle, occupation and disconnection) of a telephone line interface in real time, and fault judgment is carried out according to the line state through system software, and when a fault occurs, the fault can be timely notified through a buzzer and prompted through an LED flash-off, or the fault can be timely notified and checked through a software client interface installed on computer equipment, or the fault can be timely known and processed by a system administrator through Email prompting.
Meanwhile, the real-time detection of the state of the telephone line can automatically and reasonably schedule the fax file, so that repeated retry caused by telephone line faults is avoided, system resources are occupied, time is wasted, and efficiency is reduced; in the event of a telephone line fault, the system can stop the ongoing telephone fax document and pause all of the tasks in the queue of tasks until the line fault disappears (detected in real time) and all tasks can resume scheduled execution.
The invention can control the sending and receiving of fax, and is also suitable for controlling the incoming and outgoing calls of the automatic voice system, and simultaneously, the protection is provided.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.
Claims (8)
1. A device for detecting telephone lines and automatically controlling fax transceiving is characterized by comprising a telephone line interface, a line detection module, a modulation and demodulation module, a control module and a network module;
the circuit detection module is used for detecting a voltage signal between a positive line and a negative line of a telephone line connected to the outside of the telephone line interface and sending the voltage signal to the control module;
the network module is used for connecting an external network and sending the fax file from the external computer equipment to the control module for storage or sending the fax file from the control module to the external computer equipment;
the control module is used for judging whether the telephone line has a fault according to the voltage signal and the working state of the control module, when the voltage signal is a first voltage, the first voltage refers to a standby voltage when the telephone line is not in an off-hook state, and a telephone line interface is in an idle state; if the control module is in an idle state, the control module performs transceiving processing; when the voltage signal is a second voltage, the second voltage refers to the voltage of a telephone line in a state of incoming call, and an incoming call exists on a telephone line interface; if the control module is in an idle state, the control module performs transceiving processing; when the voltage signal is a third voltage, the third voltage refers to a working voltage of the telephone line in an off-hook state, and if the control module is in the working state, the control module continues to perform transceiving processing; judging whether to send the fax file to the modulation and demodulation module or receive the fax file from the modulation and demodulation module according to whether the telephone line has a fault; and transmitting a fault alarm signal to an external computer device through the network module when the telephone line has a fault; and judging whether the voltage signal is zero voltage or not, and if so, pausing the transceiving processing.
2. The apparatus for detecting a telephone line and automatically controlling facsimile transmission and reception according to claim 1, wherein the line detection module comprises a resistor R1, a resistor R2, a photo coupler OC, an AD converter, and a power supply; the first input end of optoelectronic coupler OC passes through resistance R1 and is connected with the negative pole line, and the second input end and the positive pole line of optoelectronic coupler OC are connected, and the input of AD converter and resistance R2's one end all are connected with optoelectronic coupler OC's collecting electrode, and optoelectronic coupler OC's emitter ground, resistance R2's the other end connected power, and AD converter's output and control module are connected.
3. The apparatus for detecting a telephone line and automatically controlling facsimile transmission and reception according to claim 1, further comprising a buzzer connected to the control module, wherein the control module is further adapted to control the buzzer to sound an alarm according to the operation status signal and the voltage signal.
4. The apparatus for detecting a telephone line and automatically controlling fax transmission and reception according to claim 1, further comprising an LED connected to the control module, wherein the control module is further configured to control the LED to flash for alerting based on the operating status signal and the voltage signal.
5. The apparatus for detecting a telephone line and automatically controlling facsimile transmission and reception according to claim 1, wherein the control module is an MCU.
6. A method for detecting a telephone line and automatically controlling facsimile transmission and reception, applied to a control module in the apparatus for detecting a telephone line and automatically controlling facsimile transmission and reception according to any one of claims 1 to 5, comprising the steps of:
s1, receiving a voltage signal sent by the line detection module;
s2, judging whether the voltage signal is zero voltage, if so, executing S8, otherwise, executing S3;
s3, judging whether the voltage signal is the first voltage, if so, executing S4, otherwise, executing S5; when the voltage signal is a first voltage, the first voltage refers to a standby voltage when the telephone line is in a non-off-hook state, and the telephone line interface is in an idle state; if the control module is in an idle state, the control module performs transceiving processing; s4, judging whether the control module is idle, if so, the control module carries out transceiving processing; otherwise, executing S8;
s5, judging whether the voltage signal is the second voltage, if so, executing S6, otherwise, executing S7; when the voltage signal is a second voltage, the second voltage refers to the voltage of a telephone line in a state of incoming call, and an incoming call exists on a telephone line interface; if the control module is in an idle state, the control module performs transceiving processing;
s6, judging whether the control module is idle, if so, the control module carries out transceiving processing; otherwise, executing S8;
s7, when the voltage signal is the third voltage, judging whether the control module is idle, if so, executing S8; otherwise, the control module carries out transceiving processing; when the voltage signal is a third voltage, the third voltage refers to a working voltage of the telephone line in an off-hook state, and if the control module is in the working state, the control module can continue to perform transceiving processing;
s8, suspending the transceiving process, and sending the failure alarm signal to the external computer device through the network module, so that the external computer device displays the failure alarm signal.
7. The method for detecting a telephone line and automatically controlling facsimile transmission and reception according to claim 6, wherein S8 further comprises: and controlling the buzzer to give an audible alarm.
8. The method for detecting a telephone line and automatically controlling facsimile transmission and reception according to claim 6, wherein S8 further comprises: and controlling the LED to flash and alarm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610798315.4A CN106131359B (en) | 2016-08-31 | 2016-08-31 | Device and method for detecting telephone line and automatically controlling fax receiving and sending |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610798315.4A CN106131359B (en) | 2016-08-31 | 2016-08-31 | Device and method for detecting telephone line and automatically controlling fax receiving and sending |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106131359A CN106131359A (en) | 2016-11-16 |
CN106131359B true CN106131359B (en) | 2022-01-14 |
Family
ID=57271469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610798315.4A Active CN106131359B (en) | 2016-08-31 | 2016-08-31 | Device and method for detecting telephone line and automatically controlling fax receiving and sending |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106131359B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190007955A (en) | 2017-07-14 | 2019-01-23 | 에이치피프린팅코리아 유한회사 | Facsimile and self diagnosis method thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1838721A (en) * | 2005-03-25 | 2006-09-27 | 兄弟工业株式会社 | Facsimile device |
CN101442590A (en) * | 2007-11-21 | 2009-05-27 | 富士施乐株式会社 | Communication circuit, communication apparatus and communication method |
CN203722691U (en) * | 2014-02-07 | 2014-07-16 | 常州信息职业技术学院 | Telephone busy tone detection device |
JP2016034093A (en) * | 2014-07-31 | 2016-03-10 | 株式会社沖データ | Facsimile machine and multi-functional device |
CN206077524U (en) * | 2016-08-31 | 2017-04-05 | 广州先尚计算机科技有限公司 | A kind of detection telephone line simultaneously automatically controls the device that fax is received and dispatched |
-
2016
- 2016-08-31 CN CN201610798315.4A patent/CN106131359B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1838721A (en) * | 2005-03-25 | 2006-09-27 | 兄弟工业株式会社 | Facsimile device |
CN101442590A (en) * | 2007-11-21 | 2009-05-27 | 富士施乐株式会社 | Communication circuit, communication apparatus and communication method |
CN203722691U (en) * | 2014-02-07 | 2014-07-16 | 常州信息职业技术学院 | Telephone busy tone detection device |
JP2016034093A (en) * | 2014-07-31 | 2016-03-10 | 株式会社沖データ | Facsimile machine and multi-functional device |
CN206077524U (en) * | 2016-08-31 | 2017-04-05 | 广州先尚计算机科技有限公司 | A kind of detection telephone line simultaneously automatically controls the device that fax is received and dispatched |
Also Published As
Publication number | Publication date |
---|---|
CN106131359A (en) | 2016-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103338308B (en) | The method of calling of mobile terminal, the method controlling mobile terminal and relevant device | |
CN101945167B (en) | Incoming call processing method and mobile terminal | |
CN103369455B (en) | Method for transmitting position information and mobile terminal | |
CN103516903A (en) | Method and device for state information notification | |
CN106131359B (en) | Device and method for detecting telephone line and automatically controlling fax receiving and sending | |
CN105100373A (en) | Mobile terminal calling control method, device and mobile terminal | |
CN206077524U (en) | A kind of detection telephone line simultaneously automatically controls the device that fax is received and dispatched | |
US7769152B2 (en) | Communications apparatus and communications system including the communications apparatus | |
JP5597215B2 (en) | Facsimile apparatus, control method thereof, and program | |
JP5856390B2 (en) | COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM | |
US20080292083A1 (en) | Call Interceptor | |
CN110896421B (en) | Automatic redialing method and device for telephone | |
CN113347309B (en) | POTS line A line ground fault detection processing method, device and equipment and storage medium | |
CN101692678B (en) | Automatic answer method and system for mobile terminal, and terminal | |
JP3889159B2 (en) | Communication terminal with caller ID service monitor function | |
JP5093258B2 (en) | Communication device | |
CN106034293B (en) | Call waiting processing method and call waiting processing device | |
WO2015131621A1 (en) | Mobile communication terminal calling control method and device, and mobile communication terminal | |
CN106713646B (en) | Emergency voice communication device and method based on embedded equipment | |
EP1738575B1 (en) | A device and a method for feeding electric devices from a telephone line | |
JP5619792B2 (en) | Data communication apparatus and data communication method | |
JP2015149605A (en) | Communication apparatus, control method of the same, and program | |
CN111131624A (en) | Method and device for realizing answering and reminding of incoming call based on toothbrush | |
JPH07288592A (en) | Remote supervisory equipment | |
CN105100519A (en) | Method and device for notifying voice messages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |