Telephone data transmission method based on NGN network
By converting telephone data into DTMF audio signals in the NGN network and encoded, the data transmission instability caused by delay, jitter and packet loss in the NGN network is solved, and the integrity and reliability of data transmission are achieved.
Patent Information
- Application Number
- CN202411561281.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-02-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The delay, jitter and packet loss problems of NGN networks lead to unstable telephone data transmission in traditional PSTN networks, and data transmission failure often occurs.
By using DTMF frequency in an NGN network to convert telephone data into DTMF audio signals, an analog ContactID audio group is generated, and it is encoded according to preset encoding rules, a CoIP audio group is generated, and finally sent to the alarm receiving machine.
This method can solve the timing disorder caused by out-of-band transmission and network delay, jitter, and packet loss, avoid data packet loss and stickiness, and ensure the integrity and reliability of data transmission.
Smart Images

Figure CN119484704A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, for example, to a telephone data transmission method based on an NGN network. Background Art
[0002] In the telephone transmission of the alarm controller, the traditional PSTN (Public Switched Telephone Network) network is often used to transmit data, and the event codes such as user accounts and alarm events are transmitted through single-frequency pulse groups, DTMF, FSK, etc. PSTN technology is based on circuit hard switching, which enables the above protocols to operate stably and reliably for a long time.
[0003] After entering the 21st century, NGN (Next Generation Network) has been replacing PSTN at an accelerated pace. NGN is an IP-based soft switching technology (fiber-optic telephone). In telephone services, lossy compression and silence detection (no data is sent when there is no sound) are used to save network bandwidth. The network itself also has delays, jitters, and packet loss, which has a great impact on traditional PSTN-based fax and alarm services, and data transmission failures often occur.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The embodiment of the present disclosure provides a method for transmitting telephone data based on an NGN network, including:
[0007] After the handshake is completed, the phone data to be transmitted is obtained;
[0008] The telephone data to be transmitted is converted into DTMF audio signals according to the preset DTMF frequency, and a simulated ContactID audio group is generated;
[0009] The simulated ContactID audio group is encoded according to a preset first encoding rule to generate a CoIP audio group; and the CoIP audio group is sent to an alarm receiving machine.
[0010] In one embodiment, the preset DTMF frequency is a standard DTMF frequency, and the method of converting the telephone data to be transmitted into a DTMF audio signal according to the preset DTMF frequency to generate a simulated ContactID audio group includes:
[0011] Shift all DTMF audio in the standard DTMF frequency to the standard DTMF frequency detection that can bypass the VOIP gateway and generate a custom DTMF frequency;
[0012] The telephone data to be transmitted is converted into DTMF audio signals according to the custom DTMF frequency, and a simulated ContactID audio group is generated.
[0013] In one embodiment, shifting all DTMF audio in the standard DTMF frequency to a standard DTMF frequency detection capable of avoiding a VOIP gateway includes: shifting all DTMF audio upward by 400 Hz.
[0014] In one embodiment, the analog ContactID audio group includes a combination of n consecutive groups of DTMF audio signals and silence, wherein n is a natural number greater than 1, that is, a silence setting time is performed each time a DTMF audio signal is sent; encoding the analog ContactID audio group according to a preset first encoding rule includes:
[0015] Calculate the first complement of each DTMF audio signal in the analog ContactID audio group according to a preset first complement calculation rule;
[0016] The corresponding silence after each DTMF audio signal is replaced by the first complement code of each DTMF audio signal.
[0017] In one embodiment, the first complement calculation rule includes (D+10) modulo 16.
[0018] In one embodiment, after replacing the silence corresponding to each DTMF audio signal with the first complement of each DTMF audio signal, the method further comprises:
[0019] For two adjacent DTMF audio signals, after replacement, checking whether the first complement code of the first DTMF audio signal is the same as the second DTMF audio signal;
[0020] Under the same circumstances, calculating the second complement of the first DTMF audio signal according to a preset second complement calculation rule;
[0021] The first complement of the first DTMF audio signal is replaced by the second complement of the first DTMF audio signal.
[0022] In one embodiment, the second complement calculation rule includes (D+5) remainder 16.
[0023] The telephone data transmission method based on the NGN network provided by the embodiment of the present disclosure can achieve the following technical effects:
[0024] The above solution can solve the timing confusion problems caused by out-of-band transmission and network delay, jitter, and packet loss, help avoid data packet loss and stickiness, and ensure the integrity and reliability of data transmission.
[0025] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0027] Figure 1 It is a schematic diagram of a telephone data transmission method based on an NGN network provided by an embodiment of the present disclosure;
[0028] Figure 2 is a schematic diagram of standard DTMF frequencies provided by an embodiment of the present disclosure;
[0029] Figure 3 is a schematic diagram of a custom DTMF frequency provided by an embodiment of the present disclosure;
[0030] Figure 4 is a schematic diagram of a ContactID audio group provided by an embodiment of the present disclosure;
[0031] Figure 5 It is a schematic diagram of a CoIP audio group provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0033] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0034] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0035] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.
[0036] Combination Figure 1 The embodiment of the present disclosure provides a method for transmitting telephone data based on an NGN network, including:
[0037] S101, obtaining telephone data to be transmitted after the handshake is completed.
[0038] S102: convert the telephone data to be transmitted into a DTMF audio signal according to a preset DTMF frequency, and generate a simulated ContactID audio group.
[0039] S103: Encode the simulated ContactID audio group according to a preset first encoding rule to generate a CoIP audio group.
[0040] S104, sending the CoIP audio group to the alarm receiving machine.
[0041] The above solution can solve the timing confusion problems caused by out-of-band transmission and network delay, jitter, and packet loss, help avoid data packet loss and stickiness, and ensure the integrity and reliability of data transmission.
[0042] In one embodiment, the preset DTMF frequency is a standard DTMF frequency, and the telephone data to be transmitted is converted into a DTMF audio signal according to the preset DTMF frequency to generate an analog ContactID audio group, including: offsetting all DTMF audio in the standard DTMF frequency to a standard DTMF frequency detection that can avoid the VOIP gateway to generate a custom DTMF frequency; converting the telephone data to be transmitted into a DTMF audio signal according to the custom DTMF frequency to generate an analog ContactID audio group.
[0043] See also Figure 2, the traditional common standard DTMF frequency includes 4 high-frequency signals and 4 low-frequency signals. Among them, the low-frequency signals include 697Hz, 770Hz, 852Hz, and 941Hz; the high-frequency signals include 1209Hz, 1336Hz, 1477Hz, and 1633Hz. Each DTMF signal consists of a high-frequency signal and a low-frequency signal, generating a total of 16 signals; for example, the number 1 consists of a high-frequency signal of 1209Hz and a low-frequency signal of 697Hz.
[0044] By adjusting all DTMF audio, all DTMF audio is shifted to avoid the standard DTMF frequency detection of the VOIP gateway, so as to achieve the same transparent transmission of the shifted DTMF signal and voice data, which helps to ensure the reliability and integrity of the data.
[0045] In one embodiment, referring to Figure 3 , shift all DTMF audio up by 400Hz. When shifting all DTMF audio, ensure that the shifted custom DTMF frequency is in the best transmission frequency band of the telephone line for easy transmission.
[0046] In one embodiment, referring to Figure 4 The analog ContactID audio group includes a combination of n consecutive DTMF audio signals and silence, wherein n is a natural number greater than 1. That is, each time a DTMF audio signal is sent, the silence is set for a set time.
[0047] In this article, D is unified as an audio signal; Dn is the nth audio signal; t is silence; tn is the nth silence; B is the complement code; and Bn is the complement code of Dn.
[0048] Reference Figure 5 In one embodiment, encoding the simulated ContactID audio group according to a preset first encoding rule includes:
[0049] The first complement of each DTMF audio signal in the simulated ContactID audio group is calculated according to a preset first complement calculation rule; wherein the first complement calculation rule includes (D+10) modulo 16; wherein D represents the DTMF audio signal; and the silence corresponding to each DTMF audio signal is replaced with the first complement of each DTMF audio signal.
[0050] The ContactID audio group consists of 50mS signal and 50mS silence. Each data is distinguished by silence. When adhesion occurs, the decoding circuit cannot normally identify adjacent data. For example, the analog ContactID audio group 1100... will be recognized as 10..., and the loss of data bits will cause transmission failure.
[0051] The CoIP audio group uses the complement of the previous DTMF audio signal to replace silence, making adjacent data different, effectively solving the problem of data sticking and being unrecognizable. For example, according to the first complement calculation rule, the complement of 1 is B, and the complement of 0 is A, so the CoIP audio group converted from the simulated ContactID audio group is 1B1B0A0A... The complementary code self-synchronization is used to replace the original silence synchronization method to avoid network packet loss and packet sticking data disorder.
[0052] In one embodiment, after replacing the silence corresponding to each DTMF audio signal with the first complement of each DTMF audio signal, the method further includes: for two adjacent DTMF audio signals, checking whether the first complement of the first DTMF audio signal is the same as the second DTMF audio signal after the replacement; if they are the same, calculating the second complement of the first DTMF audio signal according to a preset second complement calculation rule; and replacing the first complement of the first DTMF audio signal with the second complement of the first DTMF audio signal.
[0053] For example, assuming that the analog ContactID audio group is 6060..., the first complement of 6 calculated according to the first complement calculation rule is 0, and the CoIP audio group after the analog ContactID audio group is converted is 600A600A... Among them, if there are two identical 0s, it is easy to be identified as 60A60A..., so that the loss of data leads to transmission failure. Therefore, the second complement of 6 is calculated as B using the second complement calculation rule, and the CoIP audio group after the analog ContactID audio group is converted is 6B0A6B0A..., at this time, the two adjacent data in the sequence are different, which effectively solves the problem of data adhesion and unrecognition. The complementary code self-synchronization is adopted to replace the original silent synchronization method to avoid network packet loss and packet sticking data disorder.
[0054] The complementary code algorithm has self-verification and error correction functions. When encoding the analog ContactID audio group and generating the CoIP audio group, the complementary code can also be used as a check code for the data code because of the use of complementary code. When each pair of data is received, it verifies whether the latter data is the complement of the previous data, thereby completing the verification.
[0055] After using CoIP-related protocols to replace the original ContactID protocol, in order to be compatible with the upper-layer transmission protocol and avoid protocol conversion such as 4+2 to ContactID, the CoIP data encoding retains the main part of ContactID, including account, event code, subsystem number, and zone number; cancels the CID identification code 18, and the data format uploaded by the serial port to the alarm receiver remains unchanged.
[0056] After adopting the CoIP protocol, DTMF offset is transmitted out-of-band. The host defines each DTMF time. DTMF deviation is transparently transmitted from the standard. Soft decoding is used. The reception time of a single message is consistent with the total reception time of ContactID. The received signal strength corresponds to the host transmission gain, ensuring the integrity and reliability of data transmission.
[0057] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0058] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0059] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A telephone data transmission method based on an NGN network, comprising: After the handshake is completed, the phone data to be transmitted is obtained; The telephone data to be transmitted is converted into DTMF audio signals according to the preset DTMF frequency, and a simulated ContactID audio group is generated; Encoding the simulated ContactID audio group according to a preset first encoding rule to generate a CoIP audio group; Send the CoIP audio group to the alarm receiver.
2. The method for transmitting telephone data based on NGN network according to claim 1, characterized in that: The preset DTMF frequency is a standard DTMF frequency, and the telephone data to be transmitted is converted into a DTMF audio signal according to the preset DTMF frequency to generate a simulated ContactID audio group, including: Shift all DTMF audio in the standard DTMF frequency to the standard DTMF frequency detection that can bypass the VOIP gateway and generate a custom DTMF frequency; The telephone data to be transmitted is converted into DTMF audio signals according to the custom DTMF frequency, and a simulated ContactID audio group is generated.
3. The method for transmitting telephone data based on NGN network according to claim 2, characterized in that: The shifting of all DTMF audio in the standard DTMF frequency to the standard DTMF frequency detection capable of avoiding the VOIP gateway includes: shifting all DTMF audio upward by 400 Hz.
4. The method for transmitting telephone data based on NGN network according to any one of claims 1 to 3, characterized in that: The analog ContactID audio group includes a combination of n consecutive groups of DTMF audio signals and silence, wherein n is a natural number greater than 1, that is, a silence setting time is performed each time a DTMF audio signal is sent; encoding the analog ContactID audio group according to a preset first encoding rule includes: Calculate the first complement of each DTMF audio signal in the analog ContactID audio group according to a preset first complement calculation rule; The corresponding silence after each DTMF audio signal is replaced by the first complement code of each DTMF audio signal.
5. The method for transmitting telephone data based on NGN network according to claim 4, characterized in that: The first complement calculation rule includes (D+10) modulo 16; wherein D represents a DTMF audio signal.
6. The method for transmitting telephone data based on NGN network according to claim 4, characterized in that: After replacing the silence corresponding to each DTMF audio signal with the first complement of each DTMF audio signal, the method further comprises: For two adjacent DTMF audio signals, after replacement, checking whether the first complement code of the first DTMF audio signal is the same as the second DTMF audio signal; Under the same circumstances, calculating the second complement of the first DTMF audio signal according to a preset second complement calculation rule; The first complement of the first DTMF audio signal is replaced by the second complement of the first DTMF audio signal.
7. The method for transmitting telephone data based on NGN network according to claim 6, characterized in that: The second complement calculation rule includes (D+5) modulo 16, where D represents the DTMF audio signal.
Citation Information
Cited By
Alarm signal relay transmission method, device and equipment
CN121262321A