WO2024001888A1 - 数据处理方法、设备及计算机存储介质 - Google Patents

数据处理方法、设备及计算机存储介质 Download PDF

Info

Publication number
WO2024001888A1
WO2024001888A1 PCT/CN2023/101500 CN2023101500W WO2024001888A1 WO 2024001888 A1 WO2024001888 A1 WO 2024001888A1 CN 2023101500 W CN2023101500 W CN 2023101500W WO 2024001888 A1 WO2024001888 A1 WO 2024001888A1
Authority
WO
WIPO (PCT)
Prior art keywords
digital signal
phone
entity
buffer area
tdm
Prior art date
Application number
PCT/CN2023/101500
Other languages
English (en)
French (fr)
Inventor
徐晓平
Original Assignee
深圳市中兴微电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2024001888A1 publication Critical patent/WO2024001888A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/30Devices which can set up and transmit only one digit at a time
    • H04M1/50Devices which can set up and transmit only one digit at a time by generating or selecting currents of predetermined frequencies or combinations of frequencies
    • H04M1/505Devices which can set up and transmit only one digit at a time by generating or selecting currents of predetermined frequencies or combinations of frequencies signals generated in digital form
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/30Devices which can set up and transmit only one digit at a time
    • H04M1/50Devices which can set up and transmit only one digit at a time by generating or selecting currents of predetermined frequencies or combinations of frequencies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/18Electrical details
    • H04Q1/30Signalling arrangements; Manipulation of signalling currents
    • H04Q1/44Signalling arrangements; Manipulation of signalling currents using alternate current
    • H04Q1/444Signalling arrangements; Manipulation of signalling currents using alternate current with voice-band signalling frequencies
    • H04Q1/45Signalling arrangements; Manipulation of signalling currents using alternate current with voice-band signalling frequencies using multi-frequency signalling
    • H04Q1/457Signalling arrangements; Manipulation of signalling currents using alternate current with voice-band signalling frequencies using multi-frequency signalling with conversion of multifrequency signals into digital signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/18Electrical details
    • H04Q1/30Signalling arrangements; Manipulation of signalling currents
    • H04Q1/44Signalling arrangements; Manipulation of signalling currents using alternate current
    • H04Q1/444Signalling arrangements; Manipulation of signalling currents using alternate current with voice-band signalling frequencies
    • H04Q1/45Signalling arrangements; Manipulation of signalling currents using alternate current with voice-band signalling frequencies using multi-frequency signalling
    • H04Q1/457Signalling arrangements; Manipulation of signalling currents using alternate current with voice-band signalling frequencies using multi-frequency signalling with conversion of multifrequency signals into digital signals
    • H04Q1/4575Signalling arrangements; Manipulation of signalling currents using alternate current with voice-band signalling frequencies using multi-frequency signalling with conversion of multifrequency signals into digital signals which are transmitted in digital form

