CN104639744A - GSM/PSTN (global system for mobile communication/public switched telephone network) automatic switching device - Google Patents

GSM/PSTN (global system for mobile communication/public switched telephone network) automatic switching device Download PDF

Info

Publication number
CN104639744A
CN104639744A CN201510023811.8A CN201510023811A CN104639744A CN 104639744 A CN104639744 A CN 104639744A CN 201510023811 A CN201510023811 A CN 201510023811A CN 104639744 A CN104639744 A CN 104639744A
Authority
CN
China
Prior art keywords
gsm
pstn
module
microprocessor
authorized user
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.)
Granted
Application number
CN201510023811.8A
Other languages
Chinese (zh)
Other versions
CN104639744B (en
Inventor
林凡强
贾建军
陈起传
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Univeristy of Technology
Original Assignee
Chengdu Univeristy of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chengdu Univeristy of Technology filed Critical Chengdu Univeristy of Technology
Priority to CN201510023811.8A priority Critical patent/CN104639744B/en
Publication of CN104639744A publication Critical patent/CN104639744A/en
Application granted granted Critical
Publication of CN104639744B publication Critical patent/CN104639744B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a GSM/PSTN (global system for mobile communication/public switched telephone network) automatic switching device, which comprises a microprocessor, a GSM module, a PSTN dialing and detection module, a DTMF (dual-tone multi-frequency) coding and decoding module and an analog switch, wherein incoming signals of a PSTN network and a GSM network can be monitored, if the incoming signal of the PSTN network is monitored, an SIM (subscriber identity module) card calls a preset GSM switching number, if the incoming signal of the GSM is monitored and the judging result shows that a user corresponding to the incoming signal is an authorized user, a call can only be answered, then entering into a setting mode or a switching mode is carried out according to the mobile phone press key input of the authorized user, instruction setting is carried out in the setting mode, or the PSTN network is used for dialing in the switching mode. The GSM/PSTN automatic switching device has the advantages that the simple and fast switching can be realized between the GSM and PSTN networks, the calling and called operations can be flexibly converted according to requirements, in addition, the user privacy can be protected, and the telephone charge of the user is saved.

Description

GSM/PSTN automatic switching device
Technical field
The present invention relates to a kind of call forwarding equipment, particularly relate to a kind of GSM/PSTN automatic switching device.
Background technology
The home phone number adapter of current a kind of practicality, two inputs of telephone switching device received by two telephone lines simultaneously, and telephone set connects its output.When calling in outside, on two circuits, bell signal appears in which bar circuit, and telephone set accesses on the telephone line of ring by telephone switching device automatically.Phone ring, user's off-hook and outside line are conversed.By button selection path when making a phone call.
Another kind of landline telephone adapter has LINE1/LINE2 two outer line interfaces, squeezes into from LINE1 if any phone, and equipment is answered automatically being got on designated telephone by LINE2.Specifying the telephone number of answering can be set in advance in adapter, such as, can be the phone number etc. of migrant person.Equipment has RJ11 interface, DC interface.
These current two kinds of main flow switching machines are all adopt fixed-line telephone network to carry out call forwarding, therefore at least need two telephone wires, use very inconvenient.Switching machine is generally merely able to storage Subscriber Number, does not have cipher protection function, can not carry out remote short messages or voice setting.
This switching machine well cannot protect the privacy of user in addition; such as; the signaling transfer point of current realization is; the external world dials base and can be automatically forwarded on the user mobile phone of setting; the phone number of user can be protected like this not reveal, if but user to externally call, must base be dialed; otherwise just there is the problem that number is revealed, also do not have now a kind of switching machine easily to facilitate user directly not reveal Subscriber Number with mobile phone dialing external world's number.
Also have a kind of situation to be when user uses switching machine in strange land time, if as caller dials switching machine, call rate costly and roaming charges can be produced.
Summary of the invention
Object of the present invention is just to provide one to solve the problem; switching can be realized flexibly between GSM and PSTN network; carry out caller and called flexible conversion as required, and can privacy of user be protected, and user telephone fee, occupation mode GSM/PSTN automatic switching device flexibly can be saved.
To achieve these goals, the technical solution used in the present invention is such: a kind of GSM/PSTN automatic switching device, and the gsm module comprising microprocessor and be connected with microprocessor, PSTN dials and detection module, DTMF decoder module, dtmf code module and analog switch; Wherein,
The external SIM card of described gsm module, power on and automatically identify and connect GSM network, the incoming telephone signal of monitoring mobile phone user, is sent to microprocessor by serial ports;
Described PSTN dialing and detection module, be communicated with PSTN network, monitor the bell signal from PSTN network, and when base ring unanswered, realized PSTN voice to transfer through GSM network by Microprocessor S3C44B0X;
Described analog switch is positioned between gsm module and DTMF decoder module, between gsm module and PSTN network, by the break-make of Microprocessor S3C44B0X switch;
Described microprocessor receives after incoming telephone signal carries out preliminary treatment first, makes device enter normal mode of operation, the monitoring incoming telephone signal of GSM network and the bell signal of PSTN network, and carries out corresponding process;
Described preliminary treatment is: microprocessor detects the incoming telephone signal of the first cellphone subscriber of GSM network, and give tacit consent to it for keeper's number, incoming call answering signal, enters at the beginning of keeper and establish pattern; Establish the instruction in pattern to comprise at the beginning of described keeper and add authorized user, delete authority user, the setting of GSM calls transfer number, the setting of PSTN calls transfer number, login password setting;
Entering the signal transacting after normal mode of operation is:
If PSTN network phone calls signal, call out PSTN calls transfer number by SIM card, and open the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module;
If GSM incoming telephone signal, be judged as that authorized user is just answered, and according to the mobile phone key input value of authorized user, judgement enters set model or Transfer Mode, instruction setting is carried out in set model, or in Transfer Mode, utilize PSTN network to carry out transit dialing, and connect the voice channel of PSTN network and gsm module; The instruction of described set model comprises the setting of GSM calls transfer number and the setting of PSTN calls transfer number.
Microprocessor can be monitored the incoming telephone signal of GSM network and PSTN network, when the present invention uses first, microprocessor needs to carry out preliminary treatment, just normal mode of operation can be entered, in preliminary treatment, first cellphone subscriber's caller ID of GSM network can be defaulted as keeper's number by microprocessor, there is the highest authority, keeper is after just establishing interpolation and delete authority user in pattern, arranging the information such as GSM calls transfer number, PSTN calls transfer number, login password, the present invention just can normally work, wherein:
To add and delete authority user is specially by the input of the mobile phone card number of authorized user stored in the built-in memory of microprocessor, or deletion;
When PSTN calls transfer number is for detecting that PSTN network has an incoming telephone signal when microprocessor, need the authorized user phone number of switching, when this number is mainly used in making base, switching mobile phone, this number generally immobilizes, and is the number of one of authorized user, when there being people to dial base, be automatically forwarded to this number when the unmanned response of base, keeper can arrange this number and change;
GSM calls transfer number is the number that authorized user is wanted to be dialed away by base, when authorized user is wanted to utilize handset dialing, but (hides personal number information) when utilizing PSTN Internet phone-calling, can input this number by the cell phone keyboard of oneself.This number is not fixed, for authorized user wants the number setting up call.
Preset, enter normal mode of operation, the present invention can realize the switching to incoming telephone signal, wherein, if PSTN network phone calls signal detected, namely someone dials base number, when determining nobody response of base, calling out PSTN calls transfer number by SIM card, and opening the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module, now can realize call forwarding.
The object that authorized user dials SIM card on device number has two, first is arrange, set-up mode is identical with the mode that keeper is undertaken arranging by mobile phone key, but authority is not as good as keeper, such as cannot carry out interpolation and delete authority user, the operations such as login password are set, but the setting of GSM calls transfer number and PSTN calls transfer number can be realized; Second is carry out call forwarding, if microprocessor detects as GSM incoming telephone signal, first needs to be judged as authorized user, if just carry out next step operation, otherwise does not answer and does not set up call.Now if desired call forwarding, the base of PSTN network is then utilized to dial, and connect the voice channel of PSTN network and gsm module, now dialing user's display is base number, authorized user can realize hiding of own number, if when authorized user and SIM card are same virtual V network users, the cost of the phone call between authorized user and SIM card is very cheap simultaneously, and the communication fee of fixed line is far below mobile phone, the communication fee of authorized user now can be reduced.
As preferably: in preliminary treatment, incoming call answering signal, enter and at the beginning of keeper, to set the concrete mode of pattern as microprocessor incoming call answering signal, open the module switch between gsm module and DTMF decoder module, connect gsm module and DTMF decoder module, keeper inputs the DTMF code of corresponding instruction by mobile phone key, processes by sending in microprocessor after DTMF decoding module decodes.
As preferably: described in determine whether that the concrete grammar of authorized user is, after microprocessor detects GSM incoming call index signal, gsm module can send the number information of incoming call to microprocessor by serial ports, microprocessor goes out caller ID by the information extraction received serial ports, compare with the number that stored in system again, determine whether authorization number.
As preferably: the concrete mode entering set model or Transfer Mode according to the mobile phone key input of authorized user is:
(1) after answering, open the analog switch between gsm module and DTMF decoder module, be communicated with gsm module and DTMF decoder module;
(2) the DTMF code of mobile phone key input is decoded by Microprocessor S3C44B0X DTMF decoder module;
(3) if be decoded as default instruction, enter set model, and operate according to the DTMF code that authorized user mobile phone inputs corresponding instruction; If be decoded as telephone number to be transferred, enter Transfer Mode, described Transfer Mode is:
A. microprocessor will treat that forwarding telephone number is sent to dtmf code module, be transformed to analog signal, dial through PSTN module;
B. after putting through, disconnect the analog switch between gsm module and DTMF decoder module, open the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module.
As preferably: described analog switch model is CD4066.
As preferably: the set model of described authorized user also comprises roam mode setting, and after entering roam mode, Transfer Mode is:
(1) microprocessor detects the GSM incoming telephone signal of authorized user, first on-hook, and by this authorized user of SIM card clawback;
(2) authorized user is answered, the telephone number of input switching;
(3) telephone number is sent to dtmf code module re-encodes by microprocessor, and is sent to by coding PSTN to dial and detection module;
(4) Microprocessor S3C44B0X PSTN dialing and detection module are according to coding dialing;
(5) after putting through, serial ports can return the state information put through to microprocessor, now disconnects the analog switch between gsm module and DTMF decoder module, opens the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module.
In roam mode, when authorized user needs to use this device, allow authorized user become callee, the communication fee of authorized user in roam procedure can be saved like this.
As preferably: the set model of described authorized user also comprises note set model, microprocessor carrys out monitor signal by the serial ports be connected with gsm module, judge that it is phone or note again, if phone, then answer, and carry out corresponding function setting, if note by the code that user keys in, carry out related setting according to short message content, described short message content is the coded message corresponding with the instruction that liaison mode is keyed in.
By note set model, authorized user keys in coded message corresponding to and instruction by note, after microprocessor extracts, operates according to correspondence coding.
As preferably: just establish the instruction in pattern also to comprise amendment and log in password, keeper's recovery system and amendment administrator's password.
As preferably: described microprocessor adopts STC10F04 single-chip microcomputer.
Compared with prior art, the invention has the advantages that: adopt single-chip microcomputer as whole control core, gsm module is adopted to carry out radio communication, dual inline type CMOS integrated circuit CD4066 bidirectional analog numerical control switch is selected to carry out passage bridge, coordinate MAX232 interface modular converter to make single-chip microcomputer and gsm module carry out RS232 serial communication, use the AT order of standard to control gsm module and realize various radio communication function.User can, by dialing the external SIM card of gsm module, after setting up call, use cell phone keyboard transmission DTMF code to carry out the setting of user's login, interpolation, deletion, change of secret code, switching number.Also can directly be arranged by note.Under the control of a processor, after PSTN incoming call, system puts through set telephone number by GSM, then selects talking path by analog switch, and after GSM incoming call, system dials switching number by PSTN, analog switch changes talking path automatically, finally realizes automatic transfer.
The present invention can realize simple and efficient switching according to the actual demand of user between GSM network and PSTN network, solve fixed line phone and omit problem, also the problem directly dialed by base of dialing that cannot directly be needed by mobile phone is solved, simultaneously, when multiple user being to the same virtual V network users of GSM network, the communication fee of authorized user can also be reduced.
Accompanying drawing explanation
Fig. 1 is system block diagram of the present invention.
Fig. 2 is GSM network status monitoring circuit diagram.
Fig. 3 is SIM card circuit diagram.
Fig. 4 is that gsm module controls pinouts.
Fig. 5 is DTMF decoder module circuit diagram.
Fig. 6 is dtmf code module circuit diagram.
Fig. 7 is CD4066 analog switch pin function figure.
Fig. 8 is the peripheral connecting circuit figure of CD4066 analog switch.
Fig. 9 is the connection layout of single-chip microcomputer and gsm module.
Figure 10 is single chip machine controlling circuit figure.
Figure 11 is PSTN voice call circuit diagram.
Figure 12 is software flow figure of the present invention.
Figure 13 is that dial mode of the present invention carries out Operation system setting order list.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
Embodiment 1: see Fig. 1 to Figure 12, a kind of GSM/PSTN automatic switching device, the gsm module comprising microprocessor and be connected with microprocessor, PSTN dials and detection module, DTMF decoder module, dtmf code module and analog switch; Wherein,
The external SIM card of described gsm module, power on and automatically identify and connect GSM network, the incoming telephone signal of monitoring mobile phone user, is sent to microprocessor by serial ports;
Described PSTN dialing and detection module, be communicated with PSTN network, monitor the bell signal from PSTN network, and when base ring unanswered, realized PSTN voice to transfer through GSM network by Microprocessor S3C44B0X;
Described analog switch is positioned between gsm module and DTMF decoder module, between gsm module and PSTN network, by the break-make of Microprocessor S3C44B0X switch; In the present invention, described analog switch model is CD4066;
Described microprocessor receives after incoming telephone signal carries out preliminary treatment first, makes device enter normal mode of operation, monitoring incoming telephone signal and bell signal, and processes accordingly;
Described preliminary treatment is: microprocessor detects the incoming telephone signal of the first cellphone subscriber of GSM network, and give tacit consent to it for keeper's number, incoming call answering signal, enters at the beginning of keeper and establish pattern; Establish the instruction in pattern to comprise at the beginning of described keeper and add authorized user, delete authority user, the setting of GSM calls transfer number, the setting of PSTN calls transfer number, login password setting; Also comprise amendment and log in password, keeper's recovery system and amendment administrator's password.
In preliminary treatment, incoming call answering signal, enter and at the beginning of keeper, to set the concrete mode of pattern as microprocessor incoming call answering signal, open the module switch between gsm module and DTMF decoder module, connect gsm module and DTMF decoder module, keeper inputs the DTMF code of corresponding instruction by mobile phone key, processes by sending in microprocessor after DTMF decoding module decodes.
Entering the signal transacting after normal mode of operation is:
If PSTN network phone calls signal, call out PSTN calls transfer number by SIM card, and open the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module;
If GSM incoming telephone signal, be judged as that authorized user is just answered, and enter set model or Transfer Mode according to the mobile phone key input of authorized user, carry out instruction setting at set model, or in Transfer Mode, utilize PSTN network dial, and connect the voice channel of PSTN network and gsm module; The instruction of described set model comprises the setting of GSM calls transfer number and the setting of PSTN calls transfer number.
Wherein, describedly determine whether that the concrete grammar of authorized user is, after microprocessor detects GSM incoming call index signal, gsm module can send the relevant information of incoming call to microprocessor by serial ports, microprocessor goes out caller ID by the information extraction received serial ports, compare with the number that stored in system again, determine whether authorization number.
The concrete mode entering set model or Transfer Mode according to the mobile phone key input of authorized user is:
(1) after answering, open the analog switch between gsm module and DTMF decoder module, be communicated with gsm module and DTMF decoder module;
(2) the DTMF code of mobile phone key input is decoded by Microprocessor S3C44B0X DTMF decoder module;
(3) if be decoded as default instruction, enter set model, and operate according to the DTMF code that authorized user mobile phone inputs corresponding instruction; If be decoded as telephone number to be transferred, enter Transfer Mode, described Transfer Mode is:
A. microprocessor will treat that forwarding telephone number is sent to dtmf code module, be transformed to analog signal, dial through PSTN module;
B. after putting through, disconnect the analog switch between gsm module and DTMF decoder module, open the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module.
The set model of described authorized user also comprises roam mode setting, and after entering roam mode, Transfer Mode is:
(1) microprocessor detects the GSM incoming telephone signal of authorized user, first on-hook, and by this authorized user of SIM card clawback;
(2) authorized user is answered, and inputs the telephone number that will transfer;
(3) telephone number is sent to dtmf code module re-encodes by microprocessor, and sends to PSTN to dial coding;
(4) after putting through, serial ports can return the state information put through to microprocessor, now disconnects the analog switch between gsm module and DTMF decoder module, opens the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module.
What the present embodiment adopted is that STC10F04 single-chip microcomputer is as whole control core, MD231 model gsm module is adopted to carry out radio communication, select dual inline type CMOS integrated circuit CD4066 bidirectional analog numerical control switch to carry out passage automatically to change, coordinate MAX232 interface modular converter to make single-chip microcomputer and gsm module carry out RS232 serial communication.When MD231 is used as the gsm module use of standard, the AT order inputted by serial ports uses module, and the feedback information of module is obtained from com port, single-chip microcomputer carries out the communication functions such as GPRS online, phone, transmitting-receiving note by the AT command control module of serial ports standard.The function of the more existing switching machine of the present invention is made to have had more expansion.
The PWR pin of MD231GSM module drags down start in 2 seconds, also or can use pattern circuit that module is powered on Auto Power On with manual start.This module is under non-low-power consumption mode, and average standby current is about 15mA, under low-power consumption mode, on average reaches about 3-4mA, and this is also the solution of low-power consumption of the present invention.Module enters low-power consumption needs two conditions, and one is use AT order (at+cslp=1) to arrange, and allows to enter low-power consumption mode; Two is drawn high by the DSR pin of serial ports.After entering low-power consumption mode, serial port function can be closed, and now single-chip microcomputer will communicate with gsm module and DSR pin will be dragged down, and module is waken up, and serial ports is resumed work again.Single-chip microcomputer and gsm module serial communication mode are consulted shown in Fig. 9, and this example belongs to 9 needle serial ports.In low-power consumption mode, if having incoming call or note, module can be waken up automatically, and exports square wave notice single-chip microcomputer with RI pin.
Consult Fig. 2, Fig. 3, Fig. 4, Figure 10, the external network testing circuit of pin IO31 of gsm module is to detect the network channel belonging to incoming call.The external SIM card circuit of pin VRSIM, SIM_RST, SIM_IO, SIM_CLK, when user dials this number, module can receive information and receives the control of single-chip microcomputer by serial ports and process accordingly.Pin WATCHDOG, RI, TXD1, RXD2, HARDWARE_SHUTOFF are connected with single-chip microcomputer, carry out transmission and the reception of message.
Consult Fig. 5, Fig. 6, Figure 10, when user dial SIM card carry out corresponding voice call process time, first will carry out DTMF decoding, obtain transmitted voice messaging and give single-chip microcomputer, single-chip microcomputer just can carry out judging and control gsm module to make correct process.To carry out call forwarding, then first will carry out dtmf code could convert digital information to touch-tone signal and send.
In order to realize the automatic transfer of GSM/PSTN, need cooperation dual inline type CMOS integrated circuit CD4066 bidirectional analog Digital Transmission switch.Consult Fig. 7, the pinouts of CD4066 analog switch, there are 4 independently analog switches each encapsulation inside, and each analog switch has input, output, control three terminals, wherein input and output interchangeable.Switch on power, when control pin is high potential, output pin and input pin " connection ", when control pin is electronegative potential, output pin and input pin "off".
Consult Fig. 5, Fig. 8, Figure 10, pin CTR_A, CTR_B, CTR_C, CTR_D of analog switch are connected with single-chip microcomputer, and as the input and output of control end control simulation switch.Such as when to detect electric channel be GSM to network, CTR_B pin is high level, and switch B and I/O pin 3/4 are switched on, and carry out GSM decoding, and then carries out encoding, transferring.
Consult Figure 11, be voice call circuit diagram, the left side is earphone path, and the right is microphone path, and both sides are all connected with variable capacitance diode, makes the isolation that audio frequency transformer carries out voice signal, improves the speech intelligibility of system switching, reduces audio distortion.
The present invention is especially applicable to office and uses, and user uses this device also to need configuration 9V power supply one, telephone wire one, one, antenna, GSM card one.Installation method of the present invention is: power supply is that the present invention powers, and telephone wire connects the pedestal machine in PSTN dialing and detection module and office, and antenna connects gsm module, the external SIM card of gsm module.In the present embodiment, suppose that SIM card and authorized user are the number in same virtual V net.Device connects correctly, system meeting Auto Power On, and at this moment signal lamp can glimmer once for every 1 second, and after system finds signal, signal lamp can become flicker in 3 seconds once.At this moment system initialization is complete.
Use the present invention first, need to carry out preliminary treatment could normally work, in processes, microprocessor can be defaulted as keeper's number the incoming telephone signal of the first cellphone subscriber of GSM network, authorize the operating right of its highest administration, keeper can carry out the operations such as authorized user, delete authority user, the setting of GSM calls transfer number, the setting of PSTN calls transfer number, login password setting.Concrete set-up mode is see Figure 13.Certain Figure 13 is only a kind of execution mode, and its command mode is not only confined to this one.
When after the good authorized user of Administrator, authorized user just can use this device, otherwise it is dialed SIM card and can not be answered.Certainly, keeper and some authority of authorized user are identical, and the such as above-mentioned GSM calls transfer number mentioned sets, the setting of PSTN calls transfer number, and keeper and authorized user all can set switching number, with easy to use according to the actual requirements.
After just having established, this device carries out normal mode of operation, for keeper and authorized user provide switch over operation, or accepts the setting of keeper and authorized user, arranges system.
We suppose that authorized user one has six now, when base incoming call ring unanswered, PSTN calls transfer number is set as authorized user 1, so when base is squeezed in outside line, when the present invention judges base ring unanswered, by the phone number of SIM card call authorization user 1, and open the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module, authorized user 1 and outside line are connected.
SIM card is generally dialed by authorized user and keeper, when authorized user dials SIM card time, demand is two, one is arrange, one is carry out call forwarding, so when the present invention monitors GSM incoming telephone signal, first will judge whether it is authorized user, be just answer, after answering, enter set model or Transfer Mode according to the method described above.If enter set model, the DTMF code that authorized user inputs corresponding order again carries out setting operation.If enter Transfer Mode, then user by mobile phone key input need switching number, dialled by Microprocessor S3C44B0X PSTN and detection module according to coding dialing.Connect the voice channel of PSTN network and gsm module after putting through again, set up call.
Now due to be make use of PSTN dialing and detection module dial, what called party cell phone showed is base number, reach the function of hiding calling party's phone number, simultaneously, due to the user that calling party and SIM card are in same virtual V net, telephone expenses cost is very cheap, and base cost of the phone call is also comparatively cheap, so also serve the effect of saving telephone expenses.
Certain authorized user can also arrange oneself pattern, and as general mode and roam mode, general mode is as above-mentioned, do not do special setting, roam mode is then that authorized user uses when strange land, and its set-up mode can see Figure 13, in roam mode, when microprocessor monitors is to GSM network incoming telephone signal, and after being judged as authorized user, the first on-hook of meeting, by SIM card clawback user, concrete mode, see the description above in the present embodiment, can reduce the expense of authorized user strange land call like this.
Embodiment 2: the set model of described authorized user also comprises note set model, microprocessor monitors the GSM incoming information of authorized user by serial ports, judge that it is phone or note, if phone, then answer, and carry out corresponding function setting, if note by the code that user keys in, carry out related setting according to short message content, described short message content is the coded message that and instruction is corresponding.All the other are identical with embodiment 1.
Consulting Figure 12, is software flow figure of the present invention, the systems soft ware course of work: first definition, initialization function and port, and guarantee chip, module are in normal operating conditions.After incoming call, first detection of handset or base, if mobile phone is note or phone in this detection, if note is then directly arranged accordingly.If phone, then determine whether authorized user, only have authorized user just can carry out arranging and call forwarding.

Claims (8)

1. a GSM/PSTN automatic switching device, is characterized in that: the gsm module comprising microprocessor and be connected with microprocessor, PSTN dials and detection module, DTMF decoder module, dtmf code module and analog switch; Wherein,
The external SIM card of described gsm module, power on and automatically identify and connect GSM network, the incoming telephone signal of monitoring mobile phone user, is sent to microprocessor by serial ports;
Described PSTN dialing and detection module, be communicated with PSTN network, monitor the bell signal from PSTN network, and when base ring unanswered, realized PSTN voice to transfer through GSM network by Microprocessor S3C44B0X;
Described analog switch is positioned between gsm module and DTMF decoder module, between gsm module and PSTN network, by the break-make of Microprocessor S3C44B0X switch;
Described microprocessor receives after GSM incoming telephone signal carries out preliminary treatment first, makes device enter normal mode of operation, monitoring incoming telephone signal and bell signal, and processes accordingly;
Described preliminary treatment is: microprocessor detects the incoming telephone signal of the first cellphone subscriber of GSM network, and give tacit consent to it for keeper's number, incoming call answering signal, enters at the beginning of keeper and establish pattern; Establish the instruction in pattern to comprise at the beginning of described keeper and add authorized user, delete authority user, the setting of GSM calls transfer number, the setting of PSTN calls transfer number, login password setting;
Entering the signal transacting after normal mode of operation is:
If PSTN network phone calls signal, call out GSM calls transfer number by SIM card, and open the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module;
If GSM incoming telephone signal, be judged as that authorized user is just answered, and the input of the mobile phone key of user enters set model or Transfer Mode, instruction setting is carried out when set model, or in Transfer Mode, use dtmf code and by PSTN network dial, then connect the voice channel of PSTN network and gsm module; The instruction of described set model comprises the setting of GSM calls transfer number and the setting of PSTN calls transfer number.
2. GSM/PSTN automatic switching device according to claim 1, it is characterized in that: in preliminary treatment, incoming call answering signal, enter to set at the beginning of keeper the concrete mode of pattern as: GSM incoming call answered by microprocessor, open the analog switch between gsm module and DTMF decoder module, connect gsm module and DTMF decoder module, keeper inputs the DTMF code of corresponding instruction by mobile phone key, processes by sending in microprocessor after DTMF decoding module decodes.
3. GSM/PSTN automatic switching device according to claim 1, it is characterized in that: described in determine whether that the concrete grammar of authorized user is, after microprocessor detects GSM incoming call index signal, gsm module can send the number information of incoming call to microprocessor by serial ports, microprocessor goes out caller ID by the information extraction received serial ports, compare with the number that stored in system again, determine whether authorization number.
4. GSM/PSTN automatic switching device according to claim 1, is characterized in that: the concrete mode entering set model or Transfer Mode according to the mobile phone key input of authorized user is:
(1) after answering, open the analog switch between gsm module and DTMF decoder module, be communicated with gsm module and DTMF decoder module;
(2) the DTMF code of mobile phone key input is decoded by Microprocessor S3C44B0X DTMF decoder module;
(3) if be decoded as default instruction, enter set model, and operate according to the DTMF code that authorized user mobile phone inputs corresponding instruction; If be decoded as telephone number to be transferred, enter Transfer Mode, described Transfer Mode is:
A. microprocessor will treat that forwarding telephone number is sent to dtmf code module, be transformed to analog signal, dial through PSTN module;
B. after putting through, disconnect the analog switch between gsm module and DTMF decoder module, open the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module.
5. GSM/PSTN automatic switching device according to claim 1, is characterized in that: described analog switch model is CD4066.
6. GSM/PSTN automatic switching device according to claim 1, is characterized in that: the set model of described authorized user also comprises roam mode setting, and after entering roam mode, Transfer Mode is:
(1) microprocessor detects the GSM incoming telephone signal of authorized user, first on-hook, then by this authorized user of SIM card clawback;
(2) authorized user is answered, and inputs the telephone number that will transfer;
(3) telephone number is sent to dtmf code module re-encodes by microprocessor, and coding is sent to PSTN dial module;
(4) after putting through, serial ports can return the state information put through to microprocessor, now disconnects the analog switch between gsm module and DTMF decoder module, opens the analog switch between PSTN network and gsm module, connect the voice channel of PSTN network and gsm module.
7. GSM/PSTN automatic switching device according to claim 1, it is characterized in that: the set model of described authorized user also comprises note set model, microprocessor monitors the GSM incoming telephone signal of authorized user by serial ports, judge that it is phone or note, if phone, then answer, and carry out corresponding function setting by the code that user keys in, if note, carry out related setting according to short message content, described short message content is the coded message that and instruction is corresponding.
8. GSM/PSTN automatic switching device according to claim 1, is characterized in that: just establish the instruction in pattern also to comprise amendment and log in password, keeper's recovery system and amendment administrator's password.
CN201510023811.8A 2015-01-19 2015-01-19 GSM/PSTN (global system for mobile communication/public switched telephone network) automatic switching device Expired - Fee Related CN104639744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510023811.8A CN104639744B (en) 2015-01-19 2015-01-19 GSM/PSTN (global system for mobile communication/public switched telephone network) automatic switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510023811.8A CN104639744B (en) 2015-01-19 2015-01-19 GSM/PSTN (global system for mobile communication/public switched telephone network) automatic switching device

Publications (2)

Publication Number Publication Date
CN104639744A true CN104639744A (en) 2015-05-20
CN104639744B CN104639744B (en) 2017-02-22

Family

ID=53218031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510023811.8A Expired - Fee Related CN104639744B (en) 2015-01-19 2015-01-19 GSM/PSTN (global system for mobile communication/public switched telephone network) automatic switching device

Country Status (1)

Country Link
CN (1) CN104639744B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056722A (en) * 2016-07-01 2016-10-26 孟贤领 Remote-control intelligent door lock based on cellphone card and using method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080107051A1 (en) * 2006-11-07 2008-05-08 Mediatek Inc. System and method for operating a portable electronic device
EP1931153A2 (en) * 2006-12-04 2008-06-11 Ivaylo Emilov Velev System with a device for combining the operation fo GSM phones with internet telephony
CN201345746Y (en) * 2009-01-16 2009-11-11 厦门敏讯信息技术股份有限公司 Dual-mode phone
CN102056350A (en) * 2009-11-04 2011-05-11 陈樟卿 Remote transfer mobile phone communication system
CN202873078U (en) * 2012-09-28 2013-04-10 深圳市广和通实业发展有限公司 GSM/GPRS industrial module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080107051A1 (en) * 2006-11-07 2008-05-08 Mediatek Inc. System and method for operating a portable electronic device
EP1931153A2 (en) * 2006-12-04 2008-06-11 Ivaylo Emilov Velev System with a device for combining the operation fo GSM phones with internet telephony
CN201345746Y (en) * 2009-01-16 2009-11-11 厦门敏讯信息技术股份有限公司 Dual-mode phone
CN102056350A (en) * 2009-11-04 2011-05-11 陈樟卿 Remote transfer mobile phone communication system
CN202873078U (en) * 2012-09-28 2013-04-10 深圳市广和通实业发展有限公司 GSM/GPRS industrial module

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056722A (en) * 2016-07-01 2016-10-26 孟贤领 Remote-control intelligent door lock based on cellphone card and using method

Also Published As

Publication number Publication date
CN104639744B (en) 2017-02-22

Similar Documents

Publication Publication Date Title
JPH0771335B2 (en) Cellular data telephone and data communication method thereof
JPS59160360A (en) Communication system
KR101013368B1 (en) Method and apparatus for processing multiparty call
CN104184911A (en) Apparatus and communication method for realizing bluetooth mode telephone conference
KR20040054061A (en) Internet Phone System and Method for a Mobile Telephone Service
CN102137508A (en) Method, system and device for communicating between trunking communication system and conventional wireless system
CN201274576Y (en) Dual-mode telephone
CN102857731A (en) Method for identity validation and automatic answering of 3G wireless communication module video telephone call
CN104639744B (en) GSM/PSTN (global system for mobile communication/public switched telephone network) automatic switching device
CN103167173A (en) Fixed network access method of mobile phone call, mobile phone and fixed-line telephone supporting method
CN105306744B (en) Method and extension set conversion equipment and telephone switching system of the wireless terminal as extension set
EP2523438B1 (en) Mobile terminal
CN103856649A (en) Household appliance remote control system based on telephone
KR100728403B1 (en) Wireless PBX system and method for making a call in wireless PBX system
CN109167887A (en) Binary channels broad band intelligent CPE control system with interactive function and wireless communication function
CN209250731U (en) Binary channels broad band intelligent CPE control device with interactive function and wireless communication function
US20050174992A1 (en) Landline telephones converted to transmit and receive cell phones telecommunication
US20080049721A1 (en) 3-in-1 automatic call forward system
CN210490944U (en) Fixed wireless telephone with extension interface
CN210578620U (en) Gateway device
CN101969611A (en) Method for transmitting communication information between communication devices by utilizing internet
JPH04293393A (en) Service circuit for absentee subscriber in exchange system and its method
CN202103714U (en) Double-mode CDMA wireless fixed phone
CN100388728C (en) Apparatus and method for implementing end-to-end encrypted communication between line telephone and GSM handset
CN101478834B (en) Network connector for implementing interconnection between the conventional and cluster communication system based on GSM/CDMA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170222

CF01 Termination of patent right due to non-payment of annual fee