The computer software controlled telephone set that continues with microcomputer
The present invention relates to a kind of novel telephone set, definite says, relate to a kind of computer software controlled telephone set that continues with microcomputer, this telephone set is the telephone set that is come control operation by computer software by USB interface, it is to utilize public switch telephone network (PSTN) and powerful management control and the calculating memory function of microcomputer, ordinary telephone set is integrated on the microcomputer, makes the function of ordinary telephone set realize qualitative leap.
Since phone in 1876 was born, over and done with more than 100 year, the mankind had entered the information age, are in the people of a networked society, face the selection of increasing communication medium and communication mode.But in communication mode miscellaneous, voice communication is wherein extremely important a kind of all the time; In various communication modes, the communication equipment that has had more than 100 year historical ordinary telephone set to remain the most normal use of people, popularize the most.Between these more than hundred years, telephone set is brought in constant renewal in and is regenerated, and function also from strength to strength, but owing to be subjected to the restriction of volume own, power supply and manufacturing cost, its function expansion and breakthrough face sizable difficulty, some the time, the incompatibility people to communication requirement.Popularizing rapidly of computer, particularly microcomputer and developing rapidly of network make it calculate and office equipment from initial conduct, have become the communication terminal of network today yet meanwhile; But the resource of microcomputer also is far from being fully utilized, and also has huge development space therein.
The purpose of this invention is to provide a kind of computer software controlled telephone set that continues with microcomputer, this device combines the microcomputer that develops rapidly and traditional telephone set, forms a kind of novel communication terminal equipment---computer software controlled telephone set.It had both kept original telephone set voice communication characteristics simply and easily, make full use of microcomputer abundant software, hardware resource again, the intelligent management center of microcomputer, become a distinctive personalized speech communications platform as personalized speech communication.
The object of the present invention is achieved like this: a kind of computer software controlled telephone set that continues with microcomputer, include: the telephone set and the microcomputer of handle, support, plain old telephone line interface, it is characterized in that: this microcomputer is by its USB (USB) interface, and USB cable, usb circuit, microcontroller circuit, continue with telephone set, make this telephone set become one relatively independent, be subjected to this microcomputer software to control the computer peripheral of its operation---computer software controlled telephone set.
Be connected to the control box of switching of one five double-pole double throw switch on the handle of described telephone set, four audio signal wires (two loudspeaker signal lines on the movable contact of four blade and the Telephone handset wherein, two microphone signal lines) be connected, its two groups of breaks then respectively with telephone set in telecommunication circuit audio signal interface and this telephone set in one group of contact that is connected with computer sound card audio signal input/output interface being provided be connected, thereby the audio signal that can realize the handle input and output is switched between common pstn telephone input and output audio signal and sound card input and output audio signal mutually; An other cutter then inserts microcontroller, is used for detecting above-mentioned five double-pole double throw switch movable contact present located states.
This telephone set can be used as ordinary telephone set and uses when computer shutdown; When computer booting, then finish off-hook, dialing, on-hook, speech play, recording, caller ID display and management, telephone audio signal signalling analysis and visualized operation by hook switch control circuit, keyboard control circuit, D/A converting circuit and analog to digital conversion circuit in USB interface and the microcontroller circuit, make this telephone set become the external equipment of microcomputer by computer-internal software.
Include in the described microcontroller circuit: usb circuit, the microcontroller that continues with usb circuit, and the hook switch circuit of two software controls that are connected with this microcontroller respectively, the keyboard circuit of a software control, a D/A converting circuit and an analog to digital conversion circuit.
The hook switch circuit of described software control is to send control signal by computer software, give microcontroller via USB interface again, microcontroller receives and sends the line bag that corresponding logic level is come control relay after this control signal, thus the control relay contact switch on and off the operation that switches on and off that realizes hook switch.
The keyboard circuit of described software control is to send control signal by computer software, give microcontroller via USB interface again, microcontroller receives the telephone number of being dialled, and send corresponding logic level and control the closed circuit of photoelectric isolated chip trigger end and open circuit, thereby the operation of respective keys is finished in the conducting of the phototriode of the control other end and disconnection.
The hook switch circuit of described two software controls, the hook switch circuit of one of them software control is that the hook switch circuit with telephone set is in series, and the hook switch circuit of another one software control then is the two ends that are connected across the hook switch circuit of above-mentioned two series connection with parallel way.
Described keyboard circuit by software control is that the keyboard circuit with telephone set is connected in parallel.
Described D/A switch circuit and mould/number conversion circuit is to be connected in parallel respectively on the output input wires of the handle in the telephone set.
Described microcontroller circuit also is connected with calling number identification circuit in the telephone set, calling telephone number is delivered to Computer Processing and demonstration.
Telephone set in described computer software controlled telephone set part is by the power supply of pstn telephone line, and USB interface and microcontroller circuit part are then powered by USB interface by microcomputer, and two cover power supplys at D/A converting circuit and analog to digital conversion circuit place altogether.
Software in the described microcomputer is modular construction, its software includes: main control module, the telephone directory administration module, dial module, conversation process analysis and visualization model, telephonograph module, the telephonograph administration module, computer speech playing module, call management module, caller ID display module and usb communication module.
Software in the described microcontroller circuit is modular construction, and its software includes: main control module, recording data sampling module, computer speech playing module, dial module, calling number identification module and usb communication module.
Described computer software controlled telephone set is the audio signal signaling that adopts in the software analysis telephone set, and shows the title of this audio signal signaling on computer screen with the form of prompting frame, thereby realizes the visual of telephone audio signal signaling.
The title of the telephone audio signal signaling that described computer software controlled telephone set can be pointed out with the prompting frame form includes: dialing tone, ring-back tone, busy tone, toll telephone warning tone, howler tone, special dial tone, Congestion Tone, number unobtainable tone and call waiting sound.
Be connected to the control box of switching of one five double-pole double throw switch on the handle of described telephone set, four audio signal wires (two loudspeaker signal lines on the movable contact of four blade and the telephone handle wherein, two microphone signal lines) be connected, in its two groups of breaks one group is connected with speaking circuit audio signal interface in the telephone set, and an other end then is a free end; When the movable contact of switching control box of five double-pole double throw switches switches to when continuing mutually with free end, the handle of telephone set becomes the ancillary equipment of microcomputer audio signal input and output, an other cutter then inserts microcontroller, in order to detect above-mentioned five double-pole double throw switch movable contact present located states.
Software in the described microcomputer is modular construction, its software includes: main control module, the telephone directory administration module, dial module, conversation process analysis module, the telephonograph module, the telephonograph administration module, computer speech playing module, call management module, computer handle drives program module, caller ID display module and usb communication module.
Software in the described microcontroller circuit also is modular construction, and its software includes: main control module, recording data sampling module, the computer speech playing module, dial module, calling number identification module, audio frequency input module, audio frequency output module and usb communication module.
When described five double-pole double throw switches are dialled to pstn telephone one end, software sends control signal, make the software control hook switch circuit of series connection be in closed circuit state by USB interface control, when software is finished handoff functionality, make software control hook switch circuit in parallel be in closed circuit state; When software is finished the on-hook function, make software control hook switch circuit in parallel be in open-circuit condition.
When described five double-pole double throw switches were dialled to the other end, then software sent control signal and makes software control hook switch circuit series connection and parallel connection all be in open-circuit condition by USB interface.
Principle of the present invention is achieved in that at first, computer software controlled telephone set is a kind of telephone set, when computer shutdown or the computer software supporting with it did not start, it can use as a simple ordinary telephone set of function, can finish the calling of phone and answered.When computer booting and the computer software supporting with it start, it be exactly one powerful, by the telephone set of computer software control.On this man-machine interface of computer software, we can finish the dialing of phone, answer, the management (deletion, inquiry) of the management of caller ID display, telephone directory (add, revise, deletion, inquiry), telephonograph, telephonograph data, and communication process is analyzed the Fare determined by travel time of visual and conversation etc.; Control signal that all computer softwares send and the data that obtain from microcontroller are all by the USB interface input and output; And the control signal that microcontroller receiving computer software sends is finished the various command (as: dial, answer, recording etc.) of computer by logical circuit, and the various data upload that will obtain are given computer.Thereby realized one with plain old telephone circuit and microcontroller be integrated as the basis, that utilize computer powerful logic control and record memory function, based on the personalized speech communications platform of microcomputer.
Characteristics of the present invention are logic control, record storage and operation processing function of utilizing microcomputer powerful, by computer usb communication interface, realize coming controlled telephone by software; Change the black phone book and consulted loaded down with trivial details shortcoming, realized quick search, the fuzzy query of smart phone book; Change the mode of conventional telephone set rotary dialing and push-button dialing, realized the computer dial mode that mouse a bit just can be conversed; Change the too small shortcoming of conventional telephone set recording capacity, realized the unrestricted powerful recording function of telephone of number of times and record length (limit by hard-disk capacity); In communication process, can also realize calling number identification, and the record of air time and cost of the phone call.In addition, this telephone set can hang over a side of display, saves desk-top space, also can be placed on the desktop as black phone.
Describe composition, feature and the effect figure of hardware configuration of the present invention and software module in detail below in conjunction with drawings and Examples:
Fig. 1 is that the system hardware structure of first kind of embodiment of the present invention is formed block diagram;
Fig. 2 is that the system software module of first kind of embodiment of the present invention is formed block diagram;
Fig. 3 is the switch hook signal process chart of software control of the present invention;
Fig. 4 is the keyboard signal process chart of software control of the present invention;
Fig. 5 is calling number signal processing flow figure of the present invention;
Fig. 6 is telephonograph signal processing flow figure of the present invention;
Fig. 7 is a telephone audio signal signaling process flow chart of the present invention;
Fig. 8 is that computer of the present invention is play the voice signal process chart;
Fig. 9 is a software control hook switch action flow chart of the present invention;
Figure 10 is the handle of first kind of embodiment of the present invention---computer audio signal input and output flow process figure;
Figure 11 is that the system hardware structure of another kind of embodiment of the present invention is formed block diagram;
Figure 12 is that the system software module of another kind of embodiment of the present invention is formed block diagram;
Figure 13 is the handle of second kind of embodiment of the present invention---computer audio signal input and output flow process figure;
System hardware structure referring to first kind of embodiment of the present invention shown in Figure 1 is formed block diagram.The present invention is a kind of computer software controlled telephone set that continues with microcomputer, it includes: the telephone set 2 of handle, support, plain old telephone line interface and microcomputer 10, it is characterized in that: this microcomputer 10 is by its USB (USB) interface, and USB cable, usb circuit 11, microcontroller circuit 12, continue with telephone set 2, make this telephone set become one relatively independent, be subjected to this microcomputer software to control the computer peripheral of its operation---computer software controlled telephone set.This telephone set can be used as ordinary telephone set and uses when computer shutdown; When computer booting, then finish off-hook, dialing, on-hook, speech play, recording, caller ID display and management, telephone audio signal signalling analysis and visualized operation by the hook switch control circuit in USB interface and the microcontroller circuit 13,14, keyboard control circuit 15, D/A switch circuit 16 and mould/number conversion circuit 17, make this telephone set become the external equipment of microcomputer by computer-internal software.
The hook switch circuit 13,14 of two software controls of the present invention, the hook switch circuit 13 of one of them software control is that the hook switch circuit 26 with telephone set is in series, and the hook switch circuit 14 of another one software control then is the two ends that are connected across the hook switch circuit 13,26 of above-mentioned two series connection with parallel way.Be that keyboard circuit 26 with telephone set is connected in parallel wherein by the keyboard circuit 15 of software control.And D/A converting circuit 16 and analog to digital conversion circuit 17 are to be connected in parallel respectively on the output input wires of the handle in the telephone set.Microcontroller circuit 12 also is connected with calling number identification circuit 25 in the telephone set 2, handles and shows calling telephone number is delivered to computer 10.Telephone set part of the present invention is by the power supply of pstn telephone line, and USB interface and microcontroller circuit part are then powered by USB interface by microcomputer, and two cover power supplys are at the D/A switch circuit and mould/number conversion circuit place altogether.
System software module referring to first kind of embodiment of the present invention shown in Figure 2 is formed block diagram; Software in the microcomputer 10 of the present invention is modular construction, its software includes: main control module 30, telephone directory administration module 31, dial module 32, conversation process analysis module 33, telephonograph module 34, telephonograph administration module 34, computer speech playing module 39, call management module 36, caller ID display module 37 and usb communication module 38.Similarly, the software in the microcontroller circuit also is modular construction, and its software includes: main control module 40, recording data sampling module 41, computer speech playing module 42, dial module, calling number identification module 43 and usb communication module 44.Computer software controlled telephone set of the present invention is the audio signal signaling that adopts in the software analysis telephone set, and shows the title of this audio signal signaling on computer screen with the form of prompting frame, thereby realizes the visual of telephone audio signal signaling.The present invention includes with the title of the telephone audio signal signaling that the prompting frame form is pointed out: dialing tone, ring-back tone, busy tone, toll telephone warning tone, howler tone, special dial tone, Congestion Tone, number unobtainable tone and call waiting sound.
Referring to Fig. 3, the hook switch circuit the 13, the 14th of software control of the present invention sends control signal by computer software, give microcontroller via USB interface again, microcontroller receives and sends the line bag that corresponding logic level is come control relay after this control signal, thus the control relay contact switch on and off the operation that switches on and off that realizes hook switch.
Referring to Fig. 4, the keyboard circuit 15 of software control of the present invention is to send control signal by computer software, give microcontroller via USB interface again, microcontroller receives the telephone number of being dialled, and send corresponding logic level and control the closed circuit of photoelectric isolated chip trigger end and open circuit, thereby the operation of respective keys is finished in the conducting of the phototriode of the control other end and disconnection.
The present invention has two kinds of embodiment, and every kind of embodiment is made up of two parts: 1, system hardware; 2, systems soft ware.First kind of embodiment is referring to Fig. 1, and system hardware is by forming as the lower part: computer 10: System Control Center, the dialing of telephone set, conversation etc. are managed, and realize the hommization of telephone set, visual, make phone more quick and make things convenient for.Usb circuit and telecommunication cable 11 thereof: the communication port of computer and microcontroller.Microcontroller 12: hardware circuit control centre, control various basic circuits, directly finish the various operations of telephone set.Software control hook switch circuit 13 or 14:, can realize software off-hook and software on-hook by the hook switch of computer software control.Physical circuit is referring to Fig. 3, and it is to finish required function by relay, and its line bag is to be controlled by the logical circuit of software control, and its contact is exactly the hook switch of software control.Native system has two software control hook switches, and one of them is that hook switch with telephone set is cascaded by the software control hook switch, and another one then is connected across the two ends of these two series connection hook switch circuit with the form of parallel connection.Concrete motion flow can be referring to Fig. 9.Software control keyboard circuit 15:, can realize keyboard by software control by the dial-up circuit of computer software control.Physical circuit is referring to Fig. 4, major function has a photoelectric isolated chip to finish, the light-emitting diode of its trigger end is controlled by the logical circuit of software control, the c of phototriode, e two ends the answer the call line and the alignment of switch dish, thereby can control the connecting and disconnecting of telephone keyboard line and alignment by logic level, realize dialing.Calling number identification circuit 25: can realize caller identification.Analog to digital conversion circuit 17: can realize the audio sample of telephone circuit, sample frequency is 8KHz, and sampling precision is 8bit, is the basic circuit of realizing telephonograph.Its circuit includes circuit for power conversion, the amplification that realizes signal with dwindle.D/A converting circuit 16: the speech data in the computer is sent into handle through this circuit, can realize computer speech prompting or playback.Its circuit includes circuit for power conversion, the amplification that realizes signal with dwindle.Handle change-over circuit 27: be one five double-pole double throw switch, when dialling to telephone set network one side, can realize dialing of pstn telephone, when dialling to another side, handle can be used as the I/O channel of computer audio signal.Wherein two of a cutter breaks connect power supply and ground respectively, and its movable contact inserts microcontroller, and when switch is struck, thereby microcontroller detects its logic level in order to detect movable contact present located state in five double-pole double throw switches.10, telephone set network 2 parts: the not bigger change of telephone set basic circuit, can realize the function of ordinary telephone set like this when computer shutdown or computer software do not start.
Referring to Fig. 2, the systems soft ware of first kind of embodiment of the present invention is made up of two parts:
One, computer software 3: the core of system's control, the man-machine interface of user and system interaction.Consist of the following components: (1) main control module 30: in order to management man-machine interface and other module.(2) the telephone directory administration module 31: the administration module of telephone directory, realize interpolation, deletion, modification and the inquiry of telephone directory data.(3) dial module 32: realize dial feature in order to computer software, dial the number is sent to microcontroller through USB interface realizes dialing.(4) the telephonograph administration module 34: in order to the management (inquiry, deletion and playback) that realizes starting telephonograph and realize the telephonograph data.(5) telephonograph module 35: realize reception, compression and the storage of voice data.(6) conversation process analysis module 33: analyze current telephone audio signal signaling with software spare, comprise and analyze dialing tone, ring-back tone, busy tone, toll telephone warning tone, howler tone, special dial tone, Congestion Tone, number unobtainable tone, call waiting sound etc., analyze current communication process, give user's visual cue with the form of prompting frame by computer screen, by the user make a choice or software from dynamic response.(7) the call management module 36: realize demonstration, record and storage to air time and cost of the phone call.(8) caller ID display module 37: in order to caller identification.(9) the usb communication module 38: the communication port of computer software and microcontroller software, the audio sampling data of the various control commands of computer, the various answer signals of microcontroller and microcontroller is all by these passage input and output.(10) the computer speech playing module 39: the computer speech playing module extracts speech datas such as suggestion voice or telephonograph, under the usb communication interface, pass to microcontroller, by delivering to handle after the digital-to-analogue conversion, realize the broadcast of computer speech prompt facility or machine word sound data.
Two, microcontroller software 4: in order to the various control commands of receiving computer, each logical circuit of real-time control is finished various different operatings.Mainly consist of the following components: (1) main control module 40: in order to manage other module.(2) recording data sampling module 41: in order to the analog-to-digital conversion of audio signal, then sampled data is real-time transmitted to computer calculation machine and handles, realize telephonograph.(3) the computer speech playing module 42: microcontroller receives from speech datas such as following suggestion voice that passes of computer or telephonographs, sends into handle after digital-to-analogue conversion, can realize computer speech prompting or playback.(4) dial module 43: the dialing signal that receiving computer passes down, Control Software supervisory keyboard circuit is realized the software dialing.(5) the calling number identification module 44: logical circuit receives the calling number signal, uploads computer after the identification and shows.(6) the usb communication module 45: the communication port of computer software and microcontroller software, the audio sampling data of the various control commands of computer, the various answer signals of microcontroller and microcontroller is all by these passage input and output.
The flow process of several signal of interests will be described below:
Referring to Fig. 3, computer sends signal (on-hook or off-hook), under the usb communication interface, pass to microcontroller, microcontroller software sends control level (logic high or logic low), electric current in the control relay line bag (have or do not have), thus the state of control relay contact (disconnect or connect) is realized the function of software control hook switch.Concrete motion flow is referring to Fig. 9.
Referring to Fig. 4, computer sends the software dialing signal, dialing signal and dial the number are passed to microcontroller under the usb communication interface, microcontroller software is given the triggering that decoder for decoding output logic level removes to control photoelectric isolated chip after with dial the number coding and is brought in switching on and off of control phototriode, and the c of phototriode, e two ends the answer the call line and the alignment of switch dish, thereby realize the software keys function.
Referring to Fig. 5, the calling number signal is uploaded to computer by the usb communication interface and shows after the identification of calling number identification circuit.
Referring to Fig. 6, microcontroller becomes digital audio and video signals in the sampling of handle earphone place through analog-to-digital conversion, sends into computer by the usb communication interface and compresses storage, realizes recording function of telephone.
Referring to Fig. 7, communication process audio signal signaling appears at handle earphone place, through analog-to-digital conversion, send into computer software by the usb communication interface, again by computer software analysis, thereby analyze current communication process, with the form prompting of prompting frame on computer screen.
Referring to Fig. 8, computer software extracts the machine word sound data, by reaching microcontroller under the usb communication interface, send handle again after digital-to-analogue conversion.
Referring to Fig. 9, when five double-pole double throw switches are dialled to pstn telephone one end, computer software sends control signal, by reaching microcontroller under the usb communication interface, the microcontroller action that responds, make the software control hook switch of series connection be in open-circuit condition, software control hook switch in parallel is divided into two kinds of situations, when computer realization software handoff functionality, signal is by reaching microcontroller under the usb communication interface, and microcontroller responds, and makes software control hook switch in parallel be in closed circuit state, connect phone, when computer realization software on-hook function, signal is by reaching microcontroller under the usb communication interface, and microcontroller responds, make software control hook switch in parallel be in open-circuit condition, cut off phone; When five double-pole double throw switches are dialled to the other end, computer software sends control signal, by reaching microcontroller under the usb communication interface, the microcontroller action that responds, make the software control hook switch and the software control hook switch in parallel of series connection all be in open-circuit condition, prevent that the telephone signal signaling on the PSTN from entering handle.
Referring to Figure 10, in first kind of embodiment, when five double-pole double throw switches were dialled to sound card one end, the hook switch of computer software control cut off getting in touch of handle and PSTN, and this moment, handle was set up two relatively independent passages by sound card and computer.Simulated audio signal converts the signal of telecommunication to through handle Mike, gives Computer Processing by sending into sound card with the line of sound card; The computer audio signal after sound card is handled by with the line of handle, send into the handle earphone and be converted to simulated audio signal.
The hardware configuration of second kind of embodiment of the present invention is referring to Figure 11, handle change-over circuit 27 in the system hardware is changed, it has had the relatively independent computer software driver of a cover oneself, sound card is no longer passed through in the input and output of its audio signal, but sets up a relatively independent audio frequency I/O channel by mutual change-over circuit 16,17, usb communication interface and the computer 10 of digital-to-analogue.In handle change-over circuit 27, the other end of five double-pole double throw switches just need not connect the Mike's interface and the speaker interface of sound card like this, as long as unsettled.Systems soft ware also has change, and referring to Figure 12, computer software 3 has increased a handle drives module 3A, makes it to become the equipment of computer audio input and output in order to the computer drives handle.Microcontroller software 4 has increased audio frequency input module 46 and audio frequency output module 47, and control analog to digital conversion circuit 17 and D/A converting circuit 16 are in order to the passage when handle 28 audio frequency input and output during as computer audio input-output equipment.
Referring to Figure 13, in the scheme of embodiment two, when 27 groups of five double-pole double throw switches during to a unsettled end, the hook switch 13 of computer software control cuts off getting in touch of handle 28 and PSTN, and this moment, handle 28 was set up two relatively independent computer audio I/O channels by usb communication interface and computer 10.Simulated audio signal is converted to the signal of telecommunication through handle 28, sends into microcontroller 12 through analog-to-digital conversion 17 again, is uploaded to computer 10 handle drives program module 3A by the usb communication interface, transfers to computer 10 and handles.The audio signal of computer 10 by reaching microcontroller under the usb communication interface, is sent into the handle earphone after then the cleaner handgrip driver module is handled as calculated again after digital-to-analogue conversion, be converted to simulated audio signal.
Other hardware circuit, software module, signal flow and the motion flow of second embodiment is all basic identical with the situation of first embodiment, does not repeat them here.