Definitions

  • the present disclosure relates to the field of communication technology, and specifically to a data processing method, a device and a computer storage medium.
  • the process of voice data transmission can be summarized as the following steps: 1) The phone transmits the analog signal to the TDM (Time Division Multiplexing, Time Division Multiplexing) entity; 2) The TDM entity converts the analog signal into a digital signal, and transmits the digital signal to the DSP (Digital Signal Processing, digital signal processing) entity; 3) DSP entity performs DTMF (Dual Tone Multi Frequency, dual tone multi-frequency) detection on these digital signals during the dialing stage, and compresses the digital signals and sends them directly during the call stage .
  • TDM Time Division Multiplexing, Time Division Multiplexing
  • DSP Digital Signal Processing, digital signal processing
  • DTMF Dual Tone Multi Frequency, dual tone multi-frequency
  • Embodiments of the present disclosure provide a data processing method, applied to DSP entities.
  • the method includes: after detecting that the phone is off-hook, obtaining a first digital signal from a buffer area, wherein the buffer area is pre-stored in a local memory. established, the first digital signal is The TDM entity converts the first analog signal sent by the phone after going off-hook and stores it in the buffer area; performs DTMF detection on the first digital signal to identify the dialed number of the phone; Perform the above steps until the preset number recognition end conditions are met.
  • Embodiments of the present disclosure also provide a data processing method, applied to TDM entities.
  • the method includes: receiving a first analog signal sent by a phone after going off-hook; converting the first analog signal into a first digital signal;
  • the first digital signal is stored in a buffer area for the DSP entity to obtain the first digital signal from the buffer area and identify the dialing number of the phone according to the first digital signal, wherein, the The buffer area is pre-established in memory.
  • An embodiment of the present disclosure also provides a device, which device at least includes a DSP entity and a TDM entity; the TDM entity is configured to: receive the first analog signal sent by the phone after going off-hook; convert the first analog signal into The first digital signal; store the first digital signal in a cache area, where the cache area is pre-established in the memory; the DSP entity is used to: after detecting that the phone is off-hook, retrieve the first digital signal from the cache area Obtain the first digital signal from
  • An embodiment of the present disclosure also provides an electronic device, including: one or more processors; a storage device on which one or more programs are stored. When the one or more programs are processed by the one or more processors, When executed, the one or more processors are caused to implement the data processing method as described above.
  • Embodiments of the present disclosure also provide a computer storage medium on which a computer program is stored, wherein when the program is executed, the aforementioned data processing method is implemented.
  • Figure 1 is a schematic flowchart of a data processing method according to an embodiment of the present disclosure
  • Figure 2 is another schematic flow diagram of a data processing method according to an embodiment of the present disclosure
  • Figure 3 is another schematic flow diagram of a data processing method according to an embodiment of the present disclosure.
  • Figure 4 is another schematic flow diagram of a data processing method according to an embodiment of the present disclosure.
  • Figure 5 is a schematic networking diagram of a data processing system according to an embodiment of the present disclosure.
  • Figure 6 is a workflow diagram of a data processing method according to an embodiment of the present disclosure.
  • Embodiments described herein may be described with reference to plan and/or cross-sectional illustrations, with the aid of idealized schematic illustrations of the present disclosure. Accordingly, example illustrations may be modified based on manufacturing techniques and/or tolerances. Therefore, the embodiments are not limited to those shown in the drawings but include modifications of configurations formed based on the manufacturing process. Accordingly, the regions illustrated in the figures are of a schematic nature and the shapes of the regions shown in the figures are illustrative of the specific shapes of regions of the element and are not intended to be limiting.
  • the DSP entity synchronously receives the data transmitted by the TDM entity. However, the TDM entity transmits data according to the preset frame length in any case. If the DSP entity If the processing is not timely, some data in the TDM will be overwritten, which means that the original TDM needs to be used by the DSP. Data loss is intuitively reflected in the phenomenon of lost numbers.
  • a space can be opened up in the memory to establish a cache dedicated to storing TDM data in the phone dialing stage.
  • the DSP entity obtains the TDM data from the cache to perform DTMF detection to identify The dialed number of the outgoing phone, thereby preventing partial data in the TDM from being overwritten and resulting in the loss of the original TDM data used to identify the dialed number.
  • embodiments of the present disclosure provide a data processing method, which is applied to DSP entities. As shown in Figure 1 , the method may include the following steps S11 to S13.
  • step S11 after detecting that the phone is off-hook, the first digital signal is obtained from the buffer area, where the buffer area is pre-established in the local memory, and the first digital signal is a time division multiplexing TDM entity It is converted according to the first analog signal sent by the phone after going off-hook and stored in the buffer area.
  • step S12 dual tone multi-frequency DTMF detection is performed on the first digital signal to identify the dialed number of the phone.
  • step S13 the above steps are executed until the preset number recognition end condition is met.
  • Both DSP entities and TDM entities are modules in ONU (Optical Network Unit) equipment or VOIP equipment.
  • the buffer area is where the ONU equipment or VOIP equipment pre-registers (for example, when waiting for dialing after the phone goes off-hook for the first time). Created in a space created in local memory.
  • the ONU device is connected to the optical fiber, and the VOIP device is connected to some kind of upstream device.
  • the first analog signal sent by the phone to the TDM entity after going off-hook carries information about the dialed number. DTMF detection is an existing technology and will not be described again here.
  • the VOIP application layer can determine whether the preset number identification end conditions are met through number matching, that is, determine whether the identified dialing number matches the preset rules (for example: whether the number of identified numbers is 11, Whether the identified number is in the phone book, etc.) matches. When a match is determined, the VOIP application layer can issue a number detection completion flag to the DSP entity to notify that the number identification end condition has been reached.
  • the preset rules for example: whether the number of identified numbers is 11, Whether the identified number is in the phone book, etc.
  • the DSP entity obtains the first digital signal from the buffer area frame by frame, that is, the DSP entity needs to obtain the first digital signal from the buffer area multiple times.
  • a number can be identified based on multiple frames of digital signals. That is to say, the DSP entity needs to obtain multiple first digital signals to identify a number.
  • the DSP entity by storing the original TDM data related to the dialed number (ie, the first digital signal) into a cache area established in the memory, the DSP entity obtains data from the cache area instead of from the TDM entity.
  • the original TDM data for DTMF detection to avoid the loss of the original TDM data due to untimely processing or failure of the TDM entity, thereby avoiding packet loss, improving data processing efficiency and accuracy, and improving the user's call experience.
  • the buffer area can be released in order to save memory.
  • the buffer area is not large, it can also be retained.
  • obtaining the first digital signal from the buffer area may include the following steps S111 to S112 .
  • step S111 the first digital signal acquisition instruction is received, and the first destination time carried therein is obtained.
  • step S112 a first digital signal is obtained from the buffer area according to the first destination time.
  • the first digital signal acquisition instruction is sent to the DSP entity by the control module of the ONU device or VOIP device.
  • the control module is used to control the DSP entity to acquire digital signals from the TDM or acquire digital signals from the buffer area. Before the number identification end condition is met, the control module controls the DSP entity to obtain a digital signal from the buffer area.
  • a related way to prevent packet loss is to cache the detected numbers during the interaction between the media gateway and the media gateway controller.
  • This method has a delay problem caused by caching; and the embodiment of the present disclosure is to cache the original TDM
  • the data is cached in a buffer area opened in the memory.
  • the DSP entity can first extract the first number before the destination time from the buffer area. letter Number.
  • obtaining the first digital signal from the buffer area according to the first destination time may include: According to the preset time interval and the first destination time, determine the second destination time before the first destination time; obtain the first digital signal marked with the second destination time from the buffer area .
  • the preset time interval can be 2ms, 3ms, 4ms, etc., and can be adjusted according to the actual situation. For example, assuming that the first destination time is 10ms and the preset time interval is 3ms, then the DSP entity will obtain the first digital signal at 7ms from the buffer area, and the DSP entity will continue until the first dialed number is recognized. Obtain the first digital signal before the first destination time from the buffer area. This can ensure that the DSP entity will be able to obtain the first digital signal at 10ms, which can not only obtain sufficient data for DTMF detection, but also eliminate perceptible time delay.
  • the DSP entity can obtain the first digital signal from the buffer area according to the first destination time. Accordingly, in some embodiments, after identifying the first dialed number of the phone, obtaining the first digital signal from the buffer area according to the first destination time (ie, step S112) may include: Obtain the first digital signal marked with the first destination time from the buffer area.
  • the perceptible delay between phone dialing and DTMF detection can be eliminated.
  • the first analog signal sent by the phone corresponds to the key command it receives. Even if there is a long time interval between the two first analog signals, it is caused by the long time interval between the user's actual key presses. After identifying the first dialed number, there is no need to eliminate the delay. That is, assuming that the first destination time is the 10th millisecond, the DSP entity obtains the first digital signal at the 10th millisecond from the buffer area.
  • the phone After the preset number recognition end conditions are met, that is, after the DTMF detection is completed, the phone completes dialing and sends a second analog signal to the TDM entity.
  • the second analog signal is the data in the call phase. Since the user's dialing speed is usually significantly lower than the DTMF detection speed, data can be transmitted synchronously between the DSP entity and the TDM entity at this time. That is to say, the second digital signal converted by the TDM entity according to the second analog signal can be directly stored.
  • the DPS entity Stored locally in the TDM entity, the DPS entity changes from asynchronously acquiring the first digital signal in the buffer area to synchronously acquiring the second digital signal in the TDM entity.
  • the method may further include: obtaining a second digital signal from the TDM entity for transmission. , wherein the second digital signal is converted by the TDM entity according to the second analog signal sent by the phone after completion of dialing.
  • control module controls the DSP entity to obtain the digital signal from the TDM entity.
  • the data processing method provided by the embodiment of the present disclosure can also be applied to TDM entities. As shown in Figure 3, the method can include the following steps S21 to S23.
  • step S21 receive the first analog signal sent by the phone after going off-hook.
  • step S22 the first analog signal is converted into a first digital signal.
  • step S23 the first digital signal is stored in a buffer area for the DSP entity to obtain the first digital signal from the buffer area and identify the dialing number of the phone according to the first digital signal. number, wherein the buffer area is pre-established in the memory.
  • the DSP entity by storing the original TDM data related to the dialed number (ie, the first digital signal) into a cache area established in the memory, the DSP entity obtains data from the cache area instead of from the TDM entity.
  • the original TDM data for DTMF detection to avoid the loss of the original TDM data due to untimely processing or failure of the TDM entity, thereby avoiding packet loss, improving data processing efficiency and accuracy, and improving the user's call experience.
  • the method may further include the following steps S24 to S26.
  • step S24 receive the second analog signal sent by the phone after completing the dialing.
  • step S25 the second analog signal is converted into a second digital signal.
  • step S26 the second digital signal is sent to the DSP entity for the DSP entity to transmit the second digital signal.
  • embodiments of the present disclosure also provide a device, which at least includes a DSP entity and a TDM entity.
  • the TDM entity is used to: receive the first analog signal sent by the phone after going off-hook; convert the first analog signal into a first digital signal; store the first digital signal in a buffer area, where The buffer area is pre-created from memory.
  • the DSP entity is configured to: obtain the first digital signal from the buffer area after detecting that the phone is off-hook; perform dual tone multi-frequency DTMF detection on the first digital signal to identify the dialing number of the phone; Perform the above steps until the preset number recognition end conditions are met.
  • FIG. 5 it is a schematic networking diagram of a data processing system provided by an embodiment of the present disclosure, in which A is a phone (which can also be called a fixed phone), B is a TDM entity, and C is a DSP entity with DTMF function.
  • D is the buffer area opened in the memory
  • E is the control module, used to control the DSP entity C to obtain the digital signal from the TDM entity B or the buffer area D
  • F is the delay elimination module, used to control the DSP entity C
  • TDM entity B, DSP entity C, buffer area D, control module E and delay elimination module F are all components of ONU equipment or VOIP equipment.
  • TDM entity B is connected to phone A
  • buffer D and control module E DSP entity C is connected to control module E and delay elimination module F
  • buffer D is connected to TDM entity B and control module E and delay elimination module F
  • control module E is connected to TDM entity B
  • F is connected to DSP entity C and buffer area D.
  • Figure 6 is a workflow diagram of a data processing method according to an embodiment of the present disclosure. As shown in Figure 6, the data processing method may include the following steps S31 to S42.
  • step S31 the cache area is opened.
  • the buffer area is pre-opened in the memory for the ONU device or VOIP device.
  • step S32 the phone sends an analog signal to the TDM entity.
  • step S33 the TDM entity converts the analog signal into a digital signal.
  • step S34 it is determined whether the cache area is enabled. If so, step S35 is executed. Otherwise, step S42 is executed.
  • step S35 the digital signal is stored in the buffer area.
  • step S36 it is determined whether the first dialed number is recognized. If so, step S38 is executed. Otherwise, step S37 is executed.
  • step S37 delay elimination processing is performed.
  • the delay elimination process is to determine the second destination time before the first destination time based on the preset time interval and the first destination time, and determine the first digital signal marked with the second destination time from the buffer area.
  • step S37 is performed when the first dialed number is not recognized. Before the first dialed number is recognized, delay elimination processing needs to be performed. After identifying the first dialed number, there is no need to perform delay elimination processing, so the DSP entity can directly fetch data from the buffer area.
  • step S38 the DSP entity fetches data from the buffer area.
  • step S39 DTMF detection is performed.
  • step S40 Determine whether all numbers are recognized, if so, execute step S41, otherwise execute step S32.
  • step S41 the cache area is closed.
  • step S42 the DSP entity obtains data from the TDM entity.
  • step S42 is executed when the buffer area is not opened, that is, the buffer area is closed, indicating that this is the call phase and the dialing phase has ended, so the DSP entity fetches data from the TDM entity.
  • embodiments of the present disclosure also provide an electronic device, including: one or more processors; a storage device on which one or more programs are stored; when the one or more programs are processed by the one or more When the processor executes, the one or more processors implement the data processing method as described above.
  • embodiments of the present disclosure also provide a computer storage medium on which a computer program is stored, wherein when the program is executed, the aforementioned data processing method is implemented.
  • Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
  • Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a general illustrative sense only and not for purpose of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone, or may be used in conjunction with other embodiments, unless expressly stated otherwise. Features and/or components are used in combination. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本公开提供数据处理方法,应用于DSP实体,所述方法包括:在检测到话机摘机后,从缓存区中获取第一数字信号,其中,所述缓存区是预先在本地内存中建立的,所述第一数字信号是TDM实体根据所述话机在摘机后发送的第一模拟信号转换得到、并存储到所述缓存区中的;对所述第一数字信号进行DTMF检测,以识别出所述话机的拨号号码;执行上述步骤直至满足预设的号码识别结束条件。本公开还提供一种设备及计算机存储介质。

