The incoming call distinguishing method of common phone line equipment and device
Technical field
The invention belongs to communication field, specifically, the present invention relates to a kind of incoming call distinguishing method and device of common phone line equipment.
Background technology
Telephone network is with its grand scale, cover and powerful permeability widely, more and more have a deep effect on the every aspect of society, economy, politics, military affairs, science and technology, culture and people's lives, become guiding, the basic information platform of national economy.
Universal day by day along with phone, a large amount of communication apparatus come communication by means of telephone line.In order to save number resource and to reduce cost, usually on same telephone line, connect two distinct devices, as ordinary telephone set and facsimile machine, ordinary telephone set and data communications equipment etc., data communications equipment is anti-theft alarming equipment, distant kilowatt meter recorder etc. normally.
When two equipment actives of common phone line and extraneous communication, can carry out as follows:
(1) first off-hook is judged again no dial tone;
(2) dialing tone just dialing and extraneous communication are arranged;
(3) wait for certain hour without dialing tone, repeat (1) step.
During the communication of one of extraneous active and two equipment of common phone line, these two equipment will be distinguished incoming call and be and whose communication actually, and following two kinds of methods are arranged at present:
(1) utilizes caller identification
Two equipment of common phone line are distinguished incoming call according to the caller ID of caller identification, and off-hook is finished communication.
Equipment will be stored the caller caller ID with its communication in advance when making in this way, if the other side's telephone number changing or other number just can't communications.For example in the telephone remote kilowatt meter reading-out system, during the phone of checking meter change, with regard to the check meter caller caller ID of extension set storage of required change huge numbers of families, workload is huge.
(2) utilize long-time ring
When utilizing this method of long-time ring to be used in telephone set and other communication apparatus common phone line, if long-time no one answers the call, just long-time ring, at this moment the communication apparatus off-hook carries out communication.
Make in this way, by personnel's misconnection, can only carry out when nobody is on the scene by communication through regular meeting for incoming call.
Summary of the invention
Technical problem:
The incoming call distinguishing method and the device that the purpose of this invention is to provide two common phone line equipment, its principle are to control ring time at interval at interval by controlling twice dialing time, to distinguish incoming call.
Technical scheme:
The normal ringer signal of China's telephone network is 1 seconds of 4 rings in second at interval now.just put through phone the time, the stored-program control exchange of telephone network can send a ring to the called subscriber immediately, be immediate ringing, immediate ringing and for the first time time interval of normal ringer between 0~4 second, therefore in dialing calling procedure, called subscriber's ring at interval can be greater than 4 seconds.
The method according to this invention adopts one-stage dialing during the communication of one of calling subscriber and the called equipment of common phone line; During with another called device talk, adopt double dialing, accurately control is dialled blanking time, produces the bell signal of interval greater than 4 seconds (being the ring time of phone) at called end; The equipment of common phone line be according at interval distinguishing incoming call ring time like this, the differentiation caller will with whose communication.
One aspect of the present invention provides a kind of incoming call distinguishing method of common phone line equipment, it is characterized in that, described common phone line equipment comprises phone and the communication apparatus that is connected shared same online telephone line of public telephone, the caller equipment on the telephone network of being connected is by public telephone network and described phone and communication apparatus communication, and described method comprises:
Behind described caller device call communication apparatus or the phone, comprise the steps operation at communication apparatus and telephony side:
Step 1: cut off miscellaneous equipment after detecting ring for the first time;
Step 2: detect and judge that this twice ring is at interval whether between 5.5 seconds and 6.5 seconds, if then switch telephone wire and give communication apparatus, otherwise switch telephone wire to phone after the ring for the second time; If not detecting ring for the second time and time surpasses 7 seconds then gets back to initial condition;
Step 3: if finish switch for behind the phone no off-hook and ring then get back to initial condition; If off-hook is arranged, then execution in step 5,
Step 4: if finish switch for behind the communication apparatus no off-hook and ring then get back to initial condition; If off-hook is arranged, then execution in step 5,
Step 5: get back to initial condition after communication apparatus or the communication of phone off-hook, the on-hook.
In a preferred embodiment of the invention, during caller device call communication apparatus, the equipment that produces blanking time is dialer, and this dialer adds modulator-demodulator by computer to be realized or realized by special dial-up circuit.
In a preferred embodiment of the invention, at phone and communication apparatus end, be responsible for judging that the equipment that dials blanking time is the incoming call discriminator, this incoming call discriminator is deployed in the phone or is deployed in the communication apparatus or by independent circuit and realizes.
The present invention provides a kind of incoming call distinguishing device of common phone line equipment on the other hand, described common phone line equipment comprises phone and the communication apparatus that is connected shared same online telephone line of public telephone, the caller equipment on the telephone network of being connected is by telephone network and described phone and communication apparatus communication, described incoming call distinguishing equipment comprises the dialer that is deployed in the caller equipment end and is deployed in the incoming call discriminator of phone and communication apparatus end, described dialer comprises: microprocessor, circuit for answering, dialing and testing circuit, keyboard and display circuit, serial port circuit, described dialing and testing circuit, the circuit for answering output is connected with telephone wire, controlled terminal is connected with microprocessor, keyboard and display circuit, serial port circuit is connected with microprocessor; Described incoming call discriminator comprises: microprocessor, ring detecting circuit and telephone wire commutation circuit, and the controlled terminal of described telephone wire commutation circuit links to each other with the output of microprocessor, and the output of described ring detecting circuit links to each other with the input of microprocessor.
In a preferred embodiment of the invention, described incoming call discriminator is deployed in the phone or is deployed in the communication apparatus or by independent circuit and realizes.
Beneficial effect:
The method according to this invention and device adopt one-stage dialing when the calling subscriber communicates by letter with one of called equipment of common phone line; During with another called devices communicating, adopt double dialing, accurately control is dialled blanking time, the bell signal at called end generation interval greater than 4 seconds; The equipment of common phone line is distinguished caller and will be communicated by letter with whom according to just distinguishing incoming call at interval ring time like this.
Description of drawings
Fig. 1 for embodiment of the invention common phone line equipment directly and receive on the telephone wire;
Fig. 2 receives on the telephone wire by incoming call discriminator different port for embodiment of the invention common phone line equipment;
Fig. 3 is connected to telephone set through communication apparatus earlier for embodiment of the invention telephone wire;
Fig. 4 is connected to communication apparatus through telephone set earlier for embodiment of the invention telephone wire;
Fig. 5 is that embodiment of the invention dialer is made up of computer and modulator-demodulator;
Fig. 6 is realized by specialized circuitry for embodiment of the invention dialer;
Fig. 7 is embodiment of the invention incoming call ring discriminator circuit;
Fig. 8 is twice dial-up program block diagram of the embodiment of the invention;
Fig. 9 differentiates the incoming call flow chart for the embodiment of the invention;
Figure 10 is embodiment of the invention incoming call ring discriminator circuit schematic diagram.
Wherein, 1: communication apparatus (with phone 2 shared telephone wires); 2: phone; 3,4,5,6: communication apparatus and phone (in the present invention, any one can be as caller equipment, call out news agency be equipped with 1 and phone 2); 7: public telephone network; 8: the incoming call discriminator; 9: computer; 10: modulator-demodulator; 11: the microprocessor of dialer; 12: circuit for answering; 13: dialing and testing circuit; 14: telephone wire; 15: the microprocessor of incoming call discriminator; 16: the telephone wire commutation circuit; 17: ring detecting circuit; 18: telephone wire; 19: keyboard and display circuit; 20: serial port circuit.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
Fig. 1 is the embodiment of the invention, communication apparatus 1 and phone 2 common phone lines, two equipment directly and receive on the telephone wire, communication apparatus 1 and telephone set 2 need initiatively and during the communication of outside, direct off-hook detection has dialing tone with regard to dialing communication among Fig. 1; Want and the telephone set 2 of common phone line equipment during by public telephone network 7 communications when outside telephone set 5,6 etc., directly call the telephone number of machine 2 to converse, communication apparatus 1 is judged ring at interval according to the program of Fig. 9, and can off-hook influence conversation; Want and the communication apparatus 1 of common phone line equipment during by telephone network 7 communications when outside communication apparatus 3,4 etc., according to the program dialing of Fig. 8, communication apparatus 1 is judged ring at interval according to the program of Fig. 9, thereby off-hook carries out communication.
Fig. 2 is the embodiment of the invention, communication apparatus 1 and telephone set 2 common phone lines, and two equipment are received on the telephone wire by incoming call discriminator 8, and incoming call discriminator 8 theory of constitutions are as shown in Figure 7.When communication apparatus 1 and telephone set 2 needed active and outside communication among Fig. 2, directly off-hook detection had dialing tone with regard to dialing communication; When the external world will be with the device talk of common phone line, after incoming call discriminator 8 detects ring for the first time according to the program of Fig. 9, cut off and be connected with the telephone wire of communication apparatus 1 and telephone set 2, wait for ring for the second time: if twice ring is at interval between 5.5~6 seconds, incoming call discriminator 8 is communicated with telephone wire with communication apparatus 1, carry out communication; Otherwise incoming call discriminator 8 is communicated with telephone wire with telephone set 2, converse.
Fig. 3 is the embodiment of the invention, communication apparatus 1 and telephone set 2 common phone lines, and telephone wire is connected to telephone set 2, communication apparatus 1 embedded theory of constitution incoming call discriminator circuit as shown in Figure 7 through communication apparatus 1 earlier.When communication apparatus 1 and telephone set 2 needed active and outside communication among Fig. 3, directly off-hook detection had dialing tone with regard to dialing communication; When the external world will be with the device talk of common phone line, after the embedded incoming call discriminator circuit of communication apparatus 1 detects ring for the first time according to the program of Fig. 9, cut off and be connected with the telephone wire of telephone set 2, wait for ring for the second time: if twice ring at interval between 5.5~6 seconds, communication apparatus 1 off-hook carries out communication; Otherwise communication apparatus 1 is communicated with telephone wire with telephone set 2, converse.
Fig. 4 is the embodiment of the invention, communication apparatus 1 and telephone set 2 common phone lines, and telephone wire is connected to communication apparatus 1, telephone set 2 embedded theory of constitutions incoming call discriminator circuit as shown in Figure 7 through telephone set 2 earlier.When communication apparatus 1 and telephone set 2 needed active and outside communication among Fig. 4, directly off-hook detection had dialing tone with regard to dialing communication; When the external world will be with the device talk of common phone line, after the embedded incoming call discriminator circuit of telephone set 2 detects ring for the first time according to the program of Fig. 9, cut off and be connected with the telephone wire of communication apparatus 1, wait for ring for the second time: if twice ring is at interval between 5.5~6 seconds, the incoming call discriminator circuit is communicated with telephone wire with communication apparatus 1, carry out communication; Otherwise the off-state that keeps telephone wire and communication apparatus 1, telephone set 2 rings.
Fig. 5 is the embodiment of the invention, and dialer is made up of computer 9 and modulator-demodulator 10, and the program of computer 9 sends the corresponding command for modulator-demodulator 10 according to the flow chart of Fig. 8, implements to be spaced apart 6 seconds double dialing.
Fig. 6 is the embodiment of the invention, and dial-up circuit is realized principle, and this circuit is made up of microprocessor 11, circuit for answering 12, dialing and testing circuit 13, and the number of dial-out can be by keyboard 19 inputs or by serial ports 20 communications input.Need carry out when dialing twice, microprocessor 11 is by circuit for answering 12 off-hooks, by dialing and testing circuit 13 detection dialing tones, has dialing tone to carry out as shown in Figure 8 twice dialing procedure.
Fig. 7 is the embodiment of the invention, and incoming call ring discriminator circuit is realized principle, and this circuit is made up of microprocessor 15, ring detecting circuit 17, can increase telephone wire commutation circuit 16 as required, has ring to carry out as shown in Figure 9 ring interval discrimination process.
Fig. 8 is the embodiment of the invention, twice dialing procedure, and dialer elder generation off-hook, judging has dialing tone, picks up counting and dials, and has dialled back time-delay 150ms on-hook, and arrive 6 seconds, and off-hook and dialing realize dialing procedure twice again.
Fig. 9 is the embodiment of the invention, differentiates electric process, when new ring is arranged, cuts off being connected of relevant device and telephone wire as required, waits for second ring, judges the ring interval, carries out corresponding operating.Concrete steps are:
Step 1: cut off miscellaneous equipment after detecting ring for the first time;
Step 2: detect and judge that this twice ring is at interval whether between 5.5 seconds and 6.5 seconds, if then switch telephone wire and give communication apparatus 1, otherwise switch telephone wire to phone 2 after the ring for the second time; If not detecting ring for the second time and time surpassed 7 seconds then gets back to the initial condition that detects before the ring for the first time;
Step 3: detect the initial condition in the past of ring for the first time if switch to finish for phone 2 no off-hooks in back and ring then get back to; If off-hook is arranged, then execution in step 5,
Step 4: detect the initial condition in the past of ring for the first time if switch to finish for communication apparatus 1 no off-hook in back and ring then get back to; If off-hook is arranged, then execution in step 5,
Step 5: get back to detecting the initial condition in the past of ring for the first time after communication apparatus 1 or phone 2 off-hook communications, the on-hook.
Figure 10 is embodiment of the invention incoming call ring discriminator circuit schematic diagram, and microprocessor is 51 single-chip microcomputers; Ring detecting circuit is made up of optocoupler TLP521 and monostable 4538; The telephone wire commutation circuit is made of relay; The off-hook detection circuit is made up of rectifier bridge, optocoupler TLP521 and amplifier 358; House dog and supply voltage detect and are realized by MAX705.
Above-mentioned narration has provided embodiments of the invention, can be connected common phone line equipment according to Fig. 1, Fig. 2, Fig. 3 and one of Fig. 4, and dialing can be implemented according to Fig. 5 or Fig. 6.The invention is not restricted to these details, method and step that those skilled in the art can provide according to the present invention are suitably revised.