Communication method and related device based on dual-tone multi-frequency signal
By using DTMF signals to determine the hanging status of the dedicated line user equipment and sending a prompt ringtone, the problem of large hardware overhead in the prior art is solved, and a communication method with lower cost and better user experience is realized.
Patent Information
- Application Number
- CN202210912545.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-30
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-07-30
AI Technical Summary
The communication methods between existing dedicated line users require additional hardware codec chips and software detection processing, resulting in greater system overhead and poor user experience.
By obtaining the DTMF signal of the dedicated line user, determining the device's hanging status, and sending corresponding prompt ringtones according to the DTMF signal, it realizes the personalized prompt ringtone push synchronously without adding hardware.
It reduces the cost of the system to handle dedicated line user communications, improves the user experience, and avoids the increase in hardware overhead.
Smart Images

Figure CN115334188B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a communication method and related devices based on dual-tone multi-frequency signals. Background Art
[0002] The communication between existing dedicated line users is often done by setting up the dedicated line of the switch. The dedicated line user communication channel will be allocated and occupied all the time, and the dedicated line users do not need to apply for occupation (dial) and release (hang up). Therefore, there are two ways to talk between dedicated line users: one is that the dedicated line users both pick up the phone and directly enter the call state. In this way, there is no prompt for the communicating parties; the other is that the terminals corresponding to the dedicated line users transmit signaling on the channel to realize the function of one end picking up the phone, the other end ringing, and the other party picking up the phone to enter the call. However, this method requires the addition of additional hardware codec chips and software detection processing to achieve, resulting in a large system overhead.
[0003] Therefore, the present application proposes a communication method based on dual-tone multi-frequency signal to solve the above problems. Summary of the invention
[0004] The embodiment of the present application provides a communication method and related device based on dual-tone multi-frequency signals, which determines the on-hook and off-hook status of the first device and the second device by acquiring the DTMF signals of the first device and the second device corresponding to the dedicated line user, and sends the corresponding prompt ringtone to the first device and / or the second device according to the DTMF signal, as well as the occupation and release of the dedicated line user's communication line resources. In this way, personalized prompt ringtone push can be realized through DTMF signal synchronization without adding additional hardware overhead, reducing the cost of the system for processing dedicated line user communications and improving user experience.
[0005] In a first aspect, an embodiment of the present application provides a communication device based on a dual-tone multi-frequency signal, which is applied to a communication device, wherein the communication device includes a two-line user interface module, a processing module, and a switching matrix module, wherein the two-line user interface module, the processing module, and the switching matrix module are connected in sequence, and the communication device includes a first device and a second device; including:
[0006] The second-line user interface module is used to send the on-hook and off-hook information of the first device to the processing module when detecting the on-hook and off-hook action of the first device;
[0007] The processing module is used to encode the on-hook and off-hook information to obtain a first dual-tone multi-frequency DTMF signal, and send the first DTMF signal to the second device through the switching matrix module;
[0008] The processing module is further used to receive a second DTMF signal forwarded by the switching matrix module, and decode the second DTMF signal to obtain a ringing processing scheme, wherein the second DTMF signal is generated by the second device according to the first DTMF signal and a target operation of a user corresponding to the second device, and the target operation includes at least one of the following: an off-hook operation and an on-hook operation;
[0009] The processing module is further used to send a first prompt tone to the first device and / or send a second prompt tone to the second device according to the ringing processing scheme, wherein the first prompt tone and the second prompt tone respectively include at least one of the following: ringing, ringback tone and busy tone.
[0010] A second aspect, a communication method based on dual-tone multi-frequency signal is applied to a processing module, wherein the processing module includes an interface detection circuit, a processor, a DTMF signal generator, a DTMF signal receiver, a memory and a ringing current / signal tone module, wherein the memory is used to store a program, and the program includes a main program and an interrupt program;
[0011] The method comprises:
[0012] Starting the program through the processor, and initializing the processing module and allocating dedicated line user resources through the main program;
[0013] Acquiring on / off hook information of the first device through the interface detection circuit, wherein the on / off hook information is used to indicate an on / off hook action of a user corresponding to the first device;
[0014] Generate on-hook and off-hook signaling data according to the on-hook and off-hook information by the processor, and send the on-hook and off-hook instruction to the DTMF signal generator;
[0015] After encoding the on-hook and off-hook signaling data by the DTMF signal generator to obtain a first dual-tone multi-frequency DTMF signal, the first DTMF signal is sent to the second device;
[0016] The DTMF signal receiver is monitored by the interrupt program. If the DTMF signal receiver receives a second DTMF signal, the processor reads the second DTMF signal from the DTMF signal receiver and decodes the second DTMF signal to obtain a ringing processing scheme, wherein the second DTMF signal is generated by the second device according to the first DTMF signal and a target operation of a user corresponding to the second device, and the target operation includes at least one of the following: an off-hook operation and an on-hook operation;
[0017] A first prompt tone is sent to the first device and / or a second prompt tone is sent to the second device through the ring current / signal tone module, wherein the first prompt tone and the second prompt tone respectively include at least one of the following: ringing, ringback tone and busy tone.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, characterized in that it includes an interface detection circuit, a processor, a DTMF signal generator, a DTMF signal receiver, a memory, a ringing current / tone module and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the processor, and the one or more programs include instructions for executing the steps in any method of the second aspect of the embodiment of the present application.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the second aspect of the embodiment of the present application.
[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the second aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0021] It can be seen that, through the device proposed in the embodiment of the present application, the embodiment of the present application discloses a communication method and related devices based on dual-tone multi-frequency signals, which are applied to communication equipment, including: a two-line user interface module, a processing module and a switching matrix module, wherein the two-line user interface module, the processing module and the switching matrix module are connected in sequence, and the communication equipment includes a first device and a second device. The two-line user interface module sends the on-hook and off-hook information of the first device to the processing module, and the processing module generates a DTMF signal according to the on-hook and off-hook information of the first device and the second device, and realizes signal synchronization of the first device and the second device through the switching matrix module, and the processing module sends corresponding prompt ringtones to the first device and / or the second device respectively according to the DTMF signal. In this way, personalized prompt ringtone push can be realized through DTMF signal synchronization without increasing the additional hardware overhead, reducing the cost of the system for processing dedicated line user communications and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 is a schematic diagram of interaction between communication devices provided in an embodiment of the present application;
[0024] Figure 2A It is a structural schematic diagram of a communication device based on dual-tone multi-frequency signal provided in an embodiment of the present application;
[0025] Figure 2B It is a schematic diagram of the internal architecture of a communication device based on dual-tone multi-frequency signaling provided in an embodiment of the present application;
[0026] Figure 2C It is a schematic diagram of a DTMF signal sending hardware design circuit provided in an embodiment of the present application;
[0027] Figure 2D This is a schematic diagram of a DTMF signal receiving hardware design circuit provided by an embodiment of the present application;
[0028] Figure 3 It is a flow chart of a communication method based on dual audio signals provided in an embodiment of the present application;
[0029] Figure 4 It is a schematic diagram of an overall process of communication based on dual-tone multi-frequency signaling provided by an embodiment of the present application;
[0030] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0031] Figure 6 The present invention provides a block diagram of the functional units of a communication device based on dual-tone multi-frequency signals. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0034] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0035] The electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with an IOS system, an Android system, a Microsoft system, or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop), etc. It should also be understood that in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer. The above-mentioned electronic device may include the first device and / or the second device in the embodiment of the present application.
[0036] Dual Tone Multi Frequency (DTMF) signal is an audio signal that can be transmitted on a channel. DTMF is composed of a group of low audio signals and a group of high audio signals in a certain way. Each group of audio signals has 4 audio signals, and each combination has a high audio signal and a low audio signal, for a total of 16 combinations. In the past, it was mainly used for telephone dialing information transmission and has strong anti-interference ability.
[0037] In order to better understand the technical solution of the present application, the present application is described in detail below in conjunction with specific embodiments.
[0038] See also Figure 1 , Figure 1 The embodiment of the present application provides a schematic diagram of interaction between communication devices, such as Figure 1The interaction schematic diagram shown, wherein the communication device includes a first device and a second device.
[0039] Specifically, the user picks up the phone and dials through the first device or the second device, generating off-hook information, which is transmitted to the opposite user through the switch. For example, after the first device dials, the second device receives the dialing prompt of the first device through the switch.
[0040] Furthermore, the user of the second device can choose to pick up the phone to answer or hang up according to the actual situation, or the current user is busy and does not know the call event in time and does not react. The above-mentioned call scenarios include both communication interactions between ordinary users and communications between dedicated line users. Among them, the conventional means for communication between dedicated line users often use the switch dedicated line function. The switch establishes a dedicated channel between dedicated line users according to resource allocation planning. Two dedicated line users can talk at any time, and the channel will not be occupied by other users, realizing real-time calls and timely command decisions. It is mainly used in government, military, public security, finance, insurance, telecommunications, fire protection, transportation, passenger transportation and other fields.
[0041] Specifically, after the existing switch dedicated line is set up, the channel will be allocated and occupied all the time, and the user does not need to go through the process of applying for occupation (off-hook and dialing) and applying for release (hanging up). Therefore, if dedicated line users want to talk to each other, one method is that both users will directly enter the call state after picking up the phone without any prompts, which is a poor user experience; another method is to transmit signaling on the channel between the first device and the second device to realize the function of one party picking up the phone, the other party ringing, and the other party picking up the phone to enter the call, and transmit instructions on the dedicated line channel. CPC code transmission is more commonly used in current switches, but this method requires additional hardware encoding and decoding chips and software detection processing to be implemented, resulting in increased system overhead.
[0042] In view of the above technical background problems, the present application proposes a communication method and related devices based on dual-tone multi-frequency signals, which are described in detail below with reference to the accompanying drawings.
[0043] See also Figure 2A , Figure 2A Schematic diagram of a communication device based on dual-tone multi-frequency signal provided by an embodiment of the present application, which is applied to Figure 1 The communication device shown in the figure comprises a two-line user interface module 210, a processing module 220 and a switching matrix module 230, wherein the two-line user interface module, the processing module and the switching matrix module are connected in sequence, and the communication device comprises a first device and a second device; comprising:
[0044] The second-line user interface module 210 is used to send the on-hook and off-hook information of the first device to the processing module when detecting the on-hook and off-hook action of the first device.
[0045] Exemplarily, in actual applications, the second-line user interface module 210 detects the on-hook and off-hook actions performed by the user on the corresponding communication device, wherein the user includes both dedicated line users and ordinary users, and the on-hook and off-hook actions specifically include: the user picks up the phone and performs a dialing operation on the keyboard of the communication device; the user hangs up, wherein hanging up includes: hanging up after ending the current call, and also includes hanging up without connecting the current call.
[0046] Furthermore, the on-hook and off-hook information generated by the on-hook and off-hook action is reported to the processing module 220 through the interface.
[0047] The processing module 220 is used to encode the on / off hook information to obtain a first dual-tone multi-frequency (DTMF) signal, and send the first DTMF signal to the second device through the switching matrix module.
[0048] In one possible example, there is an interface PORT in the processing module specifically used to transmit the on-hook and off-hook information generated by the dedicated line user. The control module receives the on-hook and off-hook information generated by the dedicated line user in the second-line user interface module 210 through the first device through the polling PORT, and performs data processing, data encoding and other operations according to the on-hook and off-hook information to generate a first dual-tone multi-frequency DTMF signal. The first DTMF signal includes a code representing the on-hook and off-hook state of the current first device, for example: if the current user picks up the phone and dials through the first device, the first DTMF code includes the representation information representing the off-hook action, such as "A"; if the current user hangs up through the first device, the first DTMF code includes the representation information representing the on-hook action, such as "C".
[0049] Furthermore, the first DTMF signal is sent to the second dedicated line user through the switching matrix module.
[0050] The processing module 220 is further configured to receive the second DTMF signal forwarded by the switching matrix module 230, and decode the second DTMF signal to obtain a ringing processing solution.
[0051] Wherein, the second DTMF signal is generated by the second device according to the first DTMF signal and the target operation of the user corresponding to the second device, and the target operation includes at least one of the following: off-hook operation and on-hook operation. Specifically, after receiving the first DTMF signal, the second device confirms the on-hook and off-hook actions of the first device according to the DTMF signal. If the current first DTMF signal includes "A", the user corresponding to the second device can decide whether to pick up the phone or hang up according to the actual situation. Further, if the user corresponding to the second device chooses to pick up the phone, a second DTMF signal is correspondingly generated at this time to characterize the off-hook information of the second device, wherein the second DTMF signal includes "A"; if the user corresponding to the second device chooses to hang up, the second DTMF signal includes "C" at this time.
[0052] Furthermore, after receiving the second DTMF signal sent by the second device through the switching matrix module 230, the processing module 220 decodes the second DTMF signal and determines a ringing processing scheme according to the decoded data. The ringing processing scheme is used to determine the on-hook or off-hook state of the second device represented by the current second DTMF signal, and send a corresponding prompt ring tone to the first device and / or the second device.
[0053] The processing module 220 is further configured to send a first prompt tone to the first device and / or send a second prompt tone to the second device according to the ring processing scheme, wherein the first prompt tone and the second prompt tone respectively include at least one of the following: ringing, ringback tone and busy tone.
[0054] For example, if the status of the current dedicated line communication first device is that the user is off-hook, and the status of the second device is that the user is off-hook, it indicates that the current dedicated line user has established communication. At this time, the processor can connect the communication line between the first device and the second device without sending a prompt tone. If it is detected that either party hangs up, a busy tone is sent to the first device or the second device corresponding to the opposite user; if it is detected that both parties hang up, the resources occupied by the first device and the second device are released, and the current dedicated line user communication line returns to an idle state.
[0055] In a possible scenario, if the current status of the first device of the dedicated line communication is that the user has picked up the phone, and the status of the second device is that the user has hung up the phone, and the current user of the second device is not near the device, and therefore does not know the call status of the first device, then a calling end ringback tone is sent to the first device, and a called end ringing tone is sent to the second device. After the current response time exceeds the preset time, if the picking up or hanging up action of the second device is still not detected, a calling end busy tone is sent to the first device, and the second device stops sending prompt tones.
[0056] It can be seen that through the method proposed in the embodiment of the present application, the second-line user interface module is used to send the on-hook and off-hook information of the first device to the processing module when the on-hook and off-hook action of the first device is detected; the processing module is used to encode the on-hook and off-hook information to obtain a first dual-tone multi-frequency DTMF signal, and send the first DTMF signal to the second device through the switching matrix module; the processing module is also used to receive the second DTMF signal forwarded by the switching matrix module, and decode the second DTMF signal to obtain a ringing processing scheme; the processing module is also used to send the first prompt tone to the first device and / or send the second prompt tone to the second device according to the ringing processing scheme. In this way, personalized prompt ring tone push can be realized through DTMF signal synchronization without adding additional hardware overhead, reducing the cost of the system for processing dedicated line user communications and improving user experience.
[0057] In one possible example, see Figure 2B , Figure 2B The present invention is a schematic diagram of the internal architecture of a communication device based on dual-tone multi-frequency signals proposed in an embodiment of the present application. The processing module includes an interface detection module and a processor, and the interface detection module is connected to the second-line user interface module and the processor respectively; wherein the interface detection module is used to obtain the on-hook and off-hook information through the second-line user interface module, and report the on-hook and off-hook information to the processor. The processor is used to generate on-hook and off-hook signaling data according to the on-hook and off-hook information of the first device.
[0058] Specifically, Figure 2B The internal architecture diagram shown in the figure shows that the processor in the processing module of the communication device is described by taking the ARM processor platform design as an example, using a domestic chip design, including an ARM processor, an interface detection circuit module, memory and storage, a DTMF signal generator, a DTMF signal receiver, and a ring tone / signal tone module, etc. Among them, the processing module is respectively connected to the two-line user interface module and the switching matrix module.
[0059] Exemplarily, the interface detection module is connected to the second-line user interface module. After the second-line user interface module detects the user's on-hook or off-hook action on the corresponding communication device, the interface detection module obtains the corresponding on-hook or off-hook information through the second-line user interface module and reports it to the processor in real time.
[0060] Furthermore, the processor receives the on-hook and off-hook information, and determines the on-hook and off-hook state of the first device according to the current on-hook and off-hook information to generate on-hook and off-hook signaling data to enable the DTMF signal generator. Specifically, the on-hook and off-hook signaling data refers to the control instructions in the communication system, which are used to guide the first device, the second device, the switching system and the transmission system to operate in coordination, establish a temporary communication channel between the designated first device and the second device, and maintain the normal operation of the network itself. In addition to the user information during communication (including voice information and non-voice service information), the signal for controlling the operation of the switch is the signaling data. In the present application scheme, the on-hook and off-hook signaling data includes information used to characterize the current on-hook and off-hook state of the first device.
[0061] It can be seen that through the method proposed in the embodiment of the present application, the processor obtains the on-hook and off-hook information of the first device corresponding to the dedicated line user through the dedicated line communication interface, and generates signaling data based on the on-hook and off-hook information for subsequent generation of the first DTMF signal representing the on-hook and off-hook status of the current first device.
[0062] In one possible example, see Figure 2C , Figure 2C is the same as above Figure 2B A schematic diagram of a DTMF signal transmission hardware design circuit diagram corresponding to the internal architecture schematic diagram shown. The processing module also includes a DTMF signal generator, an operational amplifier module and an analog switch, and the DTMF signal generator, the processor, the operational amplifier module and the analog switch are connected via a data transmission interface; after generating the on-hook or off-hook signaling data according to the on-hook or off-hook information of the first device, the processor is also used to: control the analog switch to close, and send the on-hook or off-hook signaling data to the DTMF signal generator through the data transmission interface; control the DTMF signal generator to generate the first DTMF signal according to the on-hook or off-hook signaling data; control the operational amplifier module to amplify the first DTMF signal, and then send the first DTMF signal to the switching matrix module through the data transmission interface; control the analog switch to disconnect.
[0063] Exemplarily, the DTMF signal generator is a chip circuit of a dual-tone multi-frequency signal generator, which can be controlled by μC to generate 16 dual-frequency signals and 8 single-frequency signals, which are output from the DTMF pin. The data transmission of the DTMF signal is transmitted by the processor through the PORT port, that is, any interface in the diagram ID0-ID3, to the DTMF transmitter D0-D3 pin.
[0064] Specifically, combined Figure 2CAs shown, the DTMF signal sending step includes: first, setting the GDSWn of the analog switch to "1" to open the DTMF signal output channel of the analog switch; setting the direction of any I / O port corresponding to the processor in ID0-ID3 to the output direction; further, the processor outputs the on-hook and off-hook information and on-hook signaling data to be sent from the port; further, setting the / CSn of the DTMF signal transmitter to "0" to enable the chip circuit. After a period of time, it is ensured that the on-hook and off-hook information and on-hook signaling data corresponding to the current first device can be read into the chip circuit through the pins corresponding to the processor in ID0-ID3; setting the / CSn of the DTMF signal transmitter to "1" to close the chip circuit; finally, setting the GDSWn of the corresponding data sending module to "0" to close the DTMF signal output channel. In addition, the switching matrix sends the received DTMFs, namely the DTMFn shown in the figure, to the corresponding second device.
[0065] It can be seen that, through the DTMF signal sending hardware proposed in this application, by controlling the opening and closing of the analog switch and the input and output directions of the corresponding pins of the processor, the data interaction between the processor and the DTMF signal generator, and the data interaction between the DTMF signal generator and the switching matrix module are realized. In this way, the interference of the channel during data transmission can be reduced, and the stability of data transmission of the dedicated line user communication channel can be guaranteed. And the corresponding switch or pin is opened and closed in time before and after the transmission to ensure the timely release and rational use of resources.
[0066] In one possible example, Figure 2B The internal architecture schematic diagram shown in the figure, the processing module also includes a DTMF signal receiver, the DTMF signal receiver includes a frequency band separation filter and a decoder, the DTMF signal receiver is connected to the processor and the switching matrix module respectively, and the DTMF signal receiver is used to: receive a second DTMF signal forwarded by the switching matrix module, perform signal separation on the second DTMF signal through the frequency band separation filter to obtain a high-frequency group signal and a low-frequency group signal; perform analysis and processing on the high-frequency group signal and the low-frequency group signal through the decoder to obtain a valid DTMF signal; report notification information to the processor, and the notification information is used to instruct the processor to read the valid DTMF signal.
[0067] Specifically, after the second DTMF signal passes through the band separation filter of the DTMF signal receiver, the second DTMF signal is separated into a high frequency group signal and a low frequency group signal. After the separated signal is analyzed and processed, the effective DTMF signal in the second DTMF signal sent by the second device is obtained. Further, through the decoder, the effective DTMF signal is converted into 4 binary codes of corresponding numbers and output, wherein, the effective DTMF obtained by parsing is used to confirm that the dedicated line communication line of the dedicated line user of the opposite end needs to be connected. For example, if the digit of the current effective DTMF signal is 5, its binary code is represented as 0101.
[0068] It can be seen that in the embodiment of the present application, the received second DTMF signal is parsed and processed by the frequency band separation filter and decoder in the DTMF signal receiver, and sent to the processor to realize the connection and data transmission of the dedicated line channel.
[0069] In one possible example, see Figure 2D , Figure 2D is the same as above Figure 2B A schematic diagram of a DTMF signal receiving hardware design circuit diagram corresponding to the internal architecture schematic diagram shown. After reporting the notification information to the processor, the processor is also used to: output a first enable signal, wherein the first enable signal is used to control the DTMF signal receiver to output the valid DTMF signal; adjust the transmission direction of the data transmission interface to the input direction, and read the valid DTMF signal from the DTMF signal receiver through the data transmission interface; after the reading of the valid DTMF signal is completed, output a second enable signal, wherein the second enable signal is used to control the DTMF signal receiver to stop outputting the valid DTMF signal.
[0070] Specifically, the DTMF signal receiver is a complete dual-tone multi-frequency receiver chip circuit with a band separation filter and digital decoding function. The filter part uses switched capacitor technology to separate the dial audio signal into high-frequency group signals and low-frequency group signals. The decoder uses digital counting technology to detect all 16 dual-tone multi-frequency audio pairs and encodes them into 4-bit code output. When the DTMF signal receiver chip detects a valid DTMF signal from the VN pin, the STDn pin will trigger the corresponding PORT port of the processor, i.e., any interface interrupt in the figure ID0-ID3, and read the DTMF code in the interrupt program.
[0071] Specifically, combined Figure 2DAs shown, the DTMF signal receiving step specifically includes: first, inputting a number of DTMF signals from the switching matrix end, namely, DTMFn shown in the figure. Further, setting the chip circuit enable terminal OEn of the corresponding DTMF signal receiver to "1" to turn on the output enable; then, setting the direction of any I / O port corresponding to the processor in ID0-ID3 to the input direction. Further, after a short delay, after ensuring that the chip circuit output of the DTMF signal receiver is stable, the processor reads data from the DTMF signal receiver. Finally, setting the chip circuit OEn of the corresponding DTMF signal receiver to "0" to turn off the output.
[0072] It can be seen that, by the DTMF signal receiving hardware proposed by the present application, by enabling the chip circuit, the second DTMF signal of the second device is obtained from the switching matrix module, and the input and output directions of the control and processor corresponding pins are realized, and the data interaction between the switching matrix module and the DTMF signal receiver and the processor and the DTMF signal receiver is realized. In this way, the interference of the channel during data transmission can be reduced, and the stability of data transmission of the dedicated line user communication channel is guaranteed. In addition, the corresponding pins are opened and closed in time before and after the transmission to ensure that the resources are released in time and are reasonably utilized.
[0073] See also Figure 3 , Figure 3 It is a flow chart of a communication method based on dual audio signals provided by an embodiment of the present application, which is applied to a processing module, wherein the processing module includes an interface detection circuit, a processor, a DTMF signal generator, a DTMF signal receiver, a memory, and a ringing current / signal tone module, wherein the memory is used to store programs, and the programs include a main program and an interrupt program;
[0074] The method comprises:
[0075] S301, starting the program through the processor, and initializing the processing module and allocating dedicated line user resources through the main program.
[0076] Specifically, the dedicated line user resources include communication lines used for dedicated line user communication. If the dedicated line user is in a communication state, the current communication line state is a busy state; if the current dedicated line user state is: the user corresponding to the first device picks up the phone, sends a first DTMF signal to the second device, and the second device has not responded, the current communication state is set to 1; if the user corresponding to the second device chooses to hang up, the current communication state is set to 0, and the dedicated line user resources are released.
[0077] S302: Acquire on-hook and off-hook information of the first device through the interface detection circuit, where the on-hook and off-hook information is used to indicate on-hook and off-hook actions of a user corresponding to the first device.
[0078] S303: Generate on-hook and off-hook signaling data according to the on-hook and off-hook information by the processor, and send the on-hook and off-hook instruction to the DTMF signal generator.
[0079] S304: Encode the on / off hook signaling data through the DTMF signal generator to obtain a first dual-tone multi-frequency DTMF signal, and then send the first DTMF signal to the second device.
[0080] S305, monitoring the DTMF signal receiver through the interrupt program, if the DTMF signal receiver is monitored to receive a second DTMF signal, reading the second DTMF signal from the DTMF signal receiver through the processor, and decoding the second DTMF signal to obtain a ringing processing solution.
[0081] The second DTMF signal is generated by the second device according to the first DTMF signal and a target operation of a user corresponding to the second device, and the target operation includes at least one of the following: an off-hook operation and an on-hook operation.
[0082] S306: Send a first prompt tone to the first device and / or send a second prompt tone to the second device according to the ringing processing solution through the ringing current / signal tone module.
[0083] The first prompt tone and the second prompt tone respectively include at least one of the following: ringing, ringback tone and busy tone.
[0084] It should be noted that the method flow described in the above steps S301-S306 is similar to Figure 2A The relevant functions implemented by each module in the device are corresponding to each other, which will not be described in detail here.
[0085] It can be seen that, through the method proposed in the embodiment of the present application, the program is started by the processor, and the processing module is initialized and dedicated line user resources are allocated through the main program; the on-hook and off-hook information of the first device is obtained through the interface detection circuit; the on-hook and off-hook signaling data is generated by the processor according to the on-hook and off-hook information, and an on-hook and off-hook instruction is sent to the DTMF signal generator; the on-hook and off-hook signaling data is encoded and processed by the DTMF signal generator, and after obtaining the first dual-tone multi-frequency DTMF signal, the first DTMF signal is sent to the second device; the DTMF signal receiver is monitored through the interrupt program, and if the DTMF signal receiver is monitored to receive the second DTMF signal, the second DTMF signal is read from the DTMF signal receiver through the processor, and the second DTMF signal is decoded and processed to obtain a ringing processing scheme; the first prompt tone is sent to the first device and / or the second prompt tone is sent to the second device according to the ringing processing scheme through the ring current / signal tone module. In this way, it is possible to allocate dedicated line user communication resources through the main program and monitor DTMF signals through the interrupt program, process the on-hook and off-hook information of dedicated line user communications, and send the corresponding prompt ringtone to the first device and / or second device corresponding to the dedicated line user according to the processing result. That is, it is only necessary to synchronize the DTMF signals of the first device and the second device corresponding to the dedicated line user to push personalized prompt ringtones, thereby reducing the cost of the system for processing dedicated line user communications and improving user experience.
[0086] In a possible example, the method of sending a first prompt tone to the first device and / or sending a second prompt tone to the second device according to the ringing processing scheme through the ring current / signal tone module specifically includes the following steps: if the target operation is determined to be the off-hook operation according to the second DTMF signal, the processor controls the first device and the second device to connect the lines, and sets the state of the dedicated communication line to a call state; if the target operation is determined to be the on-hook operation according to the second DTMF signal, the processor controls the ring current / signal tone module to send the ringback tone to the first device, and sends the ringing to the second device.
[0087] Exemplarily, if the current second DTMF signal contains information coded "A", it is determined that the current on-hook or off-hook state of the user corresponding to the second device is the user off-hook, and the processor controls the line connection between the first device and the second device, and the communication line corresponding to the current dedicated line user is in a call state.
[0088] It can be seen that, through the method proposed in the embodiment of the present application, the target operation of the user on the second device is determined by the second DTMF signal generated by the second device in response to the on-hook action when the second device receives the first DTMF signal, and then the prompt ringtone to be sent to the first device and / or the second device is determined according to the target operation. In this way, it is possible to achieve targeted prompts to the dedicated line users at both ends through personalized ringtones, and ensure that the dedicated line users at both ends determine the status information of the other end user according to the received prompt ringtone, saving time for both parties and improving user experience.
[0089] To better understand the communication process based on dual-tone multi-frequency signal proposed in this application scheme, please refer to Figure 4 The overall flow diagram of a communication based on dual-tone multi-frequency signal provided by an embodiment of the present application is shown. For ease of understanding, Figure 4 In which, the users at both ends of the dedicated line are defined as the caller and the called, the communication device corresponding to the caller is the first device, and the device corresponding to the called is the second device; when the current dedicated line user is in the off-hook action, "A" is used as the representation of the DTMF signal; when the current dedicated line user is in the on-hook action, "C" is used as the representation of the DTMF signal; zx_isCalled = 0 / 1 is used to represent the called state information of the called user, where 0 means not called and 1 means called; zx_state = 0 / 1, used to represent the current dedicated line user communication line usage status, where 0 means not occupied and 1 means occupied. Specifically as follows Figure 4 As shown, the specific steps include:
[0090] S400 , initialize variables and allocate dedicated line resources through the main program, zx_isCalled=0, zx_state=0.
[0091] S401. The calling party picks up the phone, updates zx_state=1, and sends a DTMF signal "A" to the second device.
[0092] S402: The second device corresponding to the called party receives the DTMF signal "A" and updates zx_isCalled=1.
[0093] Further, the connection between the second device and the switching matrix module is disconnected, and the processor sends a calling ringback tone to the first device and sends a called ringback tone to the second device.
[0094] S403, interrupt the program to detect the off-hook / on-hook action of the second device. If the called party performs the off-hook action on the second device, set zx_isCalled=0, zx_state=1, and the dedicated user communication line is connected.
[0095] Specifically, the second device picks up the phone, indicating that the current call is connected. At this time, the called party stops being in the called state, stops sending the calling ringback tone to the first device and the called party ringing of the second device, and both parties enter the call mode.
[0096] S404, during the communication process, the interruption program detects the on / off action of the first device and the second device. If it is detected that the calling / called party hangs up the first device or the second device, zx_state=0 is set, and a DTMF signal "C" is sent to the second device or the first device, and a busy tone prompt is sent.
[0097] S405: The called party / caller receives a DTMF signal "C" and a busy tone prompt.
[0098] For example, after the dedicated user communication line is connected, both parties enter the call mode. If the interruption program detects that either party hangs up, the current dedicated communication line usage status is updated to unoccupied, releasing the dedicated communication resources. The on-hook status DTMF signal and busy tone prompt are sent to the other end user.
[0099] S406: If it is detected that the calling party and the called party hang up at the first device and the second device at the same time, zx_state=0, and a DTMF signal "C" is sent to the opposite user.
[0100] In another possible example, after the caller picks up the first device and before both parties enter the fairy tale mode, the interruption program detects the calling user's off-hook action on the first device.
[0101] S407: The first device corresponding to the calling party updates zx_isCalled=0, stops sending the prompt ring tone, and sends a DTMF signal “C” to the second device corresponding to the called party.
[0102] S408: The second device corresponding to the called party receives the DTMF signal "C" and updates zx_isCalled=0.
[0103] It can be seen that through the method proposed in the embodiment of the present application, by newly allocating resources for the dedicated line user and determining the different on-hook and off-hook states of the first device and the second device by detecting the DTMF signals generated by the devices at both ends of the dedicated line user, and sending corresponding prompt ringtones, it is possible to achieve timely communication and personalized prompt ringtones between the two parties of the dedicated line user communication, and after the two parties end the call, the dedicated line user communication resources can be released in time to achieve reasonable allocation and utilization of resources.
[0104] In accordance with the above embodiment, please refer to Figure 5 , Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 5As shown, the electronic device includes an interface detection circuit, a processor, a DTMF signal generator, a DTMF signal receiver, a memory, a ringing current / signal tone module, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor. In an embodiment of the present application, the above-mentioned program includes instructions for executing the following steps:
[0105] Starting the program through the processor, and initializing the processing module and allocating dedicated line user resources through the main program;
[0106] Acquiring on / off hook information of the first device through the interface detection circuit, wherein the on / off hook information is used to indicate an on / off hook action of a user corresponding to the first device;
[0107] Generate on-hook and off-hook signaling data according to the on-hook and off-hook information by the processor, and send the on-hook and off-hook instruction to the DTMF signal generator;
[0108] After encoding the on-hook and off-hook signaling data by the DTMF signal generator to obtain a first dual-tone multi-frequency DTMF signal, the first DTMF signal is sent to the second device;
[0109] The DTMF signal receiver is monitored by the interrupt program. If the DTMF signal receiver receives a second DTMF signal, the processor reads the second DTMF signal from the DTMF signal receiver and decodes the second DTMF signal to obtain a ringing processing scheme, wherein the second DTMF signal is generated by the second device according to the first DTMF signal and a target operation of a user corresponding to the second device, and the target operation includes at least one of the following: an off-hook operation and an on-hook operation;
[0110] The ringing current / signal tone module sends a first prompt tone to the first device and / or sends a second prompt tone to the second device according to the ringing processing scheme, wherein the first prompt tone and the second prompt tone respectively include at least one of the following: ringing, ringback tone and busy tone.
[0111] It can be seen that the electronic device described in the embodiment of the present application sends the on-hook and off-hook information of the first device to the processing module through the second-line user interface module, and the processing module generates a DTMF signal according to the on-hook and off-hook information of the first device and the second device, realizes signal synchronization of the first device and the second device through the switching matrix module, and the processing module sends the corresponding prompt ringtone to the first device and / or the second device respectively according to the DTMF signal. In this way, personalized prompt ringtone push can be realized through DTMF signal synchronization without adding additional hardware overhead, reducing the cost of the system for processing dedicated line user communications and improving user experience.
[0112] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should be easily aware that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0113] The embodiment of the present application can divide the functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0114] See also Figure 6 , Figure 6 It is a functional unit block diagram of a communication device based on dual-tone multi-frequency signal provided by an embodiment of the present application, wherein the device 600 includes: an initialization unit 601, an acquisition unit 602, a generation unit 603, a sending unit 604, a monitoring unit 605 and a prompting unit 606, wherein:
[0115] Initialization unit 601, used to start the program through the processor, and initialize the processing module and allocate dedicated line user resources through the main program;
[0116] An acquiring unit 602 is configured to acquire on-hook and off-hook information of a first device through the interface detection circuit, wherein the on-hook and off-hook information is used to indicate an on-hook and off-hook action of a user corresponding to the first device;
[0117] The generating unit 603 generates the on-hook and off-hook signaling data according to the on-hook and off-hook information through the processor, and sends the on-hook and off-hook instruction to the DTMF signal generator;
[0118] The sending unit 604 encodes the on-hook and off-hook signaling data through the DTMF signal generator to obtain a first dual-tone multi-frequency DTMF signal, and then sends the first DTMF signal to the second device;
[0119] The monitoring unit 605 monitors the DTMF signal receiver through the interrupt program. If the DTMF signal receiver receives a second DTMF signal, the processor reads the second DTMF signal from the DTMF signal receiver and decodes the second DTMF signal to obtain a ringing processing scheme, wherein the second DTMF signal is generated by the second device according to the first DTMF signal and a target operation of the user corresponding to the second device, and the target operation includes at least one of the following: an off-hook operation and an on-hook operation;
[0120] The prompt unit 606 sends a first prompt tone to the first device and / or sends a second prompt tone to the second device through the ringing flow / signal tone module according to the ringing processing scheme, wherein the first prompt tone and the second prompt tone respectively include at least one of the following: ringing, ringback tone and busy tone.
[0121] It can be seen that in the communication device based on dual-tone multi-frequency signals described in the embodiment of the present application, the initialization unit starts the program through the processor, and initializes the processing module and allocates dedicated line user resources through the main program; the acquisition unit obtains the on-hook and off-hook information of the first device through the interface detection circuit; the sending unit generates on-hook and off-hook signaling data according to the on-hook and off-hook information through the processor, and sends the on-hook and off-hook instruction to the DTMF signal generator; the on-hook and off-hook signaling data is encoded and processed by the DTMF signal generator, and after obtaining the first dual-tone multi-frequency DTMF signal, the first DTMF signal is sent to the second device; the DTMF signal receiver is monitored through the interrupt program, and if the DTMF signal receiver receives the second DTMF signal, the second DTMF signal is read from the DTMF signal receiver through the processor, and the second DTMF signal is decoded and processed to obtain a ringing processing scheme; the first prompt tone is sent to the first device and / or the second prompt tone is sent to the second device according to the ringing processing scheme through the ring current / signal tone module. In this way, it is possible to allocate dedicated line user communication resources through the main program and monitor DTMF signals through the interrupt program, process the on-hook and off-hook information of dedicated line user communications, and send the corresponding prompt ringtone to the first device and / or second device corresponding to the dedicated line user according to the processing result. That is, it is only necessary to synchronize the DTMF signals of the first device and the second device corresponding to the dedicated line user to push personalized prompt ringtones, thereby reducing the cost of the system for processing dedicated line user communications and improving user experience.
[0122] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.
[0123] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments, and the above computer includes a control platform.
[0124] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a control platform.
[0125] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0126] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0127] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0128] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0130] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0131] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0132] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A communication device based on dual-tone multi-frequency signal, characterized in that, Applied to a communication device, the communication device comprises a two-line user interface module, a processing module and a switching matrix module, the two-line user interface module, the processing module and the switching matrix module are connected in sequence, and the communication device comprises a first device and a second device; comprising: The second-line user interface module is used to send the on-hook and off-hook information of the first device to the processing module when detecting the on-hook and off-hook action of the first device; The processing module is used to encode the on-hook and off-hook information to obtain a first dual-tone multi-frequency DTMF signal, and send the first DTMF signal to the second device through the switching matrix module; The processing module is further used to receive a second DTMF signal forwarded by the switching matrix module, and decode the second DTMF signal to obtain a ringing processing scheme, wherein the second DTMF signal is generated by the second device according to the first DTMF signal and a target operation of a user corresponding to the second device, and the target operation includes at least one of the following: an off-hook operation and an on-hook operation; The processing module is further used to send a first prompt tone to the first device and / or send a second prompt tone to the second device according to the ringing processing scheme, wherein the first prompt tone and the second prompt tone respectively include at least one of the following: ringing, ringback tone and busy tone.
2. The communication device based on dual tone multi-frequency signal according to claim 1, characterized in that: The processing module includes an interface detection module and a processor, and the interface detection module is connected to the two-line user interface module and the processor respectively; wherein, The interface detection module is used to obtain the on-hook and off-hook information through the second-line user interface module, and report the on-hook and off-hook information to the processor; The processor is configured to generate on-hook and off-hook signaling data according to on-hook and off-hook information of the first device.
3. The communication device based on dual tone multi-frequency signal according to claim 2, characterized in that: The processing module also includes a DTMF signal generator, an operational amplifier module and an analog switch, and the DTMF signal generator, the processor, the operational amplifier module and the analog switch are connected via a data transmission interface; After generating the on-hook and off-hook signaling data according to the on-hook and off-hook information of the first device, the processor is further configured to: Controlling the analog switch to close, and sending the on-hook or off-hook signaling data to the DTMF signal generator through the data transmission interface; Controlling the DTMF signal generator to generate the first DTMF signal according to the on-hook or off-hook signaling data; After controlling the operational amplifier module to amplify the first DTMF signal, the first DTMF signal is sent to the switching matrix module through the data transmission interface; The analog switch is controlled to be opened.
4. The communication device based on dual tone multi-frequency signal according to claim 3, characterized in that: The processing module also includes a DTMF signal receiver, which includes a frequency band separation filter and a decoder. The DTMF signal receiver is connected to the processor and the switching matrix module respectively, and is used for: receiving a second DTMF signal forwarded by the switching matrix module, and performing signal separation on the second DTMF signal through the frequency band separation filter to obtain a high frequency group signal and a low frequency group signal; The high-frequency group signal and the low-frequency group signal are analyzed and processed by the decoder to obtain a valid DTMF signal; Reporting notification information to the processor, where the notification information is used to instruct the processor to read the valid DTMF signal.
5. The communication device based on dual tone multi-frequency signal according to claim 4, characterized in that: After reporting the notification information to the processor, the processor is further configured to: Outputting a first enable signal, wherein the first enable signal is used to control the DTMF signal receiver to output the valid DTMF signal; The transmission direction of the data transmission interface is adjusted to the input direction, and the effective DTMF signal is read from the DTMF signal receiver through the data transmission interface; After the valid DTMF signal is read, a second enable signal is output, wherein the second enable signal is used to control the DTMF signal receiver to stop outputting the valid DTMF signal.
6. A communication method based on dual audio signal DTMF, characterized in that: Applied to a processing module, the processing module includes an interface detection circuit, a processor, a DTMF signal generator, a DTMF signal receiver, a memory and a ringing current / signal tone module, the memory is used to store programs, and the programs include a main program and an interrupt program; The method comprises: Starting the program through the processor, and initializing the processing module and allocating dedicated line user resources through the main program; Acquiring on / off hook information of the first device through the interface detection circuit, wherein the on / off hook information is used to indicate an on / off hook action of a user corresponding to the first device; Generate on-hook and off-hook signaling data according to the on-hook and off-hook information by the processor, and send the on-hook and off-hook instruction to the DTMF signal generator; After encoding the on-hook and off-hook signaling data by the DTMF signal generator to obtain a first dual-tone multi-frequency DTMF signal, the first DTMF signal is sent to the second device; The DTMF signal receiver is monitored by the interrupt program. If the DTMF signal receiver receives a second DTMF signal, the processor reads the second DTMF signal from the DTMF signal receiver and decodes the second DTMF signal to obtain a ringing processing scheme, wherein the second DTMF signal is generated by the second device according to the first DTMF signal and a target operation of a user corresponding to the second device, and the target operation includes at least one of the following: an off-hook operation and an on-hook operation; The ringing current / signal tone module sends a first prompt tone to the first device and / or sends a second prompt tone to the second device according to the ringing processing scheme, wherein the first prompt tone and the second prompt tone respectively include at least one of the following: ringing, ringback tone and busy tone.
7. The method according to claim 6, characterized in that The sending a first prompt tone to the first device and / or sending a second prompt tone to the second device according to the ringing processing scheme by the ringing current / signal tone module includes: If the target operation is determined to be the off-hook operation according to the second DTMF signal, the processor controls the first device and the second device to be connected, and sets the state of the dedicated communication line to a talk state; If the target operation is determined to be the on-hook operation according to the second DTMF signal, the processor controls the ringing current / signal tone module to send the ringback tone to the first device, and sends the ringing tone to the second device.
8. The method according to claim 7, characterized in that After the processor controls the first device and the second device to be connected, the method further includes: If it is detected that the on-hook and off-hook actions of the first device and the second device are both on-hook operations, the processor releases the dedicated line user resources and sets the state of the dedicated line communication line to an idle state.
9. An electronic device, characterized in that: The invention comprises an interface detection circuit, a processor, a DTMF signal generator, a DTMF signal receiver, a memory, a ringing current / signal tone module and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for executing the steps in the method according to any one of claims 6 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 6 to 8.
Citation Information
Patent Citations
Micro-computer audio interface based CTI equipment
CN101115091A
No-central-switch amplifying intercom communication system with dialing function
CN107959897A