Description

数据处理方法、设备及计算机存储介质
相关申请的交叉引用
本申请要求于2022年6月39日提交的名称为“数据处理方法、设备及计算机存储介质”的中国专利申请CN 202210761907.4的优先权,其全部内容通过引用并入本文中。
技术领域
本公开涉及通信技术领域,具体涉及一种数据处理方法、一种设备及一种计算机存储介质。
背景技术
语音数据传输的过程可以概括为如下步骤:1)话机将模拟信号传输给TDM(Time Division Multiplexing,时分复用)实体;2)TDM实体将模拟信号转换为数字信号,并将数字信号传输给DSP(Digital Signal Processing,数字信号处理)实体;3)DSP实体在拨号阶段对这些数字信号做DTMF(Dual Tone Multi Frequency,双音多频)检测,并在通话阶段则将数字信号压缩后直接发送出去。
目前拨号阶段存在着丢号现象,严重影响用户体验。相关技术中通常采用两种方式来防止丢号,一是在媒体网关在与媒体网关控制器交互的过程中缓存已经检测到的号码,但部分丢号现象是由原始TDM数据丢失而导致的,该方法仅仅缓存已经检测到的号码,不能解决根本问题,并且还存在着缓存带来的延时问题;二是对号码检测算法进行挖掘以及对检测流程进行完善,但是仍然没有考虑到原始TDM数据丢失的情况,同样不能解决根本问题。
发明内容
本公开实施例提供一种数据处理方法,应用于DSP实体,所述方法包括:在检测到话机摘机后,从缓存区中获取第一数字信号,其中,所述缓存区是预先在本地内存中建立的,所述第一数字信号是 TDM实体根据所述话机在摘机后发送的第一模拟信号转换得到、并存储到所述缓存区中的;对所述第一数字信号进行DTMF检测,以识别出所述话机的拨号号码;执行上述步骤直至满足预设的号码识别结束条件。
本公开实施例还提供一种数据处理方法,应用于TDM实体,所述方法包括:接收话机在摘机后发送的第一模拟信号;将所述第一模拟信号转换为第一数字信号;将所述第一数字信号存储到缓存区中,以供DSP实体从所述缓存区中获取所述第一数字信号并根据所述第一数字信号识别出所述话机的拨号号码,其中,所述缓存区是预先在内存中建立的。
本公开实施例还提供一种设备,所述设备至少包括DSP实体和TDM实体;所述TDM实体用于:接收话机在摘机后发送的第一模拟信号;将所述第一模拟信号转换为第一数字信号;将所述第一数字信号存储到缓存区中,其中,所述缓存区是预先在内存中建立的;所述DSP实体用于:在检测到话机摘机后,从缓存区中获取第一数字信号;对所述第一数字信号进行双音多频DTMF检测,以识别出所述话机的拨号号码;执行上述步骤直至满足预设的号码识别结束条件。
本公开实施例还提供一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如前所述的数据处理方法。
本公开实施例还提供一种计算机存储介质,其上存储有计算机程序,其中,所述程序被执行时实现如前所述的数据处理方法。
附图说明
图1是根据本公开实施例的数据处理方法的流程示意图;
图2是根据本公开实施例的数据处理方法的又一流程示意图;
图3是根据本公开实施例的数据处理方法的又一流程示意图;
图4是根据本公开实施例的数据处理方法的又一流程示意图;
图5是根据本公开实施例的数据处理系统的组网示意图;
图6是根据本公开实施例的数据处理方法的工作流程图。
具体实施方式
在下文中将参考附图更充分地描述示例实施例,但是所述示例实施例可以以不同形式来体现且不应当被解释为限于本文阐述的实施例。相反,提供这些实施例的目的在于使本公开透彻和完整,并将使本领域技术人员充分理解本公开的范围。
如本文所使用的,术语“和/或”包括一个或多个相关列举条目的任何和所有组合。
本文所使用的术语仅用于描述特定实施例,且不意欲限制本公开。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其他特征、整体、步骤、操作、元件、组件和/或其群组。
本文所述实施例可借助本公开的理想示意图而参考平面图和/或截面图进行描述。因此,可根据制造技术和/或容限来修改示例图示。因此,实施例不限于附图中所示的实施例,而是包括基于制造工艺而形成的配置的修改。因此,附图中例示的区具有示意性属性,并且图中所示区的形状例示了元件的区的具体形状,但并不旨在是限制性的。
除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。
由于VoIP(Voice over IP,网络电话)的即时性要求,DSP实体同步地接收TDM实体传输过来的数据,但是,TDM实体在任何情况下都是按照预先设置的帧长来传输数据,如果DSP实体处理不及时就会导致TDM中的部分数据被覆盖,也即导致DSP需要使用的原始TDM 数据丢失,直观体现为丢号现象。
有鉴于此,本公开实施例提出,可以从内存中开辟出一段空间建立专用于存储话机拨号阶段的TDM数据的缓存,在话机拨号阶段,DSP实体从缓存中获取TDM数据进行DTMF检测,以识别出话机的拨号号码,从而避免TDM中的部分数据被覆盖进而导致用于识别拨号号码的原始TDM数据丢失。
相应地,在一些实施例中,本公开实施例提供一种数据处理方法,应用于DSP实体,如图1所示,所述方法可以包括如下步骤S11至S13。
在步骤S11中,在检测到话机摘机后,从缓存区中获取第一数字信号,其中,所述缓存区是预先在本地内存中建立的,所述第一数字信号是时分复用TDM实体根据所述话机在摘机后发送的第一模拟信号转换得到、并存储到所述缓存区中的。
在步骤S12中,对所述第一数字信号进行双音多频DTMF检测,以识别出所述话机的拨号号码。
在步骤S13中,执行上述步骤直至满足预设的号码识别结束条件。
DSP实体和TDM实体均为ONU(Optical Network Unit,光网络单元)设备或VOIP设备中的模块,缓存区是ONU设备或VOIP设备预先(例如,在话机第一次摘机后等待拨号时)在本地内存中开辟一段空间中建立的。ONU设备连接到光纤,VOIP设备连接到某种上行设备。话机在摘机后向TDM实体发送的第一模拟信号,携带拨号号码有关信息。DTMF检测属于现有技术,此处不再赘述。
可以由VOIP应用层通过号码匹配来实现是否满足预设的号码识别结束条件的判断,即,判断已经识别出的拨号号码是否与预设规则(例如:识别出的号码的数量是否为11个、识别出的号码是否在电话簿中,等等)相匹配,当判断出匹配时,VOIP应用层可以向DSP实体下发号码检测完成标志,以通知已经达成号码识别结束条件。
需要注意的是,DSP实体是逐帧从缓存区中获取第一数字信号的,也即DSP实体需要多次从缓存区中获取第一数字信号,而在本领域中, 通常根据多帧数字信号才能识别出一个号码,也就是说,DSP实体需要获取多个第一数字信号才能识别出一个号码。在满足预设的号码识别结束条件时,DTMF检测完成,停止执行步骤S11、S12。
根据本公开实施例提供的数据处理方法,通过将与拨号号码有关的原始TDM数据(即第一数字信号)存储到在内存中建立的缓存区,DSP实体从缓存区中而不是从TDM实体中获取原始TDM数据进行DTMF检测,避免由于TDM实体处理不及时或者发生故障导致原始TDM数据丢失,进而避免出现丢包现象,提高了数据处理效率和准确性,提升了用户的通话体验。
需要注意的是,在满足号码识别结束条件之后,也即在完成DTMF检测之后,为了节省内存可以释放所述缓存区,当然,由于缓存区不大,也可以予以保留。
由于TDM按帧传输数据(即数字信号)并且每帧的时间都是ms(毫秒)级的,可以根据时间信息对帧进行标记,作为帧的索引。相应地,在一些实施例中,各所述第一数字信号均标记有时间信息,如图2所示,从缓存区中获取第一数字信号(即,步骤S11)可以包括如下步骤S111至S112。
在步骤S111中,接收第一数字信号获取指令,并获取其中携带的第一目的时间。
在步骤S112中,根据所述第一目的时间从所述缓存区中获取第一数字信号。
第一数字信号获取指令是ONU设备或VOIP设备的控制模块向DSP实体发送的,该控制模块用于控制DSP实体向TDM获取数字信号或向所述缓存区获取数字信号。在满足号码识别结束条件之前,该控制模块均控制DSP实体向所述缓存区获取数字信号。
一种防止丢包的相关方式是在媒体网关在与媒体网关控制器交互的过程中缓存已经检测到的号码,该方法存在着缓存带来的延时问题;而本公开实施例是将原始TDM数据缓存到在内存中开辟的缓存区,为了避免缓存原始TDM数据也带来延时问题,在识别出第一个号码之前,DSP实体可以先从缓存区中提取位于目的时间之前的第一数字信 号。
相应地,在一些实施例中,在识别出所述话机的第一个拨号号码之前,根据所述第一目的时间从所述缓存区中获取第一数字信号(即,步骤S112)可以包括:根据预设的时间间隔和所述第一目的时间,确定出位于所述第一目的时间之前的第二目的时间;从所述缓存区中获取标记有所述第二目的时间的第一数字信号。
预设的时间间隔可以为2ms、3ms、4ms等等,并且可以根据实际情况进行调整。例如,假设第一目的时间为第10ms且预设的时间间隔为3ms,那么DSP实体将从缓存区中获取第7ms的第一数字信号,并且在识别出第一个拨号号码之前,DSP实体一直从缓存区中获取位于第一目的时间之前的第一数字信号,如此可以保证DSP实体一定能够获取到第10ms的第一数字信号,既能够获取充足的数据进行DTMF检测,也能够消除可感知的时延。
在识别出第一个拨号号码之后,DSP实体就可以按照第一目的时间从缓存区中获取第一数字信号。相应地,在一些实施例中,在识别出所述话机的第一个拨号号码之后,根据所述第一目的时间从所述缓存区中获取第一数字信号(即,步骤S112)可以包括:从所述缓存区中获取标记有所述第一目的时间的第一数字信号。
也就是说,在识别出第一个拨号号码时,已经能够消除可感知的话机拨号与DTMF检测之间的时延,话机发送的第一模拟信号均是与其接收到的按键指令相对应的,即使存在两个第一模拟信号之间间隔的时间较长的情况,也是用户实际按键之间的间隔较长所导致的。从识别出第一个拨号号码之后,无需再消除延时,即,假设第一目的时间为第10ms,那么DSP实体从缓存区中获取第10ms的第一数字信号。
在满足预设的号码识别结束条件之后,也就是在完成DTMF检测之后,话机拨号完毕,向TDM实体发送第二模拟信号,第二模拟信号是通话阶段的数据。由于用户拨号的速度通常明显低于DTMF检测的速度,此时DSP实体与TDM实体之间已经可以同步传输数据,也就是说,TDM实体根据第二模拟信号转换得到的第二数字信号可以直接存 储在TDM实体本地,DPS实体从异步地获取缓存区中的第一数字信号转变为同步地获取TDM实体中的第二数字信号。
相应地,在一些实施例中,在执行上述步骤直至满足预设的号码识别结束条件(即,步骤S13)之后,所述方法还可以包括:从所述TDM实体中获取第二数字信号进行传输,其中,所述第二数字信号是所述TDM实体根据所述话机在拨号完毕后发送的第二模拟信号转换得到的。
在满足号码识别结束条件之后,控制模块控制DSP实体向TDM实体获取数字信号。
本公开实施例提供的数据处理方法,还可以应用于TDM实体,如图3所示,所述方法可以包括如下步骤S21至S23。
在步骤S21中,接收话机在摘机后发送的第一模拟信号。
在步骤S22中,将所述第一模拟信号转换为第一数字信号。
在步骤S23中,将所述第一数字信号存储到缓存区中,以供DSP实体从所述缓存区中获取所述第一数字信号并根据所述第一数字信号识别出所述话机的拨号号码,其中,所述缓存区是预先在内存中建立的。
根据本公开实施例提供的数据处理方法,通过将与拨号号码有关的原始TDM数据(即第一数字信号)存储到在内存中建立的缓存区,DSP实体从缓存区中而不是从TDM实体中获取原始TDM数据进行DTMF检测,避免由于TDM实体处理不及时或者发生故障导致原始TDM数据丢失,进而避免出现丢包现象,提高了数据处理效率和准确性,提升了用户的通话体验。
在一些实施例中,在接收话机在摘机后发送的第一模拟信号(即,步骤S21)之后,如图4所示,所述方法还可以包括如下步骤S24至S26。
在步骤S24中,接收话机在拨号完毕后发送的第二模拟信号。
在步骤S25中,将所述第二模拟信号转换为第二数字信号。
在步骤S26中,向所述DSP实体发送所述第二数字信号,以供所述DSP实体传输所述第二数字信号。
基于相同的技术构思,本公开实施例还提供一种设备,所述设备至少包括DSP实体和TDM实体。
所述TDM实体用于:接收话机在摘机后发送的第一模拟信号;将所述第一模拟信号转换为第一数字信号;将所述第一数字信号存储到缓存区中,其中,所述缓存区是预先从内存中建立的。
所述DSP实体用于:在检测到话机摘机后,从缓存区中获取第一数字信号;对所述第一数字信号进行双音多频DTMF检测,以识别出所述话机的拨号号码;执行上述步骤直至满足预设的号码识别结束条件。
以下结合图5及图6所示来对本公开提供的数据处理方法进行简要描述。
如图5所示,为本公开实施例提供的一种数据处理系统的组网示意图,其中,A为话机(也可以称为固话),B为TDM实体,C为具有DTMF功能的DSP实体,D为在内存中开辟的缓存区,E为控制模块,用于控制DSP实体C从TDM实体B中还是从缓存区D中获取数字信号,F为延时消除模块,用于为DSP实体C消除话机拨号与DTFM号码检测之间的延时,TDM实体B、DSP实体C、缓存区D、控制模块E和延时消除模块F均为ONU设备或VOIP设备中的组成部分。话机A连接到TDM实体B,TDM实体B连接到话机A、缓存区D和控制模块E,DSP实体C连接到控制模块E和延时消除模块F,缓存区D连接到TDM实体B、控制模块E和延时消除模块F,控制模块E连接到TDM实体B、DSP实体C和缓存区D,F连接到DSP实体C和缓存区D。
图6为根据本公开实施例的数据处理方法的工作流程图,如图6所示,数据处理方法可以包括如下步骤S31至S42。
在步骤S31,开启缓存区。
缓存区为ONU设备或VOIP设备预先在内存中开辟的。
在步骤S32,话机向TDM实体发送模拟信号。
在步骤S33,TDM实体将模拟信号转换为数字信号。
在步骤S34,判断缓存区是否开启,若是则执行步骤S35,否则执行步骤S42。
在步骤S35,将数字信号存储到缓存区中。
在步骤S36,判断是否识别出第一个拨号号码,若是则执行步骤S38,否则执行步骤S37。
在步骤S37,进行延时消除处理。
延时消除处理为,根据预设的时间间隔和第一目的时间确定出位于第一目的时间之前的第二目的时间,从缓存区中确定出标记有第二目的时间的第一数字信号。
需要注意的是,步骤S37是在未识别出第一个拨号号码的情况下执行的,在识别出第一个拨号号码之前,需要进行延时消除处理。识别出第一个拨号号码之后,无需进行延时消除处理,因此DSP实体可以直接从缓存区中取数据。
在步骤S38,DSP实体从缓存区中取数据。
在步骤S39,进行DTMF检测。
在步骤S40。判断是否识别出所有号码,若是则执行步骤S41,否则执行步骤S32。
在步骤S41,关闭缓存区。
在步骤S42、DSP实体从TDM实体中取数据。
需要注意的是,步骤S42是在缓存区未开启也即缓存区被关闭的情况下执行的,说明此时为通话阶段,拨号阶段已结束,因此DSP实体从TDM实体中取数据。
此外,本公开实施例还提供一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如前所述的数据处理方法。
此外,本公开实施例还提供一种计算机存储介质,其上存储有计算机程序,其中,所述程序被执行时实现如前所述的数据处理方法。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组 件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其他实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开的范围的情况下,可进行各种形式和细节上的改变。

Claims (10)

  1. 一种数据处理方法,应用于数字信号处理DSP实体,所述方法包括:
    在检测到话机摘机后,从缓存区中获取第一数字信号,其中,所述缓存区是预先在本地内存中建立的,所述第一数字信号是时分复用TDM实体根据所述话机在摘机后发送的第一模拟信号转换得到、并存储到所述缓存区中的;
    对所述第一数字信号进行双音多频DTMF检测,以识别出所述话机的拨号号码;
    执行上述步骤直至满足预设的号码识别结束条件。
  2. 根据权利要求1所述的方法,其中,各所述第一数字信号均标记有时间信息,并且从缓存区中获取第一数字信号包括:
    接收所述设备的控制模块发送的第一数字信号获取指令,并获取其中携带的第一目的时间;
    根据所述第一目的时间从所述缓存区中获取第一数字信号。
  3. 根据权利要求2所述的方法,其中,在识别出所述话机的第一个拨号号码之前,根据所述第一目的时间从所述缓存区中获取第一数字信号包括:
    根据预设的时间间隔和所述第一目的时间,确定出位于所述第一目的时间之前的第二目的时间;
    从所述缓存区中获取标记有所述第二目的时间的第一数字信号。
  4. 根据权利要求2所述的方法,其中,在识别出所述话机的第一个拨号号码之后,根据所述第一目的时间从所述缓存区中获取第一数字信号包括:
    从所述缓存区中获取标记有所述第一目的时间的第一数字信号。
  5. 根据权利要求1所述的方法,其中,在所述执行上述步骤直至满足预设的号码识别结束条件之后,所述方法还包括:
    从所述TDM实体中获取第二数字信号进行传输,其中,所述第二数字信号是所述TDM实体根据所述话机在拨号完毕后发送的第二模拟信号转换得到的。
  6. 一种数据处理方法,应用于时分复用TDM实体,所述方法包括:
    接收话机在摘机后发送的第一模拟信号;
    将所述第一模拟信号转换为第一数字信号;
    将所述第一数字信号存储到缓存区中,以供数字信号处理DSP实体从所述缓存区中获取所述第一数字信号并根据所述第一数字信号识别出所述话机的拨号号码,其中,所述缓存区是预先在内存中建立的。
  7. 根据权利要求6所述的方法,其中,在接收话机在摘机后发送的第一模拟信号之后,所述方法还包括:
    接收话机在拨号完毕后发送的第二模拟信号;
    将所述第二模拟信号转换为第二数字信号;
    向所述DSP实体发送所述第二数字信号,以供所述DSP实体传输所述第二数字信号。
  8. 一种设备,至少包括DSP实体和TDM实体,
    所述TDM实体用于:
    接收话机在摘机后发送的第一模拟信号;
    将所述第一模拟信号转换为第一数字信号;
    将所述第一数字信号存储到缓存区中,其中,所述缓存区是预先在内存中建立的,
    所述DSP实体用于:
    在检测到话机摘机后,从缓存区中获取第一数字信号;
    对所述第一数字信号进行双音多频DTMF检测,以识别出所述话机的拨号号码;
    执行上述步骤直至满足预设的号码识别结束条件。
  9. 一种电子设备,包括:
    一个或多个处理器;
    存储装置,其上存储有一个或多个程序,
    当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1-7任一项所述的数据处理方法。
  10. 一种计算机存储介质,其上存储有计算机程序,其中,所述程序被执行时实现如权利要求1-7任一项所述的数据处理方法。
PCT/CN2023/101500 2022-06-30 2023-06-20 数据处理方法、设备及计算机存储介质 WO2024001888A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210761907.4 2022-06-30
CN202210761907.4A CN117376467A (zh) 2022-06-30 2022-06-30 数据处理方法、设备及计算机存储介质

Publications (1)

Publication Number Publication Date
WO2024001888A1 true WO2024001888A1 (zh) 2024-01-04

Family

ID=89383248

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/101500 WO2024001888A1 (zh) 2022-06-30 2023-06-20 数据处理方法、设备及计算机存储介质

Country Status (2)

Country Link
CN (1) CN117376467A (zh)
WO (1) WO2024001888A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661969A (zh) * 2004-02-28 2005-08-31 华为技术有限公司 一种防止收号丢失的方法
US7039044B1 (en) * 1999-10-14 2006-05-02 Mindspeed Technologies, Inc. Method and apparatus for early detection of DTMF signals in voice transmissions over an IP network
CN101141149A (zh) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 蓝牙电话网关装置及拨号处理方法
CN101340681A (zh) * 2008-08-13 2009-01-07 中兴通讯股份有限公司 一种屏蔽外接话机dtmf音的实现方法及装置
CN101917504A (zh) * 2010-08-03 2010-12-15 北京佳讯飞鸿电气股份有限公司 Pcm设备支持拨号功能的实现方法
CN102739884A (zh) * 2012-07-16 2012-10-17 迈普通信技术股份有限公司 一种拨号方法和网关设备
CN103428322A (zh) * 2013-06-24 2013-12-04 深圳市共进电子股份有限公司 一种收集用户按键方法及网络语音通信终端
CN113965552A (zh) * 2021-10-21 2022-01-21 合肥移瑞通信技术有限公司 话机音频信号的通信方法、话机系统及Volte模组

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7039044B1 (en) * 1999-10-14 2006-05-02 Mindspeed Technologies, Inc. Method and apparatus for early detection of DTMF signals in voice transmissions over an IP network
CN1661969A (zh) * 2004-02-28 2005-08-31 华为技术有限公司 一种防止收号丢失的方法
CN101141149A (zh) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 蓝牙电话网关装置及拨号处理方法
CN101340681A (zh) * 2008-08-13 2009-01-07 中兴通讯股份有限公司 一种屏蔽外接话机dtmf音的实现方法及装置
CN101917504A (zh) * 2010-08-03 2010-12-15 北京佳讯飞鸿电气股份有限公司 Pcm设备支持拨号功能的实现方法
CN102739884A (zh) * 2012-07-16 2012-10-17 迈普通信技术股份有限公司 一种拨号方法和网关设备
CN103428322A (zh) * 2013-06-24 2013-12-04 深圳市共进电子股份有限公司 一种收集用户按键方法及网络语音通信终端
CN113965552A (zh) * 2021-10-21 2022-01-21 合肥移瑞通信技术有限公司 话机音频信号的通信方法、话机系统及Volte模组

Also Published As

Publication number Publication date
CN117376467A (zh) 2024-01-09

Similar Documents

Publication Publication Date Title
US9666190B2 (en) Speech recognition using loosely coupled components
JP5174182B2 (ja) 再生遅延推定
US20050276411A1 (en) Interaction between echo canceller and packet voice processing
US6252901B1 (en) Digital modem fast retrain escape mechanism
US6504912B1 (en) Method of initiating a call feature request
US20070133516A1 (en) Method and apparatus for selecting a codec in a packet-switched communication network
EP1519516A2 (fr) Procédé d'établissement d'un transfert de données entre deux dispositifs de communication et dispositif associé
US6925174B2 (en) Interaction between echo canceller and packet voice processing
WO2009111957A1 (zh) 一种线路状态检测方法、装置和预测式外呼系统
EP1076980A1 (en) Adaptive call progress tone detection system
WO2024001888A1 (zh) 数据处理方法、设备及计算机存储介质
US8418004B2 (en) Back channel communication
US20180084114A1 (en) Method for home gateway to realize ivr service and home gateway
KR100448704B1 (ko) 복합 음성 서비스 단말 장치 및 이를 사용하는 방법
US6795533B2 (en) Intermediate voice and DTMF detector device for improved speech recognition utilization and penetration
JP6090027B2 (ja) 特定音付き音声コマンド対応情報端末
US9398150B2 (en) Method of setting detection parameters in an apparatus for on hold music detection
EP3573309A1 (en) Network telephone processing method and related network device
CN101217606A (zh) 前置回声抑制开关控制和双音多频信号检测的方法和装置
US20070036337A1 (en) Methods, systems, and computer program products for provisioning a subscriber line (SL) using a circuit identification
WO2009012693A1 (fr) Procédé et système permettant d'ajuster le paramètre de port du côté de la fonction vocale
US8730852B2 (en) Eliminating false audio associated with VoIP communications
CN101667993A (zh) 一种网络电话远程拨号的实现方法
WO2015070716A1 (zh) 语音业务的实现方法、设备及系统
CN113053382A (zh) 处理方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23830067

Country of ref document: EP

Kind code of ref document: A1