Data transmission method and device for interphone and interphone
By separating voice and text data in the walkie-talkie, utilizing the transmission characteristics of DMR networks and public networks, determining the transmission cycle, and performing integrated encoding, the data transmission efficiency of the walkie-talkie is improved, especially the rapid transmission of text data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN YULONG MOBILE INTERNET
- Filing Date
- 2026-03-06
- Publication Date
- 2026-04-28
AI Technical Summary
The existing walkie-talkies that combine DMR networks with public network transmission methods suffer from low data transmission efficiency, especially when transmitting mixed text and voice data, making it impossible to efficiently utilize the advantages of the two communication protocols.
The data is divided into voice data and image/text data, and the transmission duration for DMR network and public network is determined for each. The transmission cycle is determined based on the duration. A portion of the voice data is selected for integration and encoding and transmitted through DMR network, while the image/text data is transmitted through public network. The remaining data is transmitted through public network only after the receiving end is ready.
It improves data transmission efficiency, shortens transmission time, and solves the problem of low transmission efficiency, especially significantly accelerating the transmission speed of text and image data.
Smart Images

Figure CN121940718A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data transmission technology, and in particular to a data transmission method, apparatus, and walkie-talkie for use in walkie-talkies. Background Technology
[0002] DMR (Digital Mobile Radio) is an advanced digital wireless communication standard used in walkie-talkies and dispatch systems. It offers clearer sound, more powerful functions, and higher spectrum utilization than traditional analog walkie-talkies, and is a widely used professional communication technology globally.
[0003] Currently, there is a type of walkie-talkie that combines DMR network and public network transmission, commonly known as a "multi-mode smart walkie-talkie". This type of walkie-talkie can make voice calls as well as transmit images and text. Generally speaking, if it is pure voice data, DMR network will be preferred for transmission, while for image and text data or video data with voice data, public network transmission is usually used.
[0004] This approach results in low transmission efficiency because DMR networks and public network transmissions use two completely independent communication protocols. For a single data transmission, only one communication protocol is used for transmission. Summary of the Invention
[0005] Therefore, it is necessary to provide a data transmission method, device, and walkie-talkie for walkie-talkies to address the above-mentioned problems.
[0006] This invention is implemented as follows: a data transmission method for a walkie-talkie, the data transmission method for a walkie-talkie comprising: S101, divide the data to be transmitted into voice data and image / text data; S102, determine the first duration required for voice data to be transmitted through the DMR network, and determine the second duration required for image and text data to be transmitted through the public network; S103, determine the transmission period based on the first duration and the second duration; S104, Select a portion of the voice data as integrated data according to the transmission cycle; S105, determine the first and second data from the graphic data based on the amount of integrated data; S106, The first data and the integrated data are integrated and encoded so that the encoded data is transmitted through the DMR network; S107: Determine whether the receiving end has started receiving data transmitted through the DMR network. If so, transmit the second data through the public network.
[0007] In one embodiment, the present invention provides a data transmission device for a walkie-talkie, the data transmission device for the walkie-talkie comprising: The first segmentation module is used to divide the data to be transmitted into voice data and image / text data; The duration determination module is used to determine the first duration required for voice data to be transmitted through the DMR network and the second duration required for text and image data to be transmitted through the public network. The period determination module is used to determine the transmission period based on the first duration and the second duration; The first sending module is used to select a portion of the voice data as integrated data according to the transmission cycle; The second segmentation module is used to determine the first and second data in the graphic data based on the amount of data integrated; The second transmitting module is used to encode the first data and the integrated data so that the encoded data can be transmitted through the DMR network; The third transmitting module is used to determine whether the receiving end has started receiving data transmitted through the DMR network. If so, the second data is transmitted through the public network.
[0008] In one embodiment, the present invention provides a walkie-talkie, the walkie-talkie comprising: a walkie-talkie body, a first communication module, a second communication module and a control module disposed inside the walkie-talkie; The first communication module is connected to the control module and is used to transmit data through the DMR network; The second communication module is connected to the control module and is used to transmit data over the public network; The control module is used to execute the steps of the data transmission method for walkie-talkies described above.
[0009] This invention provides a data transmission method for walkie-talkies. The method involves dividing the data to be transmitted into voice data and text / image data; determining a first duration required for voice data transmission via a DMR network and a second duration required for text / image data transmission via a public network; determining a transmission period based on the first and second durations; selecting a portion of the voice data as integrated data based on the transmission period; determining first and second data from the text / image data based on the amount of integrated data; encoding the first and integrated data together so that the encoded data is transmitted via the DMR network; and determining whether the receiving end has started receiving data transmitted via the DMR network. If so, the second data is transmitted via the public network. This approach uses a DMR network for voice data communication and simultaneously transmits text / image data via both the DMR network and the public network. Since the amount of text / image data is much larger than that of voice data, this speeds up data transmission, reduces transmission time, improves transmission efficiency, and solves the problem of low transmission efficiency. Attached Figure Description
[0010] Figure 1 This is a flowchart illustrating a data transmission method for a walkie-talkie in one embodiment; Figure 2 This is a logic diagram of a data transmission method for a walkie-talkie in one embodiment; Figure 3 This is a structural block diagram of a data transmission device for a walkie-talkie in one embodiment; Figure 4 This is a structural block diagram of a walkie-talkie in one embodiment; Figure 5 This is a block diagram of the internal structure of the control module in one embodiment. Detailed Implementation
[0011] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0012] It is understood that the terms "first," "second," etc., used in this invention may be used to describe various elements herein, but unless specifically stated otherwise, these elements are not limited by these terms. These terms are used only to distinguish one element from another. For example, without departing from the scope of this invention, a first script may be referred to as a second script, and similarly, a second script may be referred to as a first script.
[0013] like Figure 1 , Figure 2As shown, in one embodiment, a data transmission method for a walkie-talkie is proposed, which may specifically include the following steps: S101, divide the data to be transmitted into voice data and image / text data; S102, determine the first duration required for voice data to be transmitted through the DMR network, and determine the second duration required for image and text data to be transmitted through the public network; S103, determine the transmission period based on the first duration and the second duration; S104, Select a portion of the voice data as integrated data according to the transmission cycle; S105, determine the first and second data from the graphic data based on the amount of integrated data; S106, The first data and the integrated data are integrated and encoded so that the encoded data is transmitted through the DMR network; S107: Determine whether the receiving end has started receiving data transmitted through the DMR network. If so, transmit the second data through the public network.
[0014] In this embodiment, the walkie-talkie of the present invention refers to a multi-mode intelligent walkie-talkie. This walkie-talkie can perform both voice calls (generating voice data) and image / text transmission (generating image / text data). If only voice calls are performed, no public network access is required. Image / text transmission includes image transmission and video transmission. Video transmission includes audio data and non-audio data; the non-audio data is also a type of image data.
[0015] In this embodiment, the present invention requires the synchronous transmission of voice data during the text and image transmission process of a walkie-talkie. This voice data can be of two types: one is voice data generated during a voice call, and the other is voice data generated for explaining or narrating text and image data. Both types of voice data are independent of the text and image data. However, the audio data in video data belongs to the text and image data category. This is because the format of voice data generated during a voice call is different from the format of video data; voice data is streaming data, while video data is typically data packets. If the format of the audio data in the video data is pre-converted to the format of voice data, then the audio data in the video data can be considered as voice data and transmitted directly through the DMR network instead of through the public network.
[0016] In this embodiment, public network communication includes 4G, 5G, and other communication methods. Of course, Bluetooth communication can also replace public network communication to achieve the same purpose. However, DMR network is a special communication method used for walkie-talkies.
[0017] In this embodiment, the transmission speed of the public network is generally greater than that of the DMR network. However, the amount of text and image data is much greater than that of voice data, so the second duration is usually greater than the first duration.
[0018] In this embodiment, S104 is a repetitive step because the transmission cycle is related to time. Since time is cumulative, when the time reaches the start time of a transmission cycle, that transmission cycle will begin.
[0019] In this embodiment, in S107, the second communication module used by the public network consumes a lot of power and is generally in a dormant state. The second communication module will only start to transmit data when the receiving end begins to receive data transmitted through the DMR network. This can extend the usage time of the device.
[0020] In this embodiment, the receiving end also needs to decode and restore the received transmitted data.
[0021] This invention provides a data transmission method for walkie-talkies. The method involves dividing the data to be transmitted into voice data and text / image data; determining a first duration required for voice data transmission via a DMR network and a second duration required for text / image data transmission via a public network; determining a transmission period based on the first and second durations; selecting a portion of the voice data as integrated data based on the transmission period; determining first and second data from the text / image data based on the amount of integrated data; encoding the first and integrated data together so that the encoded data is transmitted via the DMR network; and determining whether the receiving end has started receiving data transmitted via the DMR network. If so, the second data is transmitted via the public network. This approach uses a DMR network for voice data communication and simultaneously transmits text / image data via both the DMR network and the public network. Since the amount of text / image data is much larger than that of voice data, this speeds up data transmission, reduces transmission time, improves transmission efficiency, and solves the problem of low transmission efficiency.
[0022] In one embodiment, determining the first duration required for voice data to be transmitted via the DMR network and the second duration required for image and text data to be transmitted via the public network includes: The amount of voice data acquired is B1; Depend on Obtain the first duration required for the voice data to be transmitted through the DMR network; The amount of text and image data to be acquired is B2; Depend on The second time required for the image and text data to be transmitted over the public network is obtained; Where v1 is the transmission rate of the DMR network, v2 is the transmission rate of the public network, a1 is the compression coding rate of voice data in the DMR network, and a2 is the compression coding rate of image and text data in the public network.
[0023] In this embodiment, since the DMR network is a DMR network communication, it uses 8kHz, 16-bit mono PCM, 20m / frame, and 160 sampling points per frame to compress the data during processing. Therefore, a1 is generally 9. The public network, on the other hand, is a public network communication, so a2 is generally 1.
[0024] In one embodiment, determining the transmission period based on the first duration and the second duration includes: Determine if the first duration is greater than the second duration; if so, then proceed... Obtain the transmission period; otherwise, proceed by... Obtain the transmission period; Identify the voice data and image / text data in each transmission cycle, and establish a correlation between the voice data and image / text data in each transmission cycle; The transmission period is adjusted based on the correlation. Where t1 is the first duration, t2 is the second duration, and d is the preset quantity.
[0025] In this embodiment, generally speaking, the first duration is much shorter than the second duration.
[0026] In this embodiment, the voice data and image / text data with the determined transmission period are used to adjust the transmission period, not to determine the voice data and image / text data to be sent during the transmission period.
[0027] In this embodiment, the adjustment of the transmission period is a reduction adjustment.
[0028] In this embodiment, the preset quantity can be set to any integer between 10 and 100, and the preset quantity is the maximum value of the number of transmission cycles.
[0029] In one embodiment, determining the voice data and image / text data in each transmission cycle, and establishing a correlation between the voice data and image / text data in each transmission cycle, includes: S401, for each transmission cycle, by Determine the amount of voice data B3 for this transmission cycle; S402, by Determine the amount of text and image data B4 for this transmission cycle; S403, set the start time of voice data and text / image data to 0, and set the start time of the first transmission cycle to 0; S404, select one transmission cycle sequentially according to the time order; S405, for voice data, determine whether the start time of the first unallocated voice data is within the period of the selected transmission period. If not, do not allocate voice data to the selected transmission period. If so, select voice data with a data size of B3 according to the time order and allocate it to the selected transmission period, and separate the allocated voice data from the unallocated voice data. S406, For image and text data, determine whether the start time of the unallocated image and text data is within the period of the selected transmission period. If not, do not allocate image and text data to the selected transmission period. If so, select image and text data with a data volume of B4 according to the time order and allocate it to the selected transmission period, and separate the allocated image and text data from the unallocated image and text data. S407, repeat S404-S406 until all transmission cycles have been selected; S408 associates voice data and text / image data in the same transmission cycle to form an association relationship; Where v1 is the transmission rate of the DMR network, v2 is the transmission rate of the public network, a1 is the compression coding rate of voice data in the DMR network, a2 is the compression coding rate of image and text data in the public network, and T1 is the duration of the transmission period.
[0030] In this embodiment, voice data and text / image data do not interfere with each other during the transmission period.
[0031] In this embodiment, step S403 is to unify the start time to correspond voice data and transmission cycle, and text and image data and transmission cycle. The setting of this start time is only to determine the correlation between data.
[0032] In this embodiment, the allocated voice data / text data is only for determining their correspondence, and is not the voice data / text data to be transmitted in the transmission cycle.
[0033] In this embodiment, the same voice data / text data can only be allocated to one transmission cycle.
[0034] In this embodiment, since the second duration is generally longer than the first duration, the transmission period is usually determined by the amount of text and image data. In S405, there are two transmission period scenarios: one where voice data is allocated (data amount B3), and the other where no voice data is allocated. In S406, text and image data are allocated within each transmission period (data amount B4).
[0035] In this embodiment, if T1 is 10s, then the period of the first transmission cycle is from 0 to 10s, the period of the second transmission cycle is from 10 to 20s, and so on.
[0036] In one embodiment, adjusting the transmission period based on the association relationship includes: S501, select one transmission cycle A1 sequentially according to the time order; S502, determine whether the transmission cycle A1 is allocated with voice data. If not, determine whether the transmission cycle A1 is allocated with image and text data. If not, remove the transmission cycle A1 to reduce the number of transmission cycles. S503, if the transmission cycle A1 is allocated with image and text data, then by Determine the amount of voice data B5 for this transmission cycle, and select text and image data with a data amount of B5 from the text and image data in reverse order of time and allocate it to this transmission cycle A1. S504, If voice data is allocated to the transmission cycle A1, repeat S501-S503 until all transmission cycles have been selected. Where a3 is the compression coding rate of the image and text data in the DMR network.
[0037] In this embodiment, initially, each transmission cycle is allocated with text and image data, while voice data may or may not be included. Furthermore, the number of transmission cycles without voice data is significantly greater than the number with voice data. Therefore, text and image data can be moved to transmission cycles without voice data and transmitted using the same communication method as voice data. Originally, voice data was transmitted via a DMR network, and text and image data were transmitted via the public network. Now, by transferring some text and image data into the voice data and transmitting it via a DMR network, the final result is faster transmission, improving transmission efficiency and reducing the number of transmission cycles.
[0038] In this embodiment, for text and image data to be transmitted using a DMR network, the text and image data needs to be disguised as voice data first. This process will increase the data volume. Then, the data is compressed using DMR rules, so a3 is generally 4.
[0039] In this embodiment, the image and text data with a data volume of B5 is selected from the image and text data and allocated to the transmission period A1 according to the reverse order of time. This means that the image and text data is moved forward from the last transmission period, but the position of the move is merged into the voice data. Since the same image and text data can only be allocated to one transmission period, if the image and text data in the last transmission period is moved forward, there will be no image and text data. If there is no voice data in the transmission period, it will be removed.
[0040] In one embodiment, the selection of a portion of the voice data based on the transmission period as integrated data includes: Set the start time of the voice data to 0, and set the start time of the first transmission cycle to 0; Determine the current transmission cycle; Determine the voice data P1 whose start time is within the period of the current transmission cycle; Determine the amount of voice data B6 that was not sent before voice data P1 and its time sequence; Depend on Determine the amount of voice data B3 for this transmission cycle; Determine whether the data volume B6 is greater than the data volume B3. If not, determine the voice data corresponding to the data volume B6 as the integrated data. If so, select the voice data with the data volume B3 in the data volume B6 as the integrated data according to the time sequence. Where a1 is the compression coding rate of the voice data in the DMR network, v1 is the transmission rate of the DMR network, and T1 is the duration of the transmission period.
[0041] In this embodiment, data volume B3 is the maximum amount of voice data transmitted through the DMR network within a transmission cycle. Generally, data volume B6 is smaller than data volume B3. When determining the number of transmission cycles, data volume B3 is allocated to one transmission cycle, and only the start time of the first unallocated voice data is considered within the cycle of that transmission cycle. However, during transmission, it is necessary to consider that the start time of all voice data to be transmitted must be within or before the cycle of that transmission cycle. This greatly increases the likelihood that data volume B6 will be smaller than data volume B3.
[0042] In this embodiment, if a voice data is determined to be integrated data, then the voice data is considered to have been used and will not be selected in subsequent transmission cycles.
[0043] In one embodiment, determining the first data and the second data in the image and text data based on the amount of integrated data includes: Depend on Determine the amount of voice data B3 for one transmission cycle; Depend on Determine the amount of text and image data B4 for one transmission cycle; Depend on Get the amount of image and text data uploaded in the current transmission cycle, B8; Select the image and text data with a data size of B8 from the image and text data according to the time sequence, and record it as the first data; Select the image and text data with a data size of B4 from the image and text data following the first data, and denote it as the second data; Where v1 is the transmission rate of the DMR network, v2 is the transmission rate of the public network, a1 is the compression coding rate of voice data in the DMR network, a2 is the compression coding rate of image and text data in the public network, a3 is the compression coding rate of image and text data in the DMR network, T1 is the duration of the transmission cycle, and B7 is the amount of data in the integrated data of the current transmission cycle.
[0044] In this embodiment, if a piece of image and text data has already been recorded as first data in a previous transmission cycle, it will no longer participate in subsequent transmission cycles, which is equivalent to removing that image and text data. Second data will only cease to participate in subsequent transmission cycles after it has been transmitted through the second communication method, which is equivalent to the second data being transferred.
[0045] In this embodiment, if data volume B7 equals data volume B3, the current transmission cycle is entirely used to transmit voice data, with no space available for transmitting text and image data. If data volume B7 is less than data volume B3, then there is still space available for transmitting text and image data in the current transmission cycle.
[0046] In this embodiment, Depend on We obtained, among which, What you get is the remaining transmission time for the current transmission cycle.
[0047] In this embodiment, the start time of the voice data transmitted through the DMR network in the current transmission cycle is consistent with the cycle time of the transmission cycle. The text and image data transmitted through the DMR network and the public network in the current transmission cycle are also the text and image data that are earlier in the time sequence. This can keep the voice data and text and image data basically synchronized.
[0048] In one embodiment, the step of integrating and encoding the first data and the integrated data to enable the encoded data to be transmitted over a DMR network includes: The integrated data is preprocessed using bandpass filtering; The sampled data of the first data is obtained by sampling the first data at a preset frequency; The sampled data of the first data is quantized and encoded, and the encoded sampled data of the first data is divided into several data frames according to the preset frame length. The first data is converted into an analog waveform to simulate the characteristics of a speech waveform, and the analog waveform is recorded as the third data. For every two third data points, copy the two third data points after them to double the amount of data for the third data points; The sampled data of the third data is obtained by sampling the third data at a preset frequency; For every two third data samples, determine whether there is valid data in the two third data samples. If so, determine whether the two third data samples are consistent. If so, remove the sample data of either third data sample from the two third data samples. If the sampled data of the two third data are inconsistent, then the invalid data in the sampled data of the two third data are removed; If there is no valid data in the sampled data of the two third data, the sampled data of the two third data is obtained by averaging the sampled data of the two third data before and after the sampled data of the two third data, and the sampled data of either third data is removed. The sampled data of the third data is quantized and encoded, and the encoded sampled data of the third data is divided into several data frames according to the preset frame length. Add transmission identifiers to data frames to encapsulate them into standard frames conforming to DMR networks; Standard frames are transmitted via the DMR network.
[0049] In this embodiment, the integrated data is preprocessed by bandpass filtering in order to limit it to the range of 300Hz to 3.4kHz.
[0050] In this embodiment, the preset frequency is 8kHz, the preset frame length is 20m / frame, and the PCM sample stream is obtained by quantizing and encoding the sampled data. The DMR rule is to sample at an 8kHz sampling rate and perform 16-bit linear quantization to obtain the speech PCM sample stream. The PCM samples are mixed in the order of transmission and divided into frames with a duration of 20ms, each frame containing 160 samples. Each frame of PCM data is sent to an AMBE+2 vocoder for compression encoding to obtain the speech parameter bits for each frame.
[0051] In this embodiment, the step of converting the first data into an analog waveform involves dividing the first data into fixed-length data blocks, each corresponding to the duration of a speech frame, and performing modulation mapping on each data block; for example, using multi-frequency shift keying or phase modulation to generate a continuous analog waveform, making its spectral and amplitude characteristics similar to the speech signal. Alternatively, the first data can be converted into a 0-255 numerical array, mapped to an amplitude range of -10000 to 10000, and then smoothed using a moving average to generate a continuous amplitude sequence, simulating the waveform characteristics of the speech signal.
[0052] In this embodiment, for example, suppose the third data is 101101. The sampled data obtained through normal sampling is 011. Since image and text data are prone to data loss during sampling after conversion, the third data is doubled to 010111110101 before sampling. This results in sampled data of 001111. Then, for every two sampled data, only one is retained to obtain the normal sampled data of 011. If one data is lost, the obtained sampled data is 001 empty 11, which also yields the normal sampled data of 011. Of course, the data of each third data before quantization and encoding cannot be binary data, but rather one of the 0-65536 levels. Therefore, the average of the before and after sampled data can be used instead. This approach reduces the loss rate of image and text data sampling.
[0053] In this embodiment, the step of adding a transmission identifier involves inserting a clear type identifier (e.g., using a specific code point from the call type field) into the link control (LC) header or embedded signaling of the frame according to the original type of the frame (voice data or image / text data) when encapsulating the encoded bitstream into a DMR air interface frame; adding overhead such as a synchronization header and forward error correction coding to each frame to form a complete DMR burst. The inserted type identifier is used to determine whether the data is voice data or image / text data during subsequent decoding and reconstruction, which is particularly important in the process of decoding and reconstructing transmitted data.
[0054] In this embodiment, the voice data is an analog waveform and does not require processing.
[0055] like Figure 3 As shown, in one embodiment, a data transmission device for a walkie-talkie is provided, which may specifically include: The first segmentation module is used to divide the data to be transmitted into voice data and image / text data; The duration determination module is used to determine the first duration required for voice data to be transmitted through the DMR network and the second duration required for text and image data to be transmitted through the public network. The period determination module is used to determine the transmission period based on the first duration and the second duration; The first sending module is used to select a portion of the voice data as integrated data according to the transmission cycle; The second segmentation module is used to determine the first and second data in the graphic data based on the amount of data integrated; The second transmitting module is used to encode the first data and the integrated data so that the encoded data can be transmitted through the DMR network; The third transmitting module is used to determine whether the receiving end has started receiving data transmitted through the DMR network. If so, the second data is transmitted through the public network.
[0056] In this embodiment, the various modules of the data transmission device for the walkie-talkie are modularized from the method of the present invention. For a detailed explanation of each module, please refer to the corresponding content in the method section of the present invention. The embodiments of the present invention will not be repeated here.
[0057] like Figure 4 As shown, in one embodiment, a walkie-talkie is provided, which may specifically include: a walkie-talkie body, a first communication module, a second communication module and a control module disposed inside the walkie-talkie; The first communication module is connected to the control module and is used to transmit data through the DMR network; The second communication module is connected to the control module and is used to transmit data over the public network; The control module is used to execute the steps of the data transmission method for walkie-talkies described above.
[0058] In this embodiment, the first communication module is a DMR communication module, and the second communication module is a public network communication module, such as a 4G / 5G module.
[0059] This invention provides a walkie-talkie that divides the data to be transmitted into voice data and image / text data; determines a first duration required for voice data transmission via a DMR network and a second duration required for image / text data transmission via a public network; determines a transmission period based on the first and second durations; selects a portion of the voice data as integrated data based on the transmission period; determines first and second data from the image / text data based on the data volume of the integrated data; integrates and encodes the first and integrated data so that the encoded data is transmitted via the DMR network; and determines whether the receiving end has started receiving data transmitted via the DMR network. If so, the second data is transmitted via the public network. In this way, for voice data, communication is conducted via the DMR network, while for image / text data, both the DMR network and the public network are used for simultaneous transmission. Since the data volume of image / text data is much larger than that of voice data, this speeds up data transmission, reduces transmission time, improves transmission efficiency, and solves the problem of low transmission efficiency.
[0060] Figure 5 An internal structural diagram of the control module in one embodiment is shown. Figure 5As shown, the control module includes a processor, a memory, a network interface, an input device, and a display screen connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium of the control module stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement a data transmission method for a walkie-talkie provided in this embodiment of the invention. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute a data transmission method for a walkie-talkie provided in this embodiment of the invention.
[0061] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the control module to which the present invention is applied. The specific control module may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0062] In one embodiment, the data transmission device for a walkie-talkie provided by this invention can be implemented as a computer program, and the computer program can be implemented as follows: Figure 5 The control module shown operates on this device. The memory of the control module can store the various program modules that make up the data transmission device for the walkie-talkie, for example... Figure 4 The diagram shows a first partitioning module, a duration determination module, a period determination module, a first transmission module, a second partitioning module, a second transmission module, and a third transmission module. The computer program comprised of these modules causes the processor to execute the steps of a data transmission method for a walkie-talkie according to various embodiments of the present invention described in this specification.
[0063] For example, Figure 5 The control module shown can be used as follows Figure 4 The data transmission device for a walkie-talkie shown executes step a via a first partitioning module; step b via a duration determination module; step c via a period determination module; step b via a first transmitting module; step c via a second partitioning module; step b via a second transmitting module; and step c via a third transmitting module.
[0064] In one embodiment, a control module is provided, the control module including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps: S101, divide the data to be transmitted into voice data and image / text data; S102, determine the first duration required for voice data to be transmitted through the DMR network, and determine the second duration required for image and text data to be transmitted through the public network; S103, determine the transmission period based on the first duration and the second duration; S104, Select a portion of the voice data as integrated data according to the transmission cycle; S105, determine the first and second data from the graphic data based on the amount of integrated data; S106, The first data and the integrated data are integrated and encoded so that the encoded data is transmitted through the DMR network; S107: Determine whether the receiving end has started receiving data transmitted through the DMR network. If so, transmit the second data through the public network.
[0065] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, causes the processor to perform the following steps: S101, divide the data to be transmitted into voice data and image / text data; S102, determine the first duration required for voice data to be transmitted through the DMR network, and determine the second duration required for image and text data to be transmitted through the public network; S103, determine the transmission period based on the first duration and the second duration; S104, Select a portion of the voice data as integrated data according to the transmission cycle; S105, determine the first and second data from the graphic data based on the amount of integrated data; S106, The first data and the integrated data are integrated and encoded so that the encoded data is transmitted through the DMR network; S107: Determine whether the receiving end has started receiving data transmitted through the DMR network. If so, transmit the second data through the public network.
[0066] It should be understood that although the steps in the flowcharts of the various embodiments of the present invention are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the various embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps. Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0067] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0068] The embodiments described above are merely examples of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention.
Claims
1. A data transmission method for a walkie-talkie, characterized in that, The data transmission method for the walkie-talkie includes: S101, divide the data to be transmitted into voice data and image / text data; S102, determine the first duration required for voice data to be transmitted through the DMR network, and determine the second duration required for image and text data to be transmitted through the public network; S103, determine the transmission period based on the first duration and the second duration; S104, Select a portion of the voice data as integrated data according to the transmission cycle; S105, determine the first and second data from the graphic data based on the amount of integrated data; S106, The first data and the integrated data are integrated and encoded so that the encoded data is transmitted through the DMR network; S107: Determine whether the receiving end has started receiving data transmitted through the DMR network. If so, transmit the second data through the public network.
2. The data transmission method for a walkie-talkie according to claim 1, characterized in that, The determination of the first duration required for voice data to be transmitted through the DMR network and the determination of the second duration required for image and text data to be transmitted through the public network include: The amount of voice data acquired is B1; Depend on Obtain the first duration required for the voice data to be transmitted through the DMR network; The amount of text and image data to be acquired is B2; Depend on The second time required for the image and text data to be transmitted over the public network is obtained; Where v1 is the transmission rate of the DMR network, v2 is the transmission rate of the public network, a1 is the compression coding rate of voice data in the DMR network, and a2 is the compression coding rate of image and text data in the public network.
3. The data transmission method for a walkie-talkie according to claim 1, characterized in that, The determination of the transmission period based on the first duration and the second duration includes: Determine if the first duration is greater than the second duration; if so, then proceed... Obtain the transmission period; otherwise, proceed by... Obtain the transmission period; Identify the voice data and image / text data in each transmission cycle, and establish a correlation between the voice data and image / text data in each transmission cycle; The transmission period is adjusted based on the correlation. Where t1 is the first duration, t2 is the second duration, and d is the preset quantity.
4. The data transmission method for a walkie-talkie according to claim 3, characterized in that, The process of determining the voice data and image / text data in each transmission cycle, and establishing a correlation between the voice data and image / text data in each transmission cycle, includes: S401, for each transmission cycle, by Determine the amount of voice data B3 for this transmission cycle; S402, by Determine the amount of text and image data B4 for this transmission cycle; S403, set the start time of voice data and text / image data to 0, and set the start time of the first transmission cycle to 0; S404, select one transmission cycle sequentially according to the time order; S405, for voice data, determine whether the start time of the first unallocated voice data is within the period of the selected transmission period. If not, do not allocate voice data to the selected transmission period. If so, select voice data with a data size of B3 according to the time order and allocate it to the selected transmission period, and separate the allocated voice data from the unallocated voice data. S406, For image and text data, determine whether the start time of the unallocated image and text data is within the period of the selected transmission period. If not, do not allocate image and text data to the selected transmission period. If so, select image and text data with a data volume of B4 according to the time order and allocate it to the selected transmission period, and separate the allocated image and text data from the unallocated image and text data. S407, repeat S404-S406 until all transmission cycles have been selected; S408 associates voice data and text / image data in the same transmission cycle to form an association relationship; Where v1 is the transmission rate of the DMR network, v2 is the transmission rate of the public network, a1 is the compression coding rate of voice data in the DMR network, a2 is the compression coding rate of image and text data in the public network, and T1 is the duration of the transmission period.
5. The data transmission method for a walkie-talkie according to claim 4, characterized in that, The adjustment of the transmission period based on the association relationship includes: S501, select one transmission cycle A1 sequentially according to the time order; S502, determine whether the transmission cycle A1 is allocated with voice data. If not, determine whether the transmission cycle A1 is allocated with image and text data. If not, remove the transmission cycle A1 to reduce the number of transmission cycles. S503, if the transmission cycle A1 is allocated with image and text data, then by Determine the amount of voice data B5 for this transmission cycle, and select text and image data with a data amount of B5 from the text and image data in reverse order of time and allocate it to this transmission cycle A1. S504, If voice data is allocated to the transmission cycle A1, repeat S501-S503 until all transmission cycles have been selected. Where a3 is the compression coding rate of the image and text data in the DMR network.
6. The data transmission method for a walkie-talkie according to claim 1, characterized in that, The selection of a portion of voice data as integrated data based on the transmission period includes: Set the start time of the voice data to 0, and set the start time of the first transmission cycle to 0; Determine the current transmission cycle; Determine the voice data P1 whose start time is within the period of the current transmission cycle; Determine the amount of voice data B6 that was not sent before voice data P1 and its time sequence; Depend on Determine the amount of voice data B3 for this transmission cycle; Determine whether the data volume B6 is greater than the data volume B3. If not, determine the voice data corresponding to the data volume B6 as the integrated data. If so, select the voice data with the data volume B3 in the data volume B6 as the integrated data according to the time sequence. Where a1 is the compression coding rate of the voice data in the DMR network, v1 is the transmission rate of the DMR network, and T1 is the duration of the transmission period.
7. The data transmission method for a walkie-talkie according to claim 1, characterized in that, The step of determining the first and second data in the image and text data based on the amount of integrated data includes: Depend on Determine the amount of voice data B3 for one transmission cycle; Depend on Determine the amount of text and image data B4 for one transmission cycle; Depend on Get the amount of image and text data uploaded in the current transmission cycle, B8; Select the image and text data with a data size of B8 from the image and text data according to the time sequence, and record it as the first data; Select the image and text data with a data size of B4 from the image and text data following the first data, and denote it as the second data; Where v1 is the transmission rate of the DMR network, v2 is the transmission rate of the public network, a1 is the compression coding rate of voice data in the DMR network, a2 is the compression coding rate of image and text data in the public network, a3 is the compression coding rate of image and text data in the DMR network, T1 is the duration of the transmission cycle, and B7 is the amount of data in the integrated data of the current transmission cycle.
8. The data transmission method for a walkie-talkie according to claim 1, characterized in that, The step of integrating and encoding the first data and the integrated data to enable the encoded data to be transmitted through the DMR network includes: The integrated data is preprocessed using bandpass filtering; The sampled data of the first data is obtained by sampling the first data at a preset frequency; The sampled data of the first data is quantized and encoded, and the encoded sampled data of the first data is divided into several data frames according to the preset frame length. The first data is converted into an analog waveform to simulate the characteristics of a speech waveform, and the analog waveform is recorded as the third data. For every two third data points, copy the two third data points after them to double the amount of data for the third data points; The sampled data of the third data is obtained by sampling the third data at a preset frequency; For every two third data samples, determine whether there is valid data in the two third data samples. If so, determine whether the two third data samples are consistent. If so, remove the sample data of either third data sample from the two third data samples. If the sampled data of the two third data are inconsistent, then the invalid data in the sampled data of the two third data are removed; If there is no valid data in the sampled data of the two third data, the sampled data of the two third data is obtained by averaging the sampled data of the two third data before and after the sampled data of the two third data, and the sampled data of either third data is removed. The sampled data of the third data is quantized and encoded, and the encoded sampled data of the third data is divided into several data frames according to the preset frame length. Add transmission identifiers to data frames to encapsulate them into standard frames conforming to DMR networks; Standard frames are transmitted via the DMR network.
9. A data transmission device for a walkie-talkie, characterized in that, The data transmission device for the walkie-talkie includes: The first segmentation module is used to divide the data to be transmitted into voice data and image / text data; The duration determination module is used to determine the first duration required for voice data to be transmitted through the DMR network and the second duration required for text and image data to be transmitted through the public network. The period determination module is used to determine the transmission period based on the first duration and the second duration; The first sending module is used to select a portion of the voice data as integrated data according to the transmission cycle; The second segmentation module is used to determine the first and second data in the graphic data based on the amount of data integrated; The second transmitting module is used to encode the first data and the integrated data so that the encoded data can be transmitted through the DMR network; The third transmitting module is used to determine whether the receiving end has started receiving data transmitted through the DMR network. If so, the second data is transmitted through the public network.
10. A walkie-talkie, characterized in that, The walkie-talkie includes: a walkie-talkie body, a first communication module, a second communication module, and a control module disposed inside the walkie-talkie; The first communication module is connected to the control module and is used to transmit data through the DMR network; The second communication module is connected to the control module and is used to transmit data over the public network; The control module is used to perform the steps of the data transmission method for a walkie-talkie as described in any one of claims 1 to 8.