Disclosure of Invention
The present invention is directed to a dialing method and a communication system, which are used to solve the above-mentioned problems in the prior art.
The embodiment of the invention provides a dialing method, which is applied to a communication system, wherein the communication system comprises a first peripheral terminal, an indicating device, a second peripheral terminal and a dialing box, and the method comprises the following steps:
the first peripheral terminal sends first dialing information to the dialing box in a wireless communication mode;
the dialing box receives the first dialing information, converts the first dialing information into a first DTMF signal and sends the first DTMF signal to a second external terminal;
the second external terminal dials according to the first DTMF signal and sends a call prompt message to a dialing box;
and the dialing box sends a call instruction according to the call prompt information.
As a further step, the dial-up box comprises a microcontroller, a wireless communication module, a serial port chip, a USART interface, an RJ11 port, a first I/O interface and a second I/O interface; the serial port chip is connected with the wireless communication module and a USART interface, and the USART interface is connected with the microcontroller; the microcontroller is connected with the RJ11 port through the first I/O interface; the second I/O interface is connected with the microcontroller;
the step that the dialing box receives the first dialing information, converts the first dialing information into a first DTMF signal and sends the first DTMF signal to a second external terminal comprises the following steps:
the wireless communication module receives first dialing information sent by a first peripheral terminal and sends the first dialing information to the USART interface through the serial port chip;
the USART interface receives the first dialing information and transmits the dialing information to the microcontroller;
the microcontroller converts the first dialing information into a first DTMF signal, and sends the first DTMF signal to the RJ11 port through the first I/O interface;
the RJ11 port sends the first DTMF signal to a second external terminal, receives call prompt information sent by the second external terminal, and sends the call prompt information to the microcontroller through the first I/O interface;
and the microcontroller controls the indicating equipment connected with the second I/O interface to send a call indication according to the call prompt information.
As a further example, the communication system further includes a microphone and a third external device, and the method further includes:
the third external equipment sends a second DTMF signal to the microphone;
the microphone collects the second DTMF signal and sends the second DTMF signal to the dialing box to wake up the dialing box;
the dialing box converts the second DTMF signal into a second dialing signal, converts the second dialing signal into a third DTMF signal when the second dialing signal meets set conditions, and sends the third DTMF signal to a second external terminal;
and the second external terminal dials according to the third DTMF signal and sends a call prompt message to the dialing box.
As a further step, the step of converting the second DTMF signal into a second dialing signal by the dialing box, converting the second dialing signal into a third DTMF signal when the second dialing signal meets the set condition, and sending the third DTMF signal to a second peripheral terminal includes:
the microcontroller converts the second DTMF signal into a second dialing signal, converts the second dialing signal into a third DTMF signal when the second dialing signal meets a set condition, and sends the first DTMF signal to the RJ11 port through the first I/O interface;
the RJ11 port sends the third DTMF signal to a second peripheral terminal.
As a further step, the step of sending a call instruction by the dial box according to the call prompt message includes:
when the call prompt information indicates that the call is successful, the dialing box sends out an indication of successful call;
and when the call prompt information indicates that the call is unsuccessful, the dial box sends an unsuccessful call indication.
As a further step, the method further comprises:
and when the second external terminal finishes dialing, sending dialing finishing information to the dialing box to control the dialing box to enter a sleep state.
The embodiment of the invention also provides a communication system, which comprises a first external terminal, an indicating device, a second external terminal and a dialing box;
the indicating equipment and the second peripheral terminal are connected with the dialing box, and the first peripheral terminal is in wireless communication connection with the dialing box;
the first peripheral terminal is used for sending first dialing information to the dialing box in a wireless communication mode;
the dialing box is used for receiving the first dialing information, converting the first dialing information into a first DTMF signal and sending the first DTMF signal to the second external terminal;
the second external terminal is used for dialing according to the first DTMF signal and sending a call prompt message to the dialing box;
and the dialing box is also used for sending a call instruction according to the call prompt information.
As a further step, the dial-up box comprises a microcontroller, a wireless communication module, a serial port chip, a USART interface, an RJ11 port, a first I/O interface and a second I/O interface; the serial port chip is connected with the wireless communication module and a USART interface, and the USART interface is connected with the microcontroller; the microcontroller is connected with the RJ11 port through the first I/O interface; the second I/O interface is connected with the microcontroller;
the wireless communication module is used for receiving first dialing information sent by a first peripheral terminal and sending the first dialing information to the USART interface through the serial port chip;
the USART interface is used for receiving the first dialing information and transmitting the dialing information to the microcontroller;
the microcontroller is used for converting the first dialing information into a first DTMF signal and sending the first DTMF signal to the RJ11 port through the first I/O interface;
the RJ11 port is used for sending the first DTMF signal to a second external terminal, receiving call prompt information sent by the second external terminal and sending the call prompt information to the microcontroller through the first I/O interface;
and the microcontroller is also used for controlling the indicating equipment connected with the second I/O interface to send a call indication according to the call prompt information.
As a further example, the communication system further includes a microphone and a third external device;
the third external device is used for sending a second DTMF signal to the microphone;
the microphone is connected with the dialing box through a third I/O interface;
the microphone is used for acquiring the second DTMF signal and sending the second DTMF signal to the dialing box to wake up the dialing box;
the dial box is also used for converting the second DTMF signal into a second dial signal, converting the second dial signal into a third DTMF signal when the second dial signal meets a set condition, and sending the third DTMF signal to a second external terminal;
and the second external terminal is used for dialing according to the third DTMF signal and sending a call prompt message to the dialing box.
As a further step, the indicating device is an indicator light.
The embodiment of the invention provides a dialing method and a communication system, wherein a first peripheral terminal is adopted to send first dialing information to a dialing box in a wireless communication mode, the dialing box receives the first dialing information, converts the first dialing information into a first DTMF signal, sends the first DTMF signal to a second peripheral terminal, the second peripheral terminal dials according to the first DTMF signal and sends a call prompt message to the dialing box, and the dialing box sends a call instruction according to the call prompt message. The dialing method can stably transmit the dialing information and has good dialing effect.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it is to be understood that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like, indicate orientations or positional relationships that are based on the orientations or positional relationships shown in the drawings, or the orientations or positional relationships that the products of the present invention conventionally put into use, or the orientations or positional relationships that the persons skilled in the art conventionally understand, are only used for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the equipment or elements referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Referring to fig. 1, fig. 1 is a block diagram illustrating a communication system 100 according to an embodiment of the present invention. In the embodiment of the present invention, the communication system 100 includes a first peripheral terminal 110, a pointing device 120, a second peripheral terminal 130, and a dial box 140.
The pointing device 120 and the second peripheral terminal 130 are connected to the dial box 140, and the first peripheral terminal 110 is connected to the dial box 140 for wireless communication.
The first peripheral terminal 110 is configured to send first dialing information to the dialing box 140 through a wireless communication manner. The dial box 140 is configured to convert the first dial information into a first DTMF signal, and transmit the first DTMF signal to the second peripheral terminal 130. The second peripheral terminal 130 is configured to dial according to the first DTMF signal and send a call prompt message to the dial box 140. The dial box 140 is also used for sending a call instruction according to the call prompt message.
DTMF indicates Dual Tone Multi Frequency (DTMF).
In the embodiment of the present invention, the first peripheral terminal 110 may be an electronic device such as a mobile phone and a computer. The second peripheral terminal 130 may be a telephone.
As an embodiment, the first peripheral terminal 110 may transmit the first dialing information to the dial box 140 through the network 600. The first peripheral terminal 110 may also transmit first dialing information to the dialing box 140 through bluetooth.
In the embodiment of the present invention, the first dialing information is the dialing information directly converted into the DTMF signal by the dialing box 140, the dialing box 140 converts the first dialing information into the first DTMF signal, the first DTMF signal can be directly recognized by the second external terminal 130, and the second external terminal 130 can dial according to the first DTMF signal.
In an embodiment of the present invention, the communication system 100 further includes a microphone and a third external device.
The third external device is used for sending the second DTMF signal to the microphone. In the embodiment of the present invention, the third external device is a device that can send out a DTMF signal, such as a mobile phone.
The microphone is connected to the third I/O interface of the dial box 140.
The microphone is configured to collect a second DTMF signal, and send the second DTMF signal to the dial box 140 through the third I/O interface to wake up the dial box 140.
The dial box 140 is further configured to convert the second DTMF signal into a second dial signal, convert the second dial signal into a third DTMF signal when the second dial signal meets a set condition, and send the third DTMF signal to the second peripheral terminal 130.
The second peripheral terminal 130 is further configured to dial according to the third DTMF signal, and send a call prompt message to the dial box 140.
In the embodiment of the present invention, the third DTMF signal is the same type of signal as the first DTMF signal.
Referring to fig. 2, fig. 2 is a block diagram of the dial box 140. In the embodiment of the present invention, the dial box 140 includes a microcontroller 141, a wireless communication module 142, a serial port chip 143, a USART interface 144, an RJ11 port 145, a first I/O interface 146, and a second I/O interface 147.
The serial port chip 143 is connected to the wireless communication module 142 and the USART interface 144, and the USART interface 144 is connected to the microcontroller 141. The microcontroller 141 is connected to the RJ11 port 145 via a first I/O interface 146. The second I/O interface 147 is connected to the microcontroller 141.
The wireless communication module 142 is configured to receive first dialing information sent by the first peripheral terminal 110, and send the first dialing information to the USART interface 144 through the serial port chip 143. The USART interface 144 is configured to receive the first dialing information and transmit the dialing information to the microcontroller 141. The microcontroller 141 is configured to convert the first dialing information into a first DTMF signal, and send the first DTMF signal to the RJ11 port 145 through the first I/O interface 146. The RJ11 port 145 is configured to send the first DTMF signal to the second external terminal 130, receive the call prompt message sent by the second external terminal 130, and send the call prompt message to the microcontroller 141 through the first I/O interface 146. The microcontroller 141 is further configured to control the pointing device 120 connected to the second I/O interface 147 to send a call indication according to the call prompt message.
In the embodiment of the present invention, the indication device 120 is an indication lamp, and the indication lamp can emit different indication signals. Such as slow flashing of the indicator light, constant value of the indicator light, fast flashing of the indicator light, etc.
In an embodiment of the present invention, dial box 140 further comprises a third I/O interface. The microcontroller 141 is connected to the third I/O interface.
The third I/O interface is configured to receive a second DTMF signal sent by a third external device, and send the second DTMF signal to the microcontroller 141 to wake up the microcontroller 141.
The microcontroller 141 is further configured to convert the second DTMF signal into a second dialing signal, convert the second dialing signal into a third DTMF signal when the second dialing signal meets a set condition, and send the first DTMF signal to the RJ11 port 145 through the first I/O interface 146. The RJ11 port 145 is also used to send a third DTMF signal to the second peripheral terminal 130.
In one embodiment, the dial-up box 140 includes a plurality of third I/O interfaces, which may be used to connect a plurality of peripheral devices.
Referring to fig. 3, fig. 3 is a flowchart illustrating a dialing method according to an embodiment of the present invention. In the embodiment of the present invention, the dialing method is applied to the communication system 100. One method of dialing is described below in conjunction with fig. 3.
A dialing method comprises the following steps:
step S100: the first peripheral terminal 110 sends the first dialing information to the dialing box 140 in a wireless communication manner.
Step S200: the dial box 140 receives the first dial information, converts the first dial information into a first DTMF signal, and transmits the first DTMF signal to the second peripheral terminal 130.
In the embodiment of the present invention, step S200 includes steps S210 to S250. Referring to fig. 4, fig. 4 shows a flowchart of step S200. The following describes steps S210 to S250 with reference to fig. 4.
Step S210: the wireless communication module 142 receives the first dialing information sent by the first peripheral terminal 110, and sends the first dialing information to the USART interface 144 through the serial port chip 143.
Step S220: the USART interface 144 receives the first dialing information and transmits the dialing information to the microcontroller 141.
Step S230: microcontroller 141 converts the first dialing information into a first DTMF signal, which is sent through first I/O interface 146 to RJ11 port 145.
Step S240: the RJ11 port 145 transmits the first DTMF signal to the second external terminal 130, receives the call alert information transmitted by the second external terminal 130, and transmits the call alert information to the microcontroller 141 through the first I/O interface 146.
Step S250: the microcontroller 141 controls the pointing device 120 connected to the second I/O interface 147 to send a call instruction according to the call prompt message.
Step S300: the second peripheral terminal 130 dials according to the first DTMF signal and sends a call alert message to the dial box 140.
Step S400: the dial box 140 issues a call instruction according to the call prompt information.
In the embodiment of the present invention, there are various implementations of step S400, for example: when the call prompt information indicates that the call is successful, the dial box 140 sends an indication that the call is successful; when the call prompt message indicates that the call is unsuccessful, the dial box 140 sends an indication that the call is unsuccessful.
The operation of the call box to send out the indication is mainly sent out by the indication device 120. The indication device 120 is an indicator light, which may emit different indication signals. Such as slow flashing of the indicator light, constant indicator light, fast flashing of the indicator light, etc., to represent different dialing states.
Referring to fig. 5, fig. 5 is a flow chart illustrating another dialing method. In the embodiment of the invention, the dialing method further comprises the following steps.
Step S500: the third external device sends the second DTMF signal to the microphone.
Step S600: the microphone collects the second DTMF signal and sends the second DTMF signal to the dial box 140 to wake up the dial box 140.
Step S700: the dial box 140 converts the second DTMF signal into a second dial signal, converts the second dial signal into a third DTMF signal when the second dial signal meets a set condition, and transmits the third DTMF signal to the second peripheral terminal 130.
Referring to fig. 6, fig. 6 shows a flowchart of step S700. In the embodiment of the present invention, step S700 includes step S710 and step S720. Step S710 and step S720 are explained below with reference to fig. 6.
Step S710: the microcontroller 141 converts the second DTMF signal into a second dial signal, converts the second dial signal into a third DTMF signal when the second dial signal meets the set condition, and sends the first DTMF signal to the RJ11 port 145 through the first I/O interface 146.
In the embodiment of the present invention, step S710 further includes the step of verifying and identifying the second dialing signal by the microcontroller 141. The specific implementation manner of the microcontroller 141 verifying and identifying the second dialing signal may be interpreted that the microcontroller 141 identifies whether the second dialing signal is dialing information that can be processed by the microcontroller 141, and determines whether the second dialing signal conforms to information of a communication rule, for example, whether a dialing number represented by the second dialing signal conforms to a code of an 11-bit mobile phone number, and the microcontroller 141 identifies that the second dialing signal is dialing information that can be processed by the microcontroller 141, and the second dialing signal conforms to the information of the communication rule, which indicates that the verification is passed.
Step S720: the RJ11 port 145 transmits the third DTMF signal to the second peripheral terminal 130.
In the embodiment of the present invention, by converting the second DTMF signal into the second dialing signal that can be processed by the microcontroller 141, a DTMF decoding chip is not required to be arranged, which saves the cost.
Step S800: the second peripheral terminal 130 dials according to the third DTMF signal and sends a call alert message to the dial box 140.
Step S900: when the dialing of the second peripheral terminal 130 is finished, the dialing end information is sent to the dialing box 140 to control the dialing box 140 to enter the sleep state.
As an implementation mode, a user connects the wireless communication module 142 of the dialing box 140 with a computer, connects the RJ11 port 145 with an extension port of a telephone, and the dialing box 140 is directly powered by the computer or the telephone, and the indicator light automatically turns off after flickering for three seconds in a circulating manner to prompt that the dialing box 140 works normally, namely, the dialing box is about to enter a sleep state. When a user needs to dial, data indicating dialing, such as first dialing information, is transmitted to the dialing box 140 through the computer or the mobile phone, so that the dialing box is awakened and is in a working state. The dial box 140 establishes communication with the terminating switch and transmits called party number information to the terminating switch, and when the called party goes off the hook, the dial box 140 reminds the user of establishing a call through the indicator lamp, specifically, the call box 140 sends a call indication by sending call prompt information indicating that the call is successful to the dial box 140, and at this time, the user can communicate with the called party only by picking up the microphone. The method is convenient and quick in the using process, the dialing error rate is reduced, and the working efficiency is improved.
Specifically, the operation inside the dial box 140 can be described as follows:
dial box 140 includes microcontroller 141, wireless communication module 142, serial port chip 143, USART interface 144, RJ11 port 145, first I/O interface 146 and second I/O interface 147, serial port chip 143 is connected with wireless communication module 142 and USART interface 144, USART interface 144 is connected with microcontroller 141, microcontroller 141 is connected through first I/O interface 146 with RJ11 port 145, second I/O interface 147 is connected with microcontroller 141. The wireless communication module 142 receives first dialing information sent by the first peripheral terminal 110, and sends the first dialing information to the USART interface 144 through the serial port chip 143, and the USART interface 144 receives the first dialing information and transmits the dialing information to the microcontroller 141; the microcontroller 141 converts the first dialing information into a first DTMF signal, and sends the first DTMF signal to the RJ11 port 145 through the first I/O interface 146, the RJ11 port 145 sends the first DTMF signal to the second peripheral terminal 130, receives the call prompt information sent by the second peripheral terminal 130, and sends the call prompt information to the microcontroller 141 through the first I/O interface 146; the microcontroller 141 controls the pointing device 120 connected to the second I/O interface 147 to send a call instruction according to the call prompt message.
As another embodiment, the dialing of the dialing box 140 may be implemented by a microphone, specifically, as follows:
the third I/O interface receives the second DTMF signal sent by the microphone, and sends the second DTMF signal to the microcontroller 141 to wake up the microcontroller 141, the microcontroller 141 converts the second DTMF signal into a second dialing signal, when the second dialing signal meets a set condition, the second dialing signal is converted into a third DTMF signal, the first DTMF signal is sent to the RJ11 port 145 through the first I/O interface 146, and the RJ11 port 145 is further used for sending the third DTMF signal to the telephone.
By adopting the above scheme, when the microphone receives the second DTMF signal sent from the mobile phone or other playing device, the microcontroller 141 is awakened, the microcontroller 141 converts the received second DTMF signal into dialing information which can be processed by the microcontroller 141, such as the second dialing signal, then verifies and identifies the second dialing signal, after the verification and identification are passed, the dialing information is converted into a third DTMF signal, the third DTMF signal is output to the RJ11 port 145 through the I/O interface, the RJ11 port 145 sends the third DTMF signal to the telephone, the telephone dials according to the third DTMF signal to establish communication with the terminal switch, when the dialing counterpart is off-hook, the telephone sends the call prompting information to the microcontroller 141 through the RJ11 port 145, the microcontroller 141 controls the indicating device 120 connected with the second I/O interface 147 to send a call instruction according to the call prompting information, for example, the control indicator lights up to indicate the start of the call.
By adopting the above scheme, the power consumption of the dialing box 140 is low when the dialing box 140 works, most of the time of the dialing box 140 is in deep sleep, and only when the user sends the dialing information indicating dialing through a computer or a mobile phone, the dialing box 140 is awakened and executes corresponding actions. When a user dials through a computer or a mobile phone, the intelligent dialing box 140 receives dialing information from the computer or the mobile phone through the USRAT interface or the microphone interface, the dialing information is generated into a DTMF signal by the control system, the DMTF signal is sent to a telephone device through the RJ11 port 145, and the telephone completes outgoing dialing. When the opposite side is in conversation or other busy conditions, the indicator lamp slowly flickers to prompt the user that the opposite side is busy, and automatically enters a sleep state when no dialing operation is performed.
In summary, the embodiments of the present invention provide a dialing method and a communication system, in which a first peripheral terminal sends first dialing information to a dialing box in a wireless communication manner, the dialing box receives the first dialing information, converts the first dialing information into a first DTMF signal, sends the first DTMF signal to a second peripheral terminal, the second peripheral terminal dials according to the first DTMF signal and sends a call prompt message to the dialing box, and the dialing box sends a call instruction according to the call prompt message. The dialing method can stably transmit the dialing information by adopting a wireless communication mode to transmit the first dialing information, and has a good dialing effect.
The dialing box includes microcontroller, wireless communication module, serial port chip, USART interface, RJ11 port, first IO interface and second IO interface, serial port chip and wireless communication module and USART interface connection, and the USART interface is connected with microcontroller, and microcontroller and RJ11 port are through first IO interface connection, and second IO interface is connected with microcontroller. The wireless communication module is used for receiving first dialing information sent by a first peripheral terminal, and sending the first dialing information to the USART interface through the serial port chip, and the USART interface is used for receiving the first dialing information and transmitting the dialing information to the microcontroller; the microcontroller is configured to convert the first dialing information into a first DTMF signal, send the first DTMF signal to the RJ11 port through the first I/O interface, and the RJ11 port is configured to send the first DTMF signal to a second external terminal, receive a call prompt message sent by the second external terminal, and send the call prompt message to the microcontroller through the first I/O interface; and the microcontroller is also used for controlling the indicating equipment connected with the second I/O interface to send a call indication according to the call prompt information. The dialing box is low in cost, high in dialing efficiency and low in power consumption.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.