CN104158982A - Method for converting numbers of mobile phone and wire telephone - Google Patents

Method for converting numbers of mobile phone and wire telephone Download PDF

Info

Publication number
CN104158982A
CN104158982A CN201410337275.4A CN201410337275A CN104158982A CN 104158982 A CN104158982 A CN 104158982A CN 201410337275 A CN201410337275 A CN 201410337275A CN 104158982 A CN104158982 A CN 104158982A
Authority
CN
China
Prior art keywords
bluetooth
telephone
chip
described bluetooth
terminal
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.)
Pending
Application number
CN201410337275.4A
Other languages
Chinese (zh)
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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN201410337275.4A priority Critical patent/CN104158982A/en
Publication of CN104158982A publication Critical patent/CN104158982A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method for converting numbers of a mobile phone and a wire telephone, and belongs to the technical field of wireless communication. The method is realized by a Bluetooth relay gateway platform comprising a public switched telephone network (PSTN), a Bluetooth relay gateway and at least one Bluetooth terminal; a Bluetooth chip and a telephone circuit module are arranged in the Bluetooth relay gateway; the Bluetooth terminal is in wireless connection with the Bluetooth relay gateway through the Bluetooth chip; the Bluetooth chip is in wired connection with the PSTN through the telephone circuit module, and on the basis that the dial or incoming call attribution is determined, both-way communication between the Bluetooth terminal and the PSTN is realized by adding a telephone number conversion code before a telephone number. The method has the advantages that the communicate quality is stable and reliable, synchronization is facilitated, and phone bill is reduced.

Description

A kind of number translated method of mobile phone and telephone
Technical field
A kind of number translated method that the present invention relates to mobile phone and telephone, belongs to wireless communication technology field.
Background technology
In recent years, China's mobile communication technology develops rapidly, and mobile subscriber has exceeded 500,000,000.But, due to decay, reflection, the interference to mobile communication signal such as building, glass, metal exterior wall, finally cause Bluetooth terminal to receive jitter.In order to make up the loss of mobile communication signal under adverse circumstances, need to improve transmitting power, thereby make mobile communication equipment energy consumption in use increasing.It is estimated, China in 2007 only GSM base station power consumption will approach 3,200,000,000 kilowatt hours, the base station electricity charge will approach 2,000,000,000 yuan, this does not also comprise the energy consumptions such as air-conditioning, power transformation, transmission, sending 3 degree electricity according to 1 kilogram of standard coal calculates, GSM base station, the whole nation need to be expended 1,050,000 tons of coals every year, and this will produce important impact to environment.Meanwhile, the electromagnetic pollution of its generation inevitably can work the mischief to the mankind's health.
Comparatively speaking, stable fixed-line telephone network, if public switch telephone network (PSTN) is current most popular wired network system, taking circuit switching as information exchange system, the telecommunications network taking phone as main business.Its advantage is: overlay area is wide, use is simple, speech quality is good, telephone expenses are lower, networking is easy.Telephone network has become people's daily life, the necessary transmission medium of working.
Current, China has stepped into world communication big country, and the two-fold advantage that how to merge efficiently mobile communication and fixed-line telephone network is the only way of its future development.Bluetooth technology belongs to a kind of short-range radio company connection technology, its objective is the communication that a low cost, high reliability, support better quality voice transfer are provided, and can be used as the optimal case that connects mobile communication and fixed-line telephone network.Bluetooth terminal can carry out voice communication by bluetooth relaying and outside public switch telephone network PSTN, and between Bluetooth terminal and bluetooth relaying, utilizes bluetooth to set up respectively signaling and voice wireless connections.But the number disunity between Bluetooth terminal and telephone is a key issue urgently to be resolved hurrily.
Based on above-mentioned background, the invention provides a kind of number translated method of mobile phone and telephone.The method can complete the number unification between mobile phone Cellular Networks and landline telephone switching network on the one hand, after bluetooth cellular phone user is connected by bluetooth and landline telephone switching network, answer easily and the call treatment business such as calling, without the difference of considering between Cellular Networks and the telephone number of landline telephone switching network; All right identification number ownership place automatically adds IP number, for user saves telephone expenses before telephone number on the other hand.
Summary of the invention
The object of the present invention is to provide a kind of number translated method of mobile phone and telephone.
Feature of the present invention is with mobile phone dialing, while receiving calls, can automatically between Outgoing Number, caller ID and cable phone number, change, utilize the rule such as prefix, area code, realize the unified of number under mobile phone mobile network and line relay environment and use.
The invention is characterized in, be to realize according to the following steps successively on a platform for the bluetooth Tandem Gateway of mobile phone and cable phone number conversion:
Step (1), the bluetooth Tandem Gateway described in building, comprising: a public switch telephone network PSTN, a bluetooth Tandem Gateway and at least one Bluetooth terminal:
Bluetooth Tandem Gateway comprises, comprising: bluetooth processing module and telephone circuit module, wherein:
Bluetooth processing module, comprise: a Bluetooth chip, an antenna element, an external Flash flash memory, an interface circuit, a key zone and a tell tale display, wherein: Bluetooth chip adopts the Blue core chip of CSR company of Britain, formed by MCU and transceiver, be provided with the virtual serial port of communicating by letter with Bluetooth terminal; External Flash flash memory, number storing conversion program and ownership place database;
Telephone circuit module, comprising: a single-chip microcomputer, a memory, a dialing tone frequency circuit, a power supply and a serial port circuit, wherein: memory, the program of storing call circuit; Dialing tone frequency circuit, input is connected with external telephone wire, and output is connected with the input interface of the two-way call tone currents PCM in interface circuit described in described bluetooth processing module; Serial port circuit, has the UART serial interface of a universal asynchronous receiver-transmitter, carries out communicating by letter of interactive command by interface circuit with described Bluetooth chip; Single-chip microcomputer, interconnects respectively with described dialing tone frequency circuit, memory, serial port circuit;
Step (2), the initialization of described bluetooth processing module:
Arrange: the agential Status Flag that logs in of Bluetooth terminal number, service access code, IP number, bimodulus traffic handoff parameter and Bluetooth terminal, wherein: service access code is the prefix for using in the time that bimodulus traffic switch mode is carried out in described public switch telephone network PSTN registration; IP number is made as 17911 in the time being linked into described public switch telephone network PSTN, is the office code of inner office, and goes out office code when access internal institution telephone;
Step (3), realizes being connected of described Bluetooth terminal and bluetooth processing module in described bluetooth Tandem Gateway successively according to the following steps:
Step (3.1), described Bluetooth terminal to neighboring scan, detects the signal of communication that meets short-distance wireless Bluetooth protocol whether receiving from described Bluetooth chip according to service discovery protocol:
If do not receive, connection failure;
If receive, send to described Bluetooth chip the signal of communication that meets short distance Bluetooth protocol, connect;
Step (3.2), the MCU processor in described Bluetooth chip is retrieved the ownership place database of described external Flash flash memory, whether has the configuration information of described Bluetooth terminal:
If no, connection failure;
If have, described Bluetooth terminal and Bluetooth chip are set up physical link, logical links and transportable communication system TCS link, send and confirm to connect effective answer signal;
Step (3.3), described Bluetooth terminal sends the usufructuary information of acquisition request to described Bluetooth chip, and described Bluetooth chip permission is used and sends response message;
Step (4), described Bluetooth terminal is realized the number translated in when dialing successively according to the following steps, realizes described Bluetooth terminal by the dial-up connection of short-distance wireless relay and described public switch telephone network PSTN:
Step (4.1), described Bluetooth terminal sends request the work state information of dial message to described Bluetooth chip;
Step (4.2), described Bluetooth chip is received after the request dial message from described Bluetooth terminal, sends response message and notifies described telephone circuit module check telephone line service condition by described UART serial ports, then off-hook,
Step (4.3), described telephone circuit module is differentiated circuit busy-idle condition:
If line be busy, by described UART serial ports, to the busy instruction of described Bluetooth chip transmitting line, described Bluetooth chip adopts Bluetooth protocol to notify described Bluetooth terminal by short-distance wireless mode, and request is dialled unsuccessfully;
If the circuit spare time, off-hook, to the instruction of described Bluetooth chip transmitting line free time, then sends out dialing tone, Bluetooth chip notifies described Bluetooth terminal that earphone path and synchronous connection oriented link SCO are coupled together to receive in-band tone by process message again, and starts dialing;
Step (4.4), described Bluetooth chip is received after the telephone number of described Bluetooth terminal, carries out according to the following steps successively number translated:
Step (4.4.1), judge the type of number according to the office code as prefix and area code: be phone number or landline telephone number:
Phone number is taked E164 coding, is made up of fixed code CC+ Mobile Access Code MAC+ homing position identification code HLR+ cellphone subscriber ABCD;
Landline telephone, with numeral 2~8 beginnings, is less than 8 and should serves as local landline telephone, and except 400,800, and toll number code length exceedes 10;
Step (4.4.2), if phone number is compared the central phone ownership place database of described external Flash flash memory, identification is local handset number or nonlocal phone number:
If whether local number, differentiating is intramural: if intramural, before number, add office code, if not intramural, maintain the original state;
If nonlocal phone number recalls bluetooth number translated program from described external Flash flash memory, add Plus "0" and IP number to before phone number;
Step (4.4.3), if fixed telephone number, judgement is local or nonlocal:
If whether local number, by being intramurally to process respectively by phone described in step (4.4.2);
If nonlocal number adds default IP number before number;
Step (4.5), described Bluetooth chip completes after number translated, send to the single-chip microcomputer of described telephone circuit module by described UART serial ports, remove to control dialing tone frequency circuit, complete the dialing of PSTN by telephone wire, set up telephone circuit module and be connected with PSTN, complete Bluetooth terminal dialing procedure;
Step (5), realizes according to the following steps successively described Bluetooth terminal and answers PSTN incoming call, completes the number translated of incoming call:
Step (5.1), when PSTN incoming call, telephone circuit module detects incoming call time and caller ID under described Single-chip Controlling, and is transferred to described Bluetooth chip by RS232 interface;
Step (5.2), described Bluetooth chip judges whether it is internal institution number by the figure place of described caller ID:
If 5 is internal institution number, the unit's of adding office code before unit number;
If be greater than 7, be phone number, and identify homing address of calling number, before phone number, add ownership place;
Step (5.3), the telephone number that described Bluetooth chip obtains incoming call time and step (5.2) sends to Bluetooth terminal by virtual interface;
Step (5.4), described Bluetooth terminal receives after the number information of step (5.3), comparison telephone directory:
If caller ID is stored, show name or unit name and incoming call time that caller ID is corresponding;
If store at caller ID end, show ownership place, caller ID and the incoming call time of caller ID;
Step (5.5), if described Bluetooth terminal answered phone described bluetooth relaying and Bluetooth terminal complete Signalling exchange and enter talking state by TCS agreement, and notify described telephone circuit module off-hook;
Step (5.6), described Bluetooth terminal starts to answer the called telephone from PSTN by bluetooth Tandem Gateway, after end of conversation, hangs up the telephone.
Number translated method on a kind of mobile phone dialing, dial-out while receiving calls, caller ID and the telephone proposing, its effect is:
1, utilize the method, Bluetooth terminal can complete by PSTN the call treatment of voice call business, only needs to pay the telephone expenses of fixed-line telephone network, and needn't pay expensive mobile phone charge;
Because cellphone subscriber is linked into PSTN by the mode of wireless blue tooth, complete the business such as dial, receive calls, the telephone expenses of its call are all to carry out charging according to the standard of fixed-line phone network.The rate of PSTN want cheap compared with Cellular Networks under normal circumstances, and speech quality is more stable reliable.
2, bluetooth cellular phone user, without the difference of considering between Cellular Networks and the telephone number rule of cable telephone network, keeps cellphone subscriber's dialing custom;
Cellphone subscriber's general custom is in contact person's number is kept on mobile phone, and the form that number is preserved is generally applicable to Cellular Networks, before the number of preserving as mobile phone, often add+186, such phone number form dials in fixed-line telephone network, does not sometimes recognize.The dialing numbers mode of the mode of mobile phone dialing number and fixed line is also different in addition, as cellphone subscriber dial nonlocal phone number need to be before number Plus "0", and while dialing nonlocal phone number with Telephone set, need to be before nonlocal phone number Plus "0", otherwise dial obstructed.And adopted after number translated method, cellphone subscriber does not need to consider these, keeps preferably cellphone subscriber's use habit.
3, identifying processing local number and nonlocal number, add IP phone section automatically, saves long distance telephone fee.Most people wish telephone expenses flowers more few better of oneself, normally add IP number dialing before toll number wittingly, because IP phone wants cheap, certainly neglect sometimes this point.Utilize this invention, can automatically help user to identify nonlocal number, and automatically add IP number, reach the object of saving telephone expenses.
Brief description of the drawings
Fig. 1 is the system architecture diagram of the number translated method of the mobile phone that proposes of the present invention and telephone.
Fig. 2 is the structured flowchart of bluetooth processing module in the inventive method.
Fig. 3 is telephone circuit modular structure block diagram in the inventive method.
Fig. 4 is Bluetooth terminal and the bluetooth processing module flow chart that connects in the inventive method.
Fig. 5 is Bluetooth terminal dialing process figure in the inventive method.
Fig. 6 is the Bluetooth terminal flow chart that receives calls in the inventive method.
Fig. 7 is bluetooth processing module conversion telephone number flow chart in the inventive method.
Fig. 8 is bluetooth processing module translation homing address of calling number flow chart.
Fig. 9 is program flow chart of the present invention.
Embodiment
The present invention contains following steps successively:
Step (1), builds a platform based on bluetooth Tandem Gateway;
The platform based on bluetooth Tandem Gateway that the present invention proposes, comprising:
A public switch telephone network (PSTN), is a kind of circuit-switched network for voice communication, for wired access network, call request in Access Network or request of data is routed to another access user;
A bluetooth Tandem Gateway, for inputting the match information of Bluetooth terminal, set up the matching relationship of short-distance wireless bluetooth Tandem Gateway and Bluetooth terminal, receive voice and signaling-information from public switch telephone network, the voice that receive and signaling-information are converted to the signal of communication that meets short-distance wireless Bluetooth protocol, and send to the Bluetooth terminal matching, receive the signal of communication that meets short-distance wireless Bluetooth protocol from the Bluetooth terminal matching simultaneously, this signal of communication is converted to the signal of communication that meets public switch telephone network transmission standard, and send to PSTN,
One or more Bluetooth terminals, for receiving the signal of communication that meets short-distance wireless Bluetooth protocol from bluetooth Tandem Gateway, and send the signal of communication that meets short-distance wireless Bluetooth protocol to bluetooth Tandem Gateway;
In above-mentioned platform, Bluetooth terminal is connected with public switch telephone network by short-distance wireless relay; Described public switch telephone network and bluetooth Tandem Gateway communicate by wired mode; Described Bluetooth terminal adopts Bluetooth protocol to communicate by short-distance wireless mode and bluetooth Tandem Gateway;
In above-mentioned platform, described bluetooth Tandem Gateway comprises:
Bluetooth processing module, be connected with Bluetooth terminal with telephone circuit module respectively, for receiving respectively the work state information of telephone circuit module and Bluetooth terminal, and send work order to telephone circuit module and Bluetooth terminal respectively, the signal of communication that meets short-distance wireless Bluetooth protocol of the Bluetooth terminal from matching is converted to the signal of communication that meets PSTN transmission standard, will be converted to the signal of communication that meets short-distance wireless Bluetooth protocol from the signal of communication of PSTN;
Telephone circuit module, is connected with bluetooth processing module with public switch telephone network respectively, for receiving the signal of communication of PSTN, and sends signal of communication to PSTN, receives the work order of bluetooth processing module, and sends work state information to bluetooth processing module;
Described bluetooth processing module comprises:
A Bluetooth chip, the Bluecore chip that adopts Britain CSR company to release, adopts the integrated radio frequency, base band of CMOS technique, with the MCU of whole integrated with Bluetooth protocol stacks and adopt the transceiver of CMOS technique;
An external FLASH memory device, for storing program and the database file of exploitation, the number translated program in system and ownership place database are all kept on external FLASH memory device;
An interface circuit, provides the UART serial ports and the pcm audio data stream interface that are connected with telephone circuit module;
A key zone and a tell tale display, for strengthening the human-computer interaction function of bluetooth module, improve the operability of bluetooth processing module and good interactivity;
Described telephone circuit module comprises:
A single-chip microcomputer, for the treatment of the synthetic operation of controlling between each modular circuit;
A memory, for the program of storing call circuit;
A dialing tone frequency circuit, for external telephone wire, realizes the function such as incoming call, dialing detection, and two-way call audio frequency PCM stream is provided, and delivers to bluetooth processing module;
A power circuit provides power supply to telephone circuit module;
A serial port circuit provides UART serial interface, carries out communicating by letter of interactive command with bluetooth processing module;
Step (2), the initialization of bluetooth processing module:
Step (2.1), relevant parameter is set, comprise: Bluetooth terminal number, service access code (carrying out the prefix of bimodulus traffic switching to network registration), IP number (as to be linked into PSTN be that the IP number of Netcom is made as 17911, be telecommunications IP number be made as 17900), carry out the parameter of bimodulus traffic switching, the state etc. that logs in of Bluetooth terminal;
Step (2.2), judges whether the device of this invention of application is intercommunication phone, if so, sets in advance internal institution office code (if Tsing-Hua University's inside office code is " 627 ") and goes out office code (as 0 and 9);
Step (3), realizes Bluetooth terminal and bluetooth processing module connects successively according to the following steps:
Step (3.1), the working procedure scanning periphery on Bluetooth terminal, detects bluetooth processing module;
Step (3.2), if until overtime Bluetooth terminal is not found bluetooth processing module yet, connects and sets up unsuccessfully;
Step (3.3), if Bluetooth terminal is found bluetooth processing module, the working procedure on Bluetooth terminal is set up data with bluetooth processing module and is connected;
Step (3.4), bluetooth processing module is searched the configuration information that whether has this Bluetooth terminal;
Step (3.5), if the configuration information of this Bluetooth terminal not connects and sets up unsuccessfully;
Step (3.6), if there is the configuration information of this Bluetooth terminal, Bluetooth terminal and bluetooth processing module are set up physical link, logical links, TCS link;
Step (3.7), Bluetooth terminal is to the bluetooth processing module acquisition request right to use;
Step (4) realizes Bluetooth terminal dialing process successively according to the following steps, and completes corresponding number translated in this flow process:
Step (4.1), Bluetooth terminal sends request dial message to bluetooth processing module;
Step (4.2), bluetooth processing module receives after this request message by virtual serial port, gives a response, and notifies telephone circuit module check telephone line service condition off-hook;
Step (4.3), telephone circuit module is differentiated circuit busy idle condition;
Step (4.3.1), busy if telephone circuit module detects telephone line, give the busy instruction of bluetooth processing module transmitting line, bluetooth processing module reinforms Bluetooth terminal, and request is dialled unsuccessfully;
Step (4.3.2), if telephone circuit module detects the telephone line free time, completes off-hook, and gives command instruction and the dialing tone of bluetooth processing module transmitting line free time;
Step (4.4), bluetooth processing module is obtaining after the message of line idle, notify Bluetooth terminal earphone path can be linked and couples together to receive in-band tone with synchronous connection oriented link SCO by process message, Bluetooth terminal starts dialing, and bluetooth processing module is accepted telephone number;
Step (4.5), bluetooth processing module receives after telephone number, and bluetooth processing module starts to carry out number translated, and step is as follows;
Check numbers prefix (office code) and area code of step (4.5.1) analyzed, and judges the type of number, knows method for distinguishing and is:
Phone number is taked E.164 coded system, and its structure is: CC+MAC+H0H1H2H3+ABCD, and wherein, CC is national code, China is used 86; MAC is Mobile Access Code, for example: adopt 133 network No. schemes; H0H1H2H3 is HLR identification code, and by Cellular Networks, operator distributes unitedly, for identifying place name; ABCD is cellphone subscriber number, is distributed voluntarily by each HLR (attaching position register HLR is responsible for the database of mobile subscriber's management);
Fixed telephone number is often local call (400,700,800 etc. except) with 2-8 beginning and number long phone that is no more than 8, and toll number code length exceedes 10, and normally before toll free number, adding trunk prefix is area code;
Step (4.5.2), if judge that number is phone number, is compared phone ownership place database, identifies local handset number or nonlocal phone number:
Step (4.5.3) is if local handset number performs step (4.5.8);
Step (4.5.4) is if nonlocal phone number, and bluetooth number translated program is added Plus "0" and IP number before to phone number, carries out the 8th) step;
Step (4.5.5), can be according to the length of number if judge that number is fixed telephone number, can judge that number is local Local Number or toll number.
Step (4.5.6), if number is Local Number, performs step (4.5.8);
Step (4.5.7), if number is toll number, is added default IP number before number,
Step (4.5.8) is according to initialization setting in advance, and whether be intramural, whether will before number, add office code if differentiating telephone line;
Step (4.5.9), if telephone line is intramural, will add office code before number;
Step (4.5.10), if telephone line is not intramural, need not add office code before number;
Step (4.6), bluetooth processing module completes after number translated, gives telephone circuit module by serial ports;
Step (4.7), telephone circuit module completes the dialing of PSTN by telephone wire;
Step (4.8), telephone circuit module and PSTN connect, and complete Bluetooth terminal dialing procedure;
Step (5) realizes according to the following steps successively Bluetooth terminal and answers the flow process of PSTN incoming call, and completes corresponding number translated processing:
Step (5.1), when PSTN incoming call, telephone circuit module receives the incoming call details (comprising: the time of incoming call and caller ID) of standard;
Step (5.2), telephone circuit module is transferred to the processing of bluetooth processing module by incoming information by RS232 serial interface;
Step (5.3), bluetooth processing module judges according to the length of number whether caller ID is internal institution number, if the number of Tsing-Hua University inside is 5, and other number exceedes 7 conventionally as phone number;
Step (5.3.1), if judge, caller ID is internal institution number, before unit number, adds the unit office code setting in advance, polishing number;
Step (5.3.2), if the caller ID of judgement is intramural number, bluetooth processing module is translated processing to caller ID, identifies incoming call number attribution;
Step (5.4), bluetooth processing module together with incoming call time and telephone number, sends to Bluetooth terminal by virtual serial port by the result of processing;
Step (5.5), Bluetooth terminal receives after number information, comparison telephone directory;
Step (5.5.1), stores if caller ID is telephone directory, demonstrates incoming call corresponding name or unit name and the incoming call time of number.
Step (5.5.2), if caller ID, not in telephone directory, only shows ownership place, telephone number and the incoming call time of caller ID in terminal;
Step (5.6), whether Bluetooth terminal receives calls;
Step (5.6.1), Bluetooth terminal does not receive calls, and receives calls unsuccessfully, records missed call number and incoming call time;
Step (5.6.2), Bluetooth terminal receives calls, after Bluetooth terminal receives calls, bluetooth Tandem Gateway and Bluetooth terminal equipment have specified Signalling exchange and have entered talking state according to TCS agreement, after this bluetooth processing module notice telephone circuit module off-hook;
Step (5.7), Bluetooth terminal starts to answer the called telephone from PSTN by bluetooth Tandem Gateway, after end of conversation, hangs up the telephone.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described as follows.
The System Framework basic structure that realizes mobile phone and cable phone number conversion method of the present invention, referring to accompanying drawing 1, contains in this basic structure:
A public switch telephone network (PSTN), is a kind of circuit-switched network for voice communication, for wired access network, call request in Access Network or request of data is routed to another access user;
A bluetooth processing module, be connected with Bluetooth terminal with telephone circuit module respectively, for receiving respectively the work state information of telephone circuit module and Bluetooth terminal, and send work order to telephone circuit module and Bluetooth terminal respectively, the signal of communication that meets short-distance wireless Bluetooth protocol of the Bluetooth terminal from matching is converted to the signal of communication that meets PSTN transmission standard, will be converted to the signal of communication that meets short-distance wireless Bluetooth protocol from the signal of communication of PSTN;
A telephone circuit module, be connected with bluetooth processing module respectively at public switch telephone network, for receiving the signal of communication of PSTN, and send signal of communication to PSTN, receive the work order of bluetooth processing module, and send work state information to bluetooth processing module;
One or more Bluetooth terminals, for receiving the signal of communication that meets short-distance wireless Bluetooth protocol from bluetooth Tandem Gateway, and send the signal of communication that meets short-distance wireless Bluetooth protocol to bluetooth Tandem Gateway.
Bluetooth processing module basic structure of the present invention, referring to accompanying drawing 2, contains in this basic structure:
A Bluetooth chip, the Bluecore chip that adopts Britain CSR company to release, adopts the integrated radio frequency, base band of CMOS technique, with the MCU of whole integrated with Bluetooth protocol stacks and adopt the transceiver of CMOS technique.
An external FLASH memory device, for storing program and the database file of exploitation.Number translated program in system and ownership place database are all kept on external FLASH memory device.
An interface circuit, provides the UART serial ports and the pcm audio data stream interface that are connected with telephone circuit module.
A key zone and a tell tale display, for strengthening the human-computer interaction function of bluetooth module, improve the operability of bluetooth processing module and good interactivity.
Telephone circuit module basic structure of the present invention, referring to accompanying drawing 3, contains in this basic structure:
A single-chip microcomputer, for the treatment of the synthetic operation of controlling between each modular circuit.
A memory, for the program of storing call circuit.
A dialing tone frequency circuit, for external telephone wire, realizes the function such as incoming call, dialing detection, and two-way call audio frequency PCM stream is provided, and delivers to bluetooth processing module.
A power circuit provides power supply to telephone circuit module.
A serial port circuit provides UART serial interface, and carry out interactive command with bluetooth processing module and communicate by letter,
Fig. 4 is Bluetooth terminal and the bluetooth processing module flow chart that connects in system of the present invention.As shown in Figure 4, comprise the following steps:
1) scanning of the working procedure on Bluetooth terminal periphery, detects bluetooth processing module;
2), if until overtime Bluetooth terminal is not found bluetooth processing module yet, connect and set up unsuccessfully;
3), if Bluetooth terminal is found bluetooth processing module, the working procedure on Bluetooth terminal is set up data with bluetooth processing module and is connected;
4) bluetooth processing module is searched the configuration information that whether has this Bluetooth terminal;
5) if the configuration information of this Bluetooth terminal not connects and sets up unsuccessfully;
6) if there is the configuration information of this Bluetooth terminal, Bluetooth terminal and bluetooth processing module are set up physical link, logical links, TCS link;
7) Bluetooth terminal is to the bluetooth processing module acquisition request right to use;
Fig. 5 is Bluetooth terminal dialing process figure in system of the present invention.As shown in Figure 5, comprise the following steps:
1) Bluetooth terminal sends request dial message to bluetooth processing module;
2) bluetooth processing module receives after this request message by virtual serial port, gives a response, and notifies telephone circuit module check telephone line service condition off-hook;
3) telephone circuit module is differentiated circuit busy idle condition;
3.1) busy if telephone circuit module detects telephone line, give the busy instruction of bluetooth processing module transmitting line, bluetooth processing module reinforms Bluetooth terminal, and request is dialled unsuccessfully;
3.2) if telephone circuit module detects the telephone line free time, complete off-hook, and give command instruction and the dialing tone of bluetooth processing module transmitting line free time;
4) bluetooth processing module is obtaining after the message of line idle, notifies Bluetooth terminal earphone path can be linked and couples together to receive in-band tone with SCO by process message, and Bluetooth terminal starts dialing, and bluetooth processing module is accepted telephone number;
5) bluetooth processing module receives after telephone number, and bluetooth processing module completes number translated;
6) bluetooth processing module completes after number translated, gives telephone circuit module by serial ports;
7) telephone circuit module completes the dialing of PSTN by telephone wire;
8) telephone circuit module and PSTN connect, and complete Bluetooth terminal dialing procedure.
If Fig. 6 is the Bluetooth terminal flow chart that receives calls, comprise step:
1), when PSTN sends a telegram here, telephone circuit module receives the incoming call details (comprising: the time of incoming call and caller ID) of standard;
2) telephone circuit module is transferred to the processing of bluetooth processing module by incoming information by RS232 serial interface;
3) bluetooth processing module judges according to the length of number whether caller ID is internal institution number, and if the number of Tsing-Hua University inside is 5, and other number exceedes 7 conventionally as phone number;
3.1) if judge, caller ID is internal institution number, before unit number, adds the unit office code setting in advance, polishing number;
3.2) if the caller ID of judgement is intramural number, bluetooth processing module is translated processing to caller ID, identifies incoming call number attribution;
4) bluetooth processing module, by the result of processing together with incoming call time and telephone number, sends to Bluetooth terminal by virtual serial port;
5) Bluetooth terminal receives after number information, comparison telephone directory;
5.1), if caller ID is telephone directory to be stored, demonstrate incoming call corresponding name or unit name and the incoming call time of number.
5.2) if caller ID, not in telephone directory, only shows ownership place, telephone number and the incoming call time of caller ID in terminal;
6) whether Bluetooth terminal receives calls;
6.1) Bluetooth terminal does not receive calls, and receives calls unsuccessfully, records missed call number and incoming call time;
6.2) Bluetooth terminal receives calls, and after Bluetooth terminal receives calls, bluetooth Tandem Gateway and Bluetooth terminal equipment have specified Signalling exchange and entered talking state according to TCS agreement, after this bluetooth processing module notice telephone circuit module off-hook;
7) Bluetooth terminal starts to answer the called telephone from PSTN by bluetooth Tandem Gateway.After end of conversation, hang up the telephone.
Fig. 7 is bluetooth processing module conversion telephone number flow chart, comprises the following steps:
1) bluetooth processing module receives after telephone number, checks numbers and analyzes;
2) check numbers prefix (office code) and area code analyzed, and judges the type of number, and recognition methods is:
Phone number is taked E.164 coded system, and its structure is: CC+MAC+H0H1H2H3+ABCD, and wherein, CC is national code, China is used 86; MAC is Mobile Access Code, for example: adopt 133 network No. schemes; H0H1H2H3 is HLR identification code, and by Cellular Networks, operator distributes unitedly, for identifying place name; ABCD is cellphone subscriber number, is distributed voluntarily by each HLR (attaching position register HLR is responsible for the database of mobile subscriber's management);
Fixed telephone number is often local call (400,700,800 etc. except) with 2-8 beginning and number long phone that is no more than 8, and toll number code length exceedes 10, and normally before toll free number, adding trunk prefix is area code;
3) if judge that number is phone number, compare phone ownership place database, identify local handset number or nonlocal phone number:
4) if local handset number carries out the 9th) step;
5), if nonlocal phone number, bluetooth number translated program is added Plus "0" and IP number before to phone number, carries out the 8th) step;
6) if judge that number is fixed telephone number, can be according to the length of number, can judge that number is local Local Number or toll number.
7), if number is Local Number, carry out the 9th) step;
8) if number is toll number, before number, add default IP number,
9), according to initialization setting in advance, whether be intramural, whether will before number, add office code if differentiating telephone line;
10), if telephone line is intramural, to before number, add office code;
11), if telephone line is not intramural, need before number, not add office code.
Fig. 8 bluetooth processing module translation homing address of calling number flow chart
1) from caller ID, extract area code, phone number adopts E.164 coded system, extracts the identification code of mobile phone, and toll number directly extracts area code;
2) whether cycle criterion incoming call area code equates with the number in ownership place database;
3), if can find corresponding area code from ownership place database, just corresponding place name is taken out;
4) if do not find corresponding area code place name in database, with regard to assignment NUL.

Claims (1)

1. a number translated method for mobile phone and telephone, is characterized in that, is to realize according to the following steps successively on a bluetooth Tandem Gateway platform for mobile phone and cable phone number conversion:
Step (1), the bluetooth Tandem Gateway described in building, comprising: a public switch telephone network PSTN, a bluetooth Tandem Gateway and at least one Bluetooth terminal:
Bluetooth Tandem Gateway comprises, comprising: bluetooth processing module and telephone circuit module, wherein:
Bluetooth processing module, comprise: a Bluetooth chip, an antenna element, an external Flash flash memory, an interface circuit, a key zone and a tell tale display, wherein: Bluetooth chip adopts the Blue core chip of CSR company of Britain, formed by MCU and transceiver, be provided with the virtual serial port of communicating by letter with Bluetooth terminal; External Flash flash memory, number storing conversion program and ownership place database;
Telephone circuit module, comprising: a single-chip microcomputer, a memory, a dialing tone frequency circuit, a power supply and a serial port circuit, wherein: memory, the program of storing call circuit; Dialing tone frequency circuit, input is connected with external telephone wire, and output is connected with the input interface of the two-way call tone currents PCM in interface circuit described in described bluetooth processing module; Serial port circuit, has the UART serial interface of a universal asynchronous receiver-transmitter, carries out communicating by letter of interactive command by interface circuit with described Bluetooth chip; Single-chip microcomputer, interconnects respectively with described dialing tone frequency circuit, memory, serial port circuit;
Step (2), the initialization of described bluetooth processing module:
Arrange: the agential Status Flag that logs in of Bluetooth terminal number, service access code, IP number, bimodulus traffic handoff parameter and Bluetooth terminal, wherein: service access code is the prefix for using in the time that bimodulus traffic switch mode is carried out in described public switch telephone network PSTN registration; IP number is made as 17911 in the time being linked into described public switch telephone network PSTN, is the office code of inner office, and goes out office code when access internal institution telephone;
Step (3), realizes being connected of described Bluetooth terminal and bluetooth processing module in described bluetooth Tandem Gateway successively according to the following steps:
Step (3.1), described Bluetooth terminal to neighboring scan, detects the signal of communication that meets short-distance wireless Bluetooth protocol whether receiving from described Bluetooth chip according to service discovery protocol:
If do not receive, connection failure;
If receive, send to described Bluetooth chip the signal of communication that meets short distance Bluetooth protocol, connect;
Step (3.2), the MCU processor in described Bluetooth chip is retrieved the ownership place database of described external Flash flash memory, whether has the configuration information of described Bluetooth terminal:
If no, connection failure;
If have, described Bluetooth terminal and Bluetooth chip are set up physical link, logical links and transportable communication system TCS link, send and confirm to connect effective answer signal;
Step (3.3), described Bluetooth terminal sends the usufructuary information of acquisition request to described Bluetooth chip, and described Bluetooth chip permission is used and sends response message;
Step (4), described Bluetooth terminal is realized the number translated in when dialing successively according to the following steps, realizes described Bluetooth terminal by the dial-up connection of short-distance wireless relay and described public switch telephone network PSTN:
Step (4.1), described Bluetooth terminal sends request the work state information of dial message to described Bluetooth chip;
Step (4.2), described Bluetooth chip is received after the request dial message from described Bluetooth terminal, sends response message and notifies described telephone circuit module check telephone line service condition by described UART serial ports, then off-hook,
Step (4.3), described telephone circuit module is differentiated circuit busy-idle condition:
If line be busy, by described UART serial ports, to the busy instruction of described Bluetooth chip transmitting line, described Bluetooth chip adopts Bluetooth protocol to notify described Bluetooth terminal by short-distance wireless mode, and request is dialled unsuccessfully;
If the circuit spare time, off-hook, to the instruction of described Bluetooth chip transmitting line free time, then sends out dialing tone, Bluetooth chip notifies described Bluetooth terminal that earphone path and synchronous connection oriented link SCO are coupled together to receive in-band tone by process message again, and starts dialing;
Step (4.4), described Bluetooth chip is received after the telephone number of described Bluetooth terminal, carries out according to the following steps successively number translated:
Step (4.4.1), judge the type of number according to the office code as prefix and area code: be phone number or landline telephone number:
Phone number is taked E164 coding, is made up of fixed code CC+ Mobile Access Code MAC+ homing position identification code HLR+ cellphone subscriber ABCD;
Landline telephone, with numeral 2~8 beginnings, is less than 8 and should serves as local landline telephone, and except 400,800, and toll number code length exceedes 10;
Step (4.4.2), if phone number is compared the central phone ownership place database of described external Flash flash memory, identification is local handset number or nonlocal phone number:
If whether local number, differentiating is intramural: if intramural, before number, add office code, if not intramural, maintain the original state;
If nonlocal phone number recalls bluetooth number translated program from described external Flash flash memory, add Plus "0" and IP number to before phone number;
Step (4.4.3), if fixed telephone number, judgement is local or nonlocal:
If whether local number, by being intramurally to process respectively by phone described in step (4.4.2);
If nonlocal number adds default IP number before number;
Step (4.5), described Bluetooth chip completes after number translated, send to the single-chip microcomputer of described telephone circuit module by described UART serial ports, remove to control dialing tone frequency circuit, complete the dialing of PSTN by telephone wire, set up telephone circuit module and be connected with PSTN, complete Bluetooth terminal dialing procedure;
Step (5), realizes according to the following steps successively described Bluetooth terminal and answers PSTN incoming call, completes the number translated of incoming call:
Step (5.1), when PSTN incoming call, telephone circuit module detects incoming call time and caller ID under described Single-chip Controlling, and is transferred to described Bluetooth chip by RS232 interface;
Step (5.2), described Bluetooth chip judges whether it is internal institution number by the figure place of described caller ID:
If 5 is internal institution number, the unit's of adding office code before unit number;
If be greater than 7, be phone number, and identify homing address of calling number, before phone number, add ownership place;
Step (5.3), the telephone number that described Bluetooth chip obtains incoming call time and step (5.2) sends to Bluetooth terminal by virtual interface;
Step (5.4), described Bluetooth terminal receives after the number information of step (5.3), comparison telephone directory:
If caller ID is stored, show name or unit name and incoming call time that caller ID is corresponding;
If store at caller ID end, show ownership place, caller ID and the incoming call time of caller ID;
Step (5.5), if described Bluetooth terminal answered phone described bluetooth relaying and Bluetooth terminal complete Signalling exchange and enter talking state by TCS agreement, and notify described telephone circuit module off-hook;
Step (5.6), described Bluetooth terminal starts to answer the called telephone from PSTN by bluetooth Tandem Gateway, after end of conversation, hangs up the telephone.
CN201410337275.4A 2014-07-15 2014-07-15 Method for converting numbers of mobile phone and wire telephone Pending CN104158982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410337275.4A CN104158982A (en) 2014-07-15 2014-07-15 Method for converting numbers of mobile phone and wire telephone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410337275.4A CN104158982A (en) 2014-07-15 2014-07-15 Method for converting numbers of mobile phone and wire telephone

Publications (1)

Publication Number Publication Date
CN104158982A true CN104158982A (en) 2014-11-19

Family

ID=51884384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410337275.4A Pending CN104158982A (en) 2014-07-15 2014-07-15 Method for converting numbers of mobile phone and wire telephone

Country Status (1)

Country Link
CN (1) CN104158982A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550109A (en) * 2016-09-28 2017-03-29 深圳极钛星华信息技术有限公司 A kind of apparatus and method by fixed telephone for receiving mobile terminal phone
CN106686759A (en) * 2016-12-30 2017-05-17 维沃移动通信有限公司 Short-haul call method and mobile terminal
CN110602683A (en) * 2019-09-26 2019-12-20 RealMe重庆移动通信有限公司 Bluetooth control method, device, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003061146A (en) * 2001-08-13 2003-02-28 Hitachi Ltd Mobile phone and network system
CN202043183U (en) * 2010-12-22 2011-11-16 北京格林思通科技有限公司 Short-distance wireless relay system
CN102571184A (en) * 2010-12-22 2012-07-11 北京格林思通科技有限公司 Short-distance wireless relay method and system
CN103634039A (en) * 2012-08-20 2014-03-12 深圳市云通时代科技开发有限公司 A method for a mobile terminal to carry out communication through a fixed-line telephone network, an apparatus and a system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003061146A (en) * 2001-08-13 2003-02-28 Hitachi Ltd Mobile phone and network system
CN202043183U (en) * 2010-12-22 2011-11-16 北京格林思通科技有限公司 Short-distance wireless relay system
CN102571184A (en) * 2010-12-22 2012-07-11 北京格林思通科技有限公司 Short-distance wireless relay method and system
CN103634039A (en) * 2012-08-20 2014-03-12 深圳市云通时代科技开发有限公司 A method for a mobile terminal to carry out communication through a fixed-line telephone network, an apparatus and a system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550109A (en) * 2016-09-28 2017-03-29 深圳极钛星华信息技术有限公司 A kind of apparatus and method by fixed telephone for receiving mobile terminal phone
CN106686759A (en) * 2016-12-30 2017-05-17 维沃移动通信有限公司 Short-haul call method and mobile terminal
CN106686759B (en) * 2016-12-30 2019-12-03 维沃移动通信有限公司 Short-haul call method and mobile terminal
CN110602683A (en) * 2019-09-26 2019-12-20 RealMe重庆移动通信有限公司 Bluetooth control method, device, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN103634039A (en) A method for a mobile terminal to carry out communication through a fixed-line telephone network, an apparatus and a system
CN107465832B (en) System and method for connecting and calling mobile phone by using expansion equipment
CN1945994B (en) Method for automatic transfering phone call of blue tooth cell phone to fixed telephone for receiving call
CN104158982A (en) Method for converting numbers of mobile phone and wire telephone
CN201199697Y (en) Intelligent information terminal
US20100034244A1 (en) Wireless fixed terminal
KR100728403B1 (en) Wireless PBX system and method for making a call in wireless PBX system
CN101179631A (en) Call centre remote access method, system and remote machine
CN101252766A (en) PHS mobile phone producing test system
KR100779801B1 (en) Apparatus of call forwarding for exchange unit and the method of the same
CN203504703U (en) Cordless telephone system
CN101106614A (en) Bluetooth phone gateway device and communication method
CN103428324A (en) Intelligent IP dialing method for mobile phone
CN201504321U (en) Communication service system
KR100353713B1 (en) Communication system for processing union voice and data
CN201937782U (en) Building talkback system
CN201585024U (en) Wireless network telephone switchboard and network telephone system
CN2701187Y (en) A novel mobile phone
CN101848267A (en) Method for automatically transferring fixed-line phone call to Bluetooth phone
KR20070007527A (en) Communication system and method using binary cdma wireless communication networks
KR20020057289A (en) An Operating Method of Wireless Public Telephone System by using Blue Tooth
CN101110612A (en) Method for long-distance voice communication using blue tooth voice equipment
CN201328143Y (en) Two-machine one-number fixed wireless telephone
CN2909707Y (en) Telephone for supporting accessing to wireless local terminal
CN201699991U (en) Multi-telephone-number communication service system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141119

WD01 Invention patent application deemed withdrawn after publication