Message sending method, chip, electronic equipment and storage medium
By adding a time window and power to the Bluetooth connection, combined with physical layer coding and beamforming technology, the real-time and long-distance problems of Bluetooth voice calls in the absence of network coverage are solved, achieving a high-quality two-way communication experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2024-10-29
- Publication Date
- 2026-05-01
AI Technical Summary
Existing voice call functions cannot achieve real-time two-way communication over long distances in the absence of network coverage, especially those based on Bluetooth technology, which have low practicality and poor user experience.
By establishing a Bluetooth connection with an extended time window, increasing the backoff power of the non-target Bluetooth rate mode, improving the transmission power of the target Bluetooth rate mode, and transmitting messages through the Bluetooth channel, combined with physical layer coding and beamforming technology, long-distance real-time two-way voice calls can be achieved.
It enables long-distance, real-time, two-way voice calls via Bluetooth in environments without network coverage, improving the user experience.
Smart Images

Figure CN121968057A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of wireless communication technology, specifically to a point-to-point real-time two-way voice call technology based on Bluetooth technology when there is no network coverage, and particularly to a message sending method, chip, electronic device and storage medium. Background Technology
[0002] Currently, most voice call functions are based on wireless networks such as cellular or Wi-Fi, or wired networks based on Ethernet. Although walkie-talkies do not rely on networks, they use a half-duplex communication mode, which means that only one-way transmission can be achieved at any given time, and the real-time nature of the call cannot be guaranteed. Real-time two-way voice calls based on Bluetooth technology have low practicality and poor user experience due to their short range. Summary of the Invention
[0003] This disclosure provides a message sending method, a chip, an electronic device, and a storage medium, enabling long-distance message sending and receiving based on Bluetooth in the absence of a network.
[0004] A first aspect of this disclosure provides a message sending method performed by a sending device, the method comprising: establishing a Bluetooth connection with a timing of extended time window; and / or increasing the backoff power of a non-target Bluetooth rate mode and increasing the transmission power of a target Bluetooth rate mode; and sending a message to a receiving device via a Bluetooth channel.
[0005] In some embodiments of this disclosure, increasing the fallback power for non-target Bluetooth rate modes and increasing the transmit power for target Bluetooth rate modes includes: reducing the fallback value of the fallback power for all modes in a first profile; falling back more power for non-target Bluetooth rate modes in a second profile; and determining the transmit power based on the first and second profiles.
[0006] In some embodiments of this disclosure, the non-target Bluetooth rate modes are: 1M PHY and 2M PHY.
[0007] In some embodiments of this disclosure, establishing a Bluetooth connection with a longer time window includes one or a combination of the following: increasing the duration of the transmit window; increasing the duration of the receive window; and increasing the duration of the time window between transmit and receive.
[0008] In some embodiments of this disclosure, establishing a Bluetooth connection with an extended time window includes: sending a connection request to a receiving device and opening a receiving window of the sending device, extending the receiving window for a first duration; and after receiving feedback information from the receiving device, establishing a Bluetooth connection with the receiving device, wherein the first duration is longer than the second duration of the extended receiving window of the receiving device.
[0009] In some embodiments of this disclosure, establishing a Bluetooth connection with a longer time window includes: determining a third duration of the time window, the third duration being longer than the default time window duration.
[0010] In some embodiments of this disclosure, sending a message to a receiving device via a Bluetooth channel includes: converting the acquired audio data into a data stream through A / D conversion, and compressing and encoding the data stream to obtain an audio data stream; performing physical layer encoding on the audio data stream to obtain encoded data; and transmitting the encoded data to the receiving device directionally via multiple antennas through beamforming.
[0011] In some embodiments of this disclosure, physical layer encoding of the audio data stream includes: determining the encoding PHY mode based on the channel transmission rate and the distance between the transmitting device and the receiving device; and encoding the audio data stream according to the encoding PHY mode to obtain encoded data.
[0012] In some embodiments of this disclosure, the method further includes: receiving data to be decoded sent by a receiving device through multiple antennas; performing linear processing on the data to be decoded received by each antenna through maximum ratio combining to obtain a fused data stream; performing physical layer decoding on the fused data stream to obtain decoded data; and performing D / A conversion on the decoded data to obtain an audio signal.
[0013] In some embodiments of this disclosure, physical layer decoding of the fused data stream includes: determining a decoding PHY mode based on the encoding PHY mode; and performing decoding processing on the fused data stream according to the decoding PHY mode to obtain decoded data.
[0014] In some embodiments of this disclosure, the method further includes: turning on the Bluetooth switch, searching the network to determine a list of connectable devices; receiving a first user instruction and / or a second user instruction triggered by a user click operation, determining a receiving device in the list of connectable devices according to the first user instruction, and / or determining a blacklisted device in the list of connectable devices according to the second user instruction, and adding the blacklisted device to the blacklist.
[0015] In the above embodiments, by increasing the transmission power and / or establishing a Bluetooth connection with a longer time window, messages can be sent through the Bluetooth channel, thereby achieving long-distance, real-time, bidirectional message transmission based on Bluetooth and improving the user experience.
[0016] A second aspect of this disclosure provides a chip comprising: a Bluetooth connectivity module and / or a Bluetooth processing module, and an audio processing module. The Bluetooth processing module is used to increase the backoff power of a non-target Bluetooth rate mode and increase the transmission power of a target Bluetooth rate mode. The Bluetooth connectivity module is used to establish a Bluetooth connection with a timing sequence having an extended time window. The audio processing module is used to send messages to a receiving end via a Bluetooth channel.
[0017] In some embodiments of this disclosure, the Bluetooth connection module is used for broadcasting and establishing a Bluetooth connection. Establishing a Bluetooth connection involves the receiving end extending the receiving window for a first duration and the sending end extending the receiving window for a second duration, so that the sending end and the receiving end can establish a Bluetooth connection, where the second duration is greater than the first duration. The audio processing module includes a conversion unit and a compression encoding unit. The conversion unit is used to convert real-time acquired audio data into a data stream through A / D conversion, and the compression encoding unit is used to compress and encode the data stream to obtain an audio data stream. The Bluetooth processing module includes an encoding unit and a sending unit. The encoding unit is used to encode the audio data stream according to the encoding PHY mode through physical layer encoding to obtain encoded data. The sending unit is used to directionally send the encoded data to a multi-antenna through beamforming and send the encoded data to the receiving end through the multi-antenna. The input of the Bluetooth processing module is connected to the output of the audio processing module.
[0018] In some embodiments of this disclosure, the Bluetooth processing module further includes a decoding unit and a receiving unit. The receiving unit is used to linearly process the data to be decoded received by multiple antennas through maximum ratio combining to obtain a fused data stream. The decoding unit is used to decode the fused data stream according to the decoding PHY mode through physical layer decoding to obtain decoded data.
[0019] In some embodiments of this disclosure, the conversion unit is also used to convert decoded data into audio signals via D / A conversion.
[0020] In some embodiments of this disclosure, the coded PHY mode is negatively correlated with the channel transmission rate and the distance between the transmitter and receiver.
[0021] In the above embodiments, the chip proposed in this disclosure can realize long-distance real-time bidirectional message transmission based on Bluetooth, thereby improving the user experience.
[0022] A third aspect of this disclosure provides a message sending apparatus, comprising: a connection module for establishing a Bluetooth connection with an extended time window; and / or a power module for increasing the backoff power of a non-target Bluetooth rate mode and increasing the transmission power of a target Bluetooth rate mode; and a sending module for sending a message to a receiving device via a Bluetooth channel.
[0023] A fourth aspect of this disclosure provides an electronic device comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, performs the method described in any one of the second aspects of this disclosure.
[0024] A fifth aspect of this disclosure provides an electronic device comprising a chip as described in any one of the first aspects of this disclosure.
[0025] In some embodiments of this disclosure, the chip further includes an audio module and a connection module. The audio module is used to receive real-time acquired audio data, and the connection module is used to transmit the audio data to the chip. The output of the connection module is connected to the input of the chip.
[0026] A sixth aspect of this disclosure provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method described in any of the second aspects of this disclosure.
[0027] A seventh aspect of this disclosure provides a chip including at least one processor and a communication interface; the communication interface is used to receive signals input to the chip or signals output from the chip, and the processor communicates with the communication interface and implements the method described in any one of the second aspects of this disclosure through logic circuits or executing code instructions.
[0028] In summary, the method proposed in this disclosure can enable long-distance, real-time, two-way voice calls via Bluetooth in the absence of a network.
[0029] The chip and message sending method disclosed herein can solve the problem of being unable to conduct long-distance voice communication in scenarios such as wilderness exploration, construction sites, large event venues, and underground parking lots where cellular signals or WiFi signals are unstable or unavailable.
[0030] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0031] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0032] Figure 1 This is a schematic diagram of the structure of a chip according to an embodiment of the present disclosure;
[0033] Figure 2 This is a flowchart of a message sending method proposed in an embodiment of the present disclosure;
[0034] Figure 3 This is a flowchart of the message sending method proposed in the embodiments of this disclosure;
[0035] Figure 4 This is a flowchart of the message sending method proposed in the embodiments of this disclosure;
[0036] Figure 5A This is a schematic diagram of a message sending method disclosed herein;
[0037] Figure 5B This is a hardware structure diagram of the present disclosure;
[0038] Figure 5C This is a schematic diagram of Bluetooth connection in this disclosure;
[0039] Figure 5D This is a schematic diagram of the UI display interface of this disclosure;
[0040] Figure 5E This is a schematic diagram of the internal structure of the Codec unit disclosed herein;
[0041] Figure 5F This is a schematic diagram of beamforming in this disclosure;
[0042] Figure 5G This is a schematic diagram of the communication system disclosed herein;
[0043] Figure 5H This is a schematic diagram of the Bluetooth connection window disclosed herein;
[0044] Figure 6 This is a schematic diagram of the structure of a message sending device according to an embodiment of the present disclosure;
[0045] Figure 7 This is a schematic diagram illustrating an electronic device for implementing the above-described message sending method according to an exemplary embodiment. Detailed Implementation
[0046] Embodiments of this disclosure are described in detail below. Examples of these embodiments are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure.
[0047] The following is a brief introduction to the techniques used in this disclosure:
[0048] 1. Physical Layer Coding: The Codec PHY mode uses Forward Error Correction (FEC) to enhance link reliability in noisy environments, allowing the receiver to detect and correct errors in received data without requesting retransmission. The FEC algorithm adds redundant bits (called "parity bits") to the original data before transmission. The receiver can then use these parity bits to identify and correct errors within a certain limit. Two variants of the coding PHY mode are Coded S2 and Coded S8. The main difference between S2 and S8 lies in the coding scheme used. In Coded S2, the data payload is encoded using two symbols, while Coded S8 uses eight symbols. Compared to Coded S2, Coded S8 has a four-fold lower data transmission rate. Therefore, using a higher PHY mode results in a lower transmission rate but an increased transmission distance.
[0049] 2. Beamforming: Also known as beamforming or spatial filtering, it is a signal processing technique that uses sensor arrays to transmit and receive signals in a directional manner. Beamforming adjusts the parameters of the basic units of a phase array to achieve constructive interference for signals at certain angles and destructive interference for signals at other angles. Beamforming can be used at both the transmitting and receiving ends of a signal, and can be applied crest-to-crest or crest-to-trough, thereby increasing the gain in the crest-to-crest direction.
[0050] 3. Maximum Ratio Combining (MRC): This method uses multiple antennas to receive the same signal, improving signal quality and reliability at the receiver. MRC maximizes the signal-to-noise ratio (SNR) at the receiver by multiplying the N different signals of diversity by different coefficients. The coefficients are determined based on the fading coefficients of each branch, thereby improving system performance. Essentially, it performs linear processing on the received signal, using phase adjustment and gain coefficient calculations to add the signals from all branches in phase according to their gain coefficients, resulting in the combined signal.
[0051] The chip and message sending method proposed in this application will be described in detail below with reference to the accompanying drawings.
[0052] Figure 1 This is a schematic diagram of the structure of a chip according to an embodiment of this disclosure. Figure 1 As shown, the chip processing module includes: a Bluetooth connectivity module and / or a Bluetooth processing module, and an audio processing module. The Bluetooth processing module is used to increase the backoff power of non-target Bluetooth rate modes and increase the transmission power of the target Bluetooth rate mode; the Bluetooth connectivity module is used to establish a Bluetooth connection with a longer time window; and the audio processing module is used to send messages to the receiving end via the Bluetooth channel.
[0053] In some embodiments, the Bluetooth connection module is used for broadcasting and establishing a Bluetooth connection. Establishing a Bluetooth connection involves the receiver extending its receiving window for a first duration, and the transmitter extending its receiving window for a second duration, so that the transmitter and receiver establish a Bluetooth connection. The second duration is longer than the first duration. In some embodiments, the audio processing module includes a conversion unit and a compression encoding unit. The conversion unit is used to convert real-time acquired audio data into a data stream through A / D conversion, and the compression encoding unit is used to compress and encode the data stream to obtain an audio data stream.
[0054] For example, such as Figure 5B The hardware structure diagram shown indicates that Audio is the audio processing module, WiFi / BT is the Bluetooth processing module, and the output of Audio is connected to the input of WiFi / BT. Audio includes an A / D conversion unit for converting real-time acquired audio data into a data stream. Audio also includes a compression encoding unit for compressing and encoding the converted data stream.
[0055] For example, such as Figure 5A As shown in the flowchart, mobile phone A records audio using AudioRecord, with recording parameters selected as 8kHz sampling rate, mono, 16-bit sampling, and 16Kbyte / s bitrate. The acquired raw audio data is converted into a data stream by an A / D converter, and then the data stream is compressed by 8x or 32x using Speex to obtain the audio data stream.
[0056] In some embodiments, the Bluetooth processing module includes an encoding unit and a transmitting unit. The encoding unit is used to encode the audio data stream according to the encoding PHY mode through physical layer encoding to obtain encoded data. The transmitting unit is used to transmit the encoded data to a multi-antenna via beamforming and transmit the encoded data to the receiving end through the multi-antenna. The input of the Bluetooth processing module is connected to the output of the audio processing module.
[0057] In some embodiments, the Bluetooth processing module further includes a power processing unit for reducing the backoff value of the backoff power for all modes in a first profile; backing off more power for non-target Bluetooth rate modes in a second profile; and determining the transmit power based on the first profile and the second profile.
[0058] In some embodiments, the non-target Bluetooth rate modes are: 1M PHY and 2M PHY.
[0059] In some embodiments, the coded PHY mode is negatively correlated with the channel transmission rate and positively correlated with the distance between the transmitter and receiver.
[0060] In some embodiments, after the transmitter establishes a Bluetooth connection with the receiver through the Bluetooth connection module, it performs audio conversion and compression encoding through the audio processing module, performs physical layer encoding through the Bluetooth processing module, and directs the encoded data to multiple antennas through beamforming, and then sends it to the receiver through multiple antennas to realize voice communication between the transmitter and the receiver.
[0061] For example, such as Figure 5B The hardware structure diagram shown illustrates that WiFi / BT includes a Codec unit, which is a physical layer encoding unit used to perform physical layer encoding on the audio data stream. An internal diagram of the Codec unit is shown below. Figure 5E As shown, the raw data b1b0 passes through the codec unit, and different encoding output results can be obtained depending on the encoding type (PHY mode) used. For example, using LEcodedPHYwithS=2, the output is b1b1b0b0, and if LEcodedPHYwithS=8, the output is b1 b1b1b1b1b1b1b1b1 b0 b0b0b0b0b0b0b0. Using physical layer encoding S8 improves upon the current scheme by 12dB.
[0062] For example, when the channel transmission rate is reduced, a higher PHY mode can be used. That is, the S8 mode has a lower channel transmission rate than the S2 mode, but achieves a longer transmission distance.
[0063] In some embodiments, the encoding unit in the Bluetooth processing module adopts a separate control approach for S2 / S8 PHY mode and BLE 2M. This is achieved by reducing the backoff power value for all modes in the first configuration file, and by backing off more power for contention on the physical channel in the second configuration file. The transmit power is then determined based on both the first and second configuration files. This improves the transmit power of the PHY mode while ensuring the performance of the 2M PHY.
[0064] In some embodiments, the transmitting unit may employ a multi-antenna configuration for beamforming directional transmission.
[0065] For example, such as Figure 5F The Beamforming diagram shown illustrates that when using multiple antennas, coded data can be directionally transmitted to each antenna and then transmitted to the receiver via each antenna.
[0066] For example, WiFi / BT includes transmit beamforming, such as... Figure 5E The schematic diagram of the communication system shown in this embodiment uses two transmitting antennas. Therefore, by adjusting the phase of the two transmitting signals, a gain of 3dB can be obtained in the conduction mode compared to a single channel.
[0067] In some embodiments, after sending audio data to the receiving end, the sending end can receive the audio data sent by the receiving end using the method described above. Therefore, the sending end needs to use the following modules to receive, decode, and convert the audio data to obtain the audio signal corresponding to the audio data sent by the receiving end, thus enabling two-way voice communication. Correspondingly, after receiving the audio data from the sending end, the receiving end also uses the following modules to receive, decode, and convert the audio data to restore the original audio signal.
[0068] In some embodiments, the Bluetooth processing module further includes a decoding unit and a receiving unit. The receiving unit is used to linearly process the data to be decoded received by multiple antennas through maximum ratio combining to obtain a fused data stream. The decoding unit is used to decode the fused data stream according to the decoding PHY mode through physical layer decoding to obtain decoded data.
[0069] In some embodiments, after the transmitting end receives the data to be decoded sent by the receiving end from the multi-antenna, it needs to receive and process it through the Bluetooth processing module. For example, the receiving unit merges and fuses the data to be decoded received by the multi-antenna, and then decodes the merged and fused data through the physical layer to obtain the decoded data.
[0070] In some embodiments, the decoding PHY mode used by the decoding unit corresponds to the encoding PHY mode used by the encoding unit, that is, the decoding is performed by the reverse process of the encoding PHY mode.
[0071] For example, WiFi / BT also includes a receiver unit, namely receiver maximum ratio combining (MRC), which performs linear processing on the data to be decoded received from multiple antennas to obtain a fused data stream from the multiple antennas.
[0072] For example, the signal received from each antenna at the receiver is phase-adjusted so that all signals are phase-aligned, and an appropriate gain coefficient is calculated based on the signal amplitude and noise power of each branch. After phase adjustment and gain coefficient calculation, the signals of all branches are added in phase according to the gain coefficient to obtain the combined signal.
[0073] In the above embodiments, by using maximum ratio combining to perform linear processing on the data to be decoded, performance improvements can be achieved compared to selected combining and equal gain combining, such as a higher signal-to-noise ratio and better bit error rate characteristics.
[0074] For example, WiFi / BT also includes a physical layer decoding unit (decodec) that performs physical layer decoding on the combined signal output by MRC. The decoding PHY mode of the decodec is the opposite of the encoding PHY mode of the codec.
[0075] In some embodiments, the conversion unit is also configured to convert the decoded data into an audio signal via D / A conversion.
[0076] For example, after WiFi / BT undergoes maximum ratio combining and physical layer decoding, the decoded data is transmitted to Audio. Audio also includes a D / A converter to convert the decoded data into an audio signal, and then AudioTrack is called to play the audio.
[0077] For example, after recording, phone B sends the audio data to phone A via Bluetooth. After receiving the audio data, phone A processes it through MRC and decoder to obtain the decoded data, and then obtains the audio signal through D / A converter, and calls AudioTrack to play it.
[0078] In summary, the chip proposed in this disclosure can enable real-time, two-way, long-distance voice calls via Bluetooth in the absence of a network or with a poor network, thereby improving the user experience.
[0079] Figure 2 This is a flowchart illustrating a message sending method according to an embodiment of this disclosure. Figure 2 As shown, this method is performed by the sending device. The method may include the following steps:
[0080] Step 201: Establish a Bluetooth connection with a longer time window.
[0081] In some embodiments, establishing a Bluetooth connection with a timing of extended time windows includes one or a combination of the following: extending the transmission window duration; extending the reception window duration; and extending the duration of the time window between transmission and reception.
[0082] In some embodiments, a Bluetooth connection can be established by increasing the duration of the transmission window, the duration of the reception window, or the duration of the time window between transmission and reception.
[0083] In some embodiments, establishing a Bluetooth connection with an extended time window includes the transmitting device sending a connection request to the receiving device and opening the receiving window of the transmitting device, extending the receiving window for a first duration; and after receiving feedback information from the receiving device, establishing a Bluetooth connection with the receiving device, wherein the first duration is longer than the second duration of the extended receiving window of the receiving device.
[0084] In some embodiments, establishing a Bluetooth connection with a timing of an extended time window includes: determining a third duration of the time window, the third duration being longer than the default time window duration.
[0085] For example, such as Figure 5H The Bluetooth connection window diagram shown illustrates how adding a T to the time window... range Or lengthen the T-shirt iFS This ensures a stable Bluetooth connection over long distances.
[0086] For example, after phone A sends a connection request to phone B, it opens a time window and increments phone B's time window by T. range To receive connection requests, upon receiving a connection request, a feedback message is sent to phone A, and the time window of phone A is increased by 2T accordingly. range This is to establish a Bluetooth connection between phone A and phone B.
[0087] For example, by increasing the time window of the interval, i.e., increasing Figure 5H The T shown iFS This extends the overall time window, ensuring normal Bluetooth connection over long distances.
[0088] For example, the default time window duration is 150 seconds; you can set it to 160 seconds to establish a Bluetooth connection.
[0089] For example, the default time window duration is 150. After phone A sends a connection request to phone B, the duration of phone B's receiving window is increased by 10, and the duration of phone A's receiving window is increased by 20 to establish a Bluetooth connection between phone A and phone B.
[0090] Step 202: Increase the fallback power of the non-target Bluetooth rate mode and increase the transmit power of the target Bluetooth rate mode.
[0091] In some embodiments, increasing the fallback power for non-target Bluetooth rate modes and increasing the transmit power for target Bluetooth rate modes includes: in a first profile, reducing the fallback value of the fallback power for all modes; in a second profile, falling back more power for non-target Bluetooth rate modes; and determining the transmit power based on the first and second profiles.
[0092] In some embodiments, the non-target Bluetooth rate modes are: 1M PHY and 2M PHY.
[0093] In some embodiments, in a first profile, the backoff power is reduced for all modes; in a second profile, more power is backed off for 1M PHY and 2M PHY; and the transmit power is determined based on the first and second profiles.
[0094] For example, in configuration file 1, the backoff power is reduced for all modes, and in configuration file 2, more power is backed off for the 1M and 2M PHYs, which improves the transmit power of S2 / S8 while ensuring the performance of the 2M PHY.
[0095] Step 203: Send a message to the receiving device via the Bluetooth channel.
[0096] In some embodiments, the sending device may send a message to the receiving device based on the transmission power.
[0097] In some embodiments, the sending device may send messages to the receiving device based on the Bluetooth connection established in step 201.
[0098] In some embodiments, the transmitting device may send a message to the receiving device based on the Bluetooth connection established in step 201 and the transmission power determined in step 202.
[0099] In some embodiments, the transmitting device may send a message to the receiving device via a Bluetooth channel by: converting the acquired audio data into a data stream through A / D conversion, and compressing and encoding the data stream to obtain an audio data stream; performing physical layer encoding on the audio data stream to obtain encoded data; and then using beamforming to directionally transmit the encoded data to the receiving device via multiple antennas.
[0100] In some embodiments, the transmitting device obtains audio data by recording, and the acquisition parameters can be preset.
[0101] For example, mobile phone A acts as the transmitting device, using the following recording parameters: 8kHz sampling rate, mono, 16-bit sampling, and a bitrate of 16Kbyte / s to obtain audio data.
[0102] In some embodiments, the acquired audio data can be converted into a digital signal, i.e., a data stream, through A / D conversion.
[0103] For example, the audio data obtained from recording on mobile phone A is converted into a data stream through A / D conversion.
[0104] In some embodiments, after the acquired audio data is converted from analog to digital, it can be compressed and encoded using a speech compression algorithm to obtain a compressed audio data stream.
[0105] In some embodiments, the speech compression algorithm can be a lossless compression algorithm or a lossy compression algorithm. Different compression algorithms can reduce the size of speech data. By selecting different compression algorithms and parameters, the relationship between sound quality and compression rate can be balanced to achieve different compression effects.
[0106] For example, phone A uses 32x compression encoding to adapt to the long-distance Bluetooth transmission rate, resulting in a compressed data stream.
[0107] For example, such as Figure 5A As shown in the flowchart, mobile phone A records audio using AudioRecord. The recording parameters are selected as 8kHz sampling rate, mono, 16-bit sampling, and bitrate of 16Kbyte / s. The acquired raw audio data is converted into a data stream by an A / D converter, and then the data stream is compressed by 8x or 32x using a compression algorithm to obtain the audio data stream.
[0108] In some embodiments, physical layer encoding of the audio data stream can be performed by determining the encoding PHY mode based on the channel transmission rate and the distance between the transmitting and receiving devices; and then encoding the audio data stream according to the encoding PHY mode to obtain encoded data.
[0109] In some embodiments, the coding PHY mode used for physical layer coding can be determined based on the channel transmission rate and the distance between the transmitting and receiving devices. Furthermore, the coding PHY mode is negatively correlated with the channel transmission rate and positively correlated with the distance between the transmitting and receiving devices.
[0110] For example, the physical layer encoding codec uses forward error correction (FEC) to encode the audio data stream. A schematic diagram of the internal structure of the codec unit is shown below. Figure 5E As shown, the raw data b1b0 passes through the Codec unit, and different encoding output results can be obtained depending on the encoding type (PHY mode) used. The encoding PHY mode can be S2 mode or S8 mode. S2 mode uses two symbols for encoding, while S8 mode uses eight symbols for encoding. Compared with S2 mode, S8 mode can achieve a longer transmission distance, but the transmission rate is lower. Therefore, at the expense of transmission rate, S8 mode can be used for physical layer encoding to achieve long-distance data transmission.
[0111] For example, such as Figure 5A As shown in the flowchart, mobile phone A performs A / D conversion and compression encoding on the acquired audio data, and then performs physical layer encoding codec to obtain encoded data.
[0112] In some embodiments, beamforming involves phase adjustment of coded data to directionally transmit it to a receiving device via multiple antennas, thereby increasing the signal gain of the coded data transmitted by the transmitting device in the direction of the receiving device, and further enhancing the signal received by the receiving device.
[0113] For example, such as Figure 5A As shown in the flowchart, mobile phone A transmits coded data to mobile phone B via multiple antennas through beamforming.
[0114] For example, such as Figure 5F The beamforming diagram shown illustrates that when using multiple antennas, coded data can be directionally transmitted to each antenna and then transmitted to the receiving device through each antenna.
[0115] For example, such as Figure 5G The schematic diagram of the communication system shown in this embodiment uses two transmitting antennas. Therefore, by adjusting the phase of the two transmitting signals, a gain of 3dB can be obtained in the conduction mode compared to a single channel.
[0116] In some embodiments, the receiving device can receive coded data directionally transmitted by the transmitting device through multiple antennas; in other words, each antenna can receive the coded data.
[0117] In some embodiments, the receiving device may also use the audio processing method proposed in this disclosure to send real-time collected audio data to the sending device to achieve two-way voice communication.
[0118] In the above embodiments, steps 201 and 202 can be executed simultaneously, or either step 201 or step 202 can be executed.
[0119] In summary, the message sending method proposed in this disclosure can enable real-time voice calls over long distances via Bluetooth connection even without a network.
[0120] Figure 3 This is a flowchart of the message sending method proposed in an embodiment of this disclosure. Based on Figure 2 The illustrated embodiments, such as Figure 3 As shown, it also includes the following steps.
[0121] Step 301: Receive the data to be decoded sent by the receiving device through a multi-antenna system.
[0122] In some embodiments, the transmitting device may receive data from the receiving device using, for example... Figure 2 The audio data transmitted by the method shown is received by the transmitting device through a multi-antenna array, which is the encoded data sent by the receiving device.
[0123] Step 302: The data to be decoded received by each antenna is linearly processed by maximum ratio combining to obtain a fused data stream.
[0124] In some embodiments, maximum ratio combining can be performed by linearly processing the data to be decoded received by each antenna, that is, by adjusting the phase of the signal so that all signals are aligned in phase, and calculating an appropriate gain coefficient based on the signal amplitude and noise power of each branch. After phase adjustment and gain coefficient calculation, the signals of all branches are added in phase according to the gain coefficient to obtain the combined signal.
[0125] For example, such as Figure 5A As shown in the flowchart, mobile phone A uses maximum ratio combining to perform phase adjustment and combining on the audio data received by each antenna from mobile phone B to obtain a fused data stream.
[0126] Step 303: Perform physical layer decoding on the fused data stream to obtain decoded data.
[0127] In some embodiments, physical layer decoding of the fused data stream can be performed by determining the decoding PHY mode based on the encoding PHY mode, and then decoding the fused data stream according to the decoding PHY mode to obtain decoded data.
[0128] In some embodiments, physical layer decoding is the reverse process of physical layer encoding. Based on the encoding PHY mode, the decoding PHY mode of the reverse process can be determined. By using the decoding PHY mode to decode the fused data stream, decoded data can be obtained.
[0129] Step 304: Perform D / A conversion on the decoded data to obtain the audio signal.
[0130] In some embodiments, the decoded data obtained by decoding is converted from digital to analog to obtain the original audio signal.
[0131] In some embodiments, audio signals can be played by invoking an audio player.
[0132] For example, phone A calls AudioTrack to play the decoded audio signal.
[0133] In the above embodiments, after receiving the data to be decoded sent by the other device, the transmitting and receiving devices can perform phase adjustment and merging through maximum ratio combining, and perform physical layer decoding and digital-to-analog conversion to restore the original audio signal, thereby realizing long-distance, real-time, two-way voice calls based on Bluetooth in the absence of a network.
[0134] Figure 4 This is a flowchart illustrating the message sending method proposed in an embodiment of this disclosure. Based on Figures 2-3 The illustrated embodiments, such as Figure 4 As shown, it also includes the following steps.
[0135] Step 401: Turn on the Bluetooth switch and search the network to determine the list of connectable devices.
[0136] In some embodiments, by turning on the Bluetooth switch, the sending and receiving devices can search the network to obtain a list of connectable devices.
[0137] For example, such as Figure 5C The diagram shows a Bluetooth connection. After both phone A and phone B turn on Bluetooth, phone B continuously sends broadcasts, and phone A successfully establishes a connection on channel CH37 by scanning (searching the network).
[0138] In some embodiments, the sending device may display a list of connectable devices in a UI display interface.
[0139] For example, such as Figure 5D As shown in the UI, after turning on Bluetooth and keeping the no-network switch on, phone A can search for nearby contacts through the network and display them on the UI.
[0140] In some embodiments, the logical priority of the UI interface for displaying connectable devices can be that devices that have been called and are currently scannable are prioritized over other devices; or devices that have been called and were scanned first are ranked higher.
[0141] In some embodiments, the user of the device can select the option to be called through the UI display interface, such as being called by anyone or by a contact.
[0142] Step 402: Receive a first user instruction and / or a second user instruction triggered by a user click operation, determine the receiving device in the list of connectable devices according to the first user instruction, and / or determine a blacklisted device in the list of connectable devices according to the second user instruction, and add the blacklisted device to the blacklist.
[0143] In some embodiments, users of the device can select a receiving device for a voice call from a list of connectable devices by clicking on the UI interface.
[0144] In some embodiments, users of the device can select a blacklisted device from the list of connectable devices by clicking on the UI interface, that is, to identify the selected device as a blacklisted device and add the blacklisted device to the blacklist.
[0145] In some embodiments, users of the device can also remove devices from the blacklist by clicking on the UI.
[0146] For example, users can long-press on a nearby contact and select to block it in a pop-up window; contacts already on the blacklist can also be removed.
[0147] In the above embodiments, users can select a device for voice calls from the list of connectable devices determined via Bluetooth, i.e., the receiving device, by clicking on the device, or they can block the connectable devices to achieve two-way voice calls based on Bluetooth, thereby improving the user experience.
[0148] Figure 5A This is a schematic diagram of a message sending method disclosed herein. Figure 5B The corresponding hardware structure diagram includes an Audio module and a WiFi / BT module. The output of the Audio module is connected to the input of the WiFi / BT module. The Audio module includes an A / D converter, a D / A converter, and a compression encoding unit. The WiFi / BT module includes a Codec unit, a Beamforming unit, and an MRC unit. Figure 5A As shown, the method includes the following steps:
[0149] Step 1: Establish a BLE Coded Phy connection between mobile phone A (Client) and mobile phone B (Server).
[0150] like Figure 5C The Bluetooth connection diagram shown illustrates that after both phone A and phone B turn on their Bluetooth, phone B continuously sends broadcasts, and phone A successfully establishes a connection on channel CH37 by scanning (searching the network).
[0151] like Figure 5D The UI display interface shown is illustrated. The option to be called can be selected by the user: the user can choose to be called by everyone or by a contact.
[0152] The logic for the nearby contact list is as follows: After long-pressing a nearby device found in the search, the user can select to block it in the pop-up window, and devices in the blacklist can be removed by clicking.
[0153] The logic priority for displaying nearby contacts is as follows: devices that have been called and are currently scannable > other devices; devices that have been called are listed first (the sorting of other devices follows the same logic).
[0154] Bluetooth connection timing: Adjust the time windows of the transmitter and receiver, and / or lengthen the interval time window to increase the total time window and ensure normal connection over long distances. For example... Figure 5H The Bluetooth connection window diagram shown illustrates how adding a T to the time window... range Or lengthen the T-shirt iFS This ensures a stable Bluetooth connection over long distances.
[0155] Step 2: Phone A records the original audio using AudioRecord with the following parameters: 8kHz sampling rate, mono, 16-bit sampling, and bitrate of 16KByte / s.
[0156] Step 3: Obtain the audio stream through audio acquisition, convert it into a data stream through A / D conversion, use the open-source software Speex to compress and encode the audio data by 32 times, encode it through the Codec physical layer, perform beamforming, send it to the antenna, and send it to mobile phone B through Gatt write.
[0157] Furthermore, the internal diagram of the Codec unit is as follows: Figure 5E As shown, the raw data b1b0 passes through the codec unit, and different encoding output results can be obtained depending on the encoding type (PHY mode) used. For example, using LEcodedPHYwithS=2, the output is b1b1b0b0, and if LEcodedPHYwithS=8, the output is b1 blblblblblblbl b0 b0b0b0b0b0b0b0, as shown in the table below. Using physical layer encoding S8 improves the efficiency by 12dB compared to the current scheme.
[0158] <![CDATA[ Bluetooth speed ]]> Encoding type rate Sensitivity illustrate <![CDATA[ Standard Bluetooth ]]> LE·uncoded·PHY 1Mbps -100dBm conventional Standard Bluetooth LE·coded·PHY·with·S=2 500Kbps -105dBm Current plan, <![CDATA[ Standard Bluetooth ]]> LE·coded·PHY·with·S=8 125Kbps -112dBm Current Plan
[0159] By adopting separate control for S2 / 8 and BLE 2M, the backoff power value of all modes is reduced in configuration file 1, and more power is backed up for 1M and 2M PHY in configuration file 2 to ensure the performance of 2M PHY and improve the transmission power of S2 / 8.
[0160] Figure 5F The diagram illustrates beamforming. When using multiple antennas, coded data can be directionally transmitted to each antenna, and then transmitted to the receiver via each antenna. For example... Figure 5G The schematic diagram of the communication system shown uses two transmitting antennas. By adjusting the phase of the two transmitting signals, a 3dB gain can be obtained in the conduction mode compared to a single antenna.
[0161] Step 4: After receiving the audio data, mobile phone B performs maximum ratio combining (MRC), decodes it at the decoder physical layer, performs D / A conversion, obtains the audio stream, and calls AudioTrack to play it.
[0162] Step 5: Record audio on phone B, repeating steps 1 through 4 above.
[0163] Figure 6 This is a schematic diagram of the structure of a message sending device 600 according to an embodiment of this disclosure. Figure 6 As shown, the device includes:
[0164] Connection module 601 is used to establish a Bluetooth connection with a timing that has an extended time window;
[0165] And / or power module 602, for increasing the fallback power of non-target Bluetooth rate mode and increasing the transmit power of target Bluetooth rate mode;
[0166] The sending module 603 is used to send messages to the receiving device via the Bluetooth channel.
[0167] In some embodiments, the power module is further configured to reduce the backoff value of the backoff power for all modes in a first profile; back off more power for non-target Bluetooth rate modes in a second profile; and determine the transmit power based on the first and second profiles.
[0168] In some embodiments, the non-target Bluetooth rate modes are: 1M PHY and 2M PHY.
[0169] In some embodiments, the connection module is further configured to extend the transmission window duration; extend the reception window duration; and extend the duration of the time window between transmission and reception.
[0170] In some embodiments, the connection module is further configured to send a connection request to the receiving device and open the receiving window of the sending device, and extend the receiving window for a first duration; after receiving feedback information sent by the receiving device, establish a Bluetooth connection with the receiving device, wherein the first duration is longer than the second duration of the extended receiving window of the receiving device.
[0171] In some embodiments, the connection module is further configured to determine a third duration of the time window, the third duration being longer than the default duration of the time window.
[0172] In some embodiments, the transmitting module is further configured to convert the acquired audio data into a data stream through A / D conversion, and compress and encode the data stream to obtain an audio data stream; perform physical layer encoding on the audio data stream to obtain encoded data; and transmit the encoded data directionally to the receiving device through multiple antennas via beamforming.
[0173] In some embodiments, the transmitting module is further configured to: determine the encoding PHY mode based on the channel transmission rate and the distance between the transmitting device and the receiving device; and encode the audio data stream according to the encoding PHY mode to obtain encoded data.
[0174] In some embodiments, the transmitting module is further configured to: receive data to be decoded transmitted by the receiving device through multiple antennas; perform linear processing on the data to be decoded received by each antenna through maximum ratio combining to obtain a fused data stream; perform physical layer decoding on the fused data stream to obtain decoded data; and perform D / A conversion on the decoded data to obtain an audio signal.
[0175] In some embodiments, the sending module is further configured to: determine the decoding PHY mode according to the encoding PHY mode; and perform decoding processing on the fused data stream according to the decoding PHY mode to obtain decoded data.
[0176] In some embodiments, the connection module is further configured to: turn on the Bluetooth switch, search the network, and determine a list of connectable devices; receive a first user instruction and / or a second user instruction triggered by a user click operation, determine the receiving device in the list of connectable devices according to the first user instruction, and / or determine a blacklisted device in the list of connectable devices according to the second user instruction, and add the blacklisted device to the blacklist.
[0177] Regarding the message sending device in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0178] Figure 7 This is a schematic diagram of the structure of an electronic device 700 for implementing the above-described message sending method, according to an exemplary embodiment.
[0179] Reference Figure 7 The electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, an input / output (I / O) interface 708, a sensor component 710, and a communication component 1012.
[0180] Processing component 702 typically controls the overall operation of electronic device 700, such as operations associated with display, telephone calls, data communication, battery management, and recording. Processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include an equalization module to facilitate interaction between power supply component 706 and processing component 702.
[0181] Memory 704 is configured to store various types of data to support the operation of electronic device 700. Examples of this data include instructions for any application or method operating on electronic device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0182] Power supply component 706 provides power to various components of electronic device 700. Power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 700.
[0183] I / O interface 708 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0184] Sensor assembly 710 includes one or more sensors for providing state assessments of various aspects of electronic device 700. For example, sensor assembly 710 can detect the on / off state of electronic device 700, the relative positioning of components such as the display and keypad of electronic device 700, changes in position of electronic device 700 or a component of electronic device 700, the presence or absence of user contact with electronic device 700, orientation or acceleration / deceleration of electronic device 700, and temperature changes of electronic device 700. Sensor assembly 710 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 710 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 710 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0185] Communication component 712 is configured to facilitate wired or wireless communication between electronic device 700 and other devices. Electronic device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR (NewRadio), or combinations thereof. In one exemplary embodiment, communication component 712 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 712 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0186] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0187] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of an electronic device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0188] This disclosure also provides an electronic device, including, for example: Figure 1 The chip shown.
[0189] In some embodiments, the electronic device further includes a radio frequency chip, including an audio module and a connection module. The audio module is used to receive real-time acquired audio data, and the connection module is used to transmit audio data to the chip. The output of the connection module is connected to the input of the chip.
[0190] This disclosure also provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the steps of the message sending method provided in this disclosure.
[0191] Embodiments of this disclosure also provide a computer program product, including a computer program that is executed by a processor using the message sending method described in the above embodiments of this disclosure.
[0192] The embodiments of this disclosure also propose a chip, including at least one processor and a communication interface. The communication interface is used to receive signals input to the chip or output signals from the chip. The processor communicates with the communication interface and implements the message sending method described in the above embodiments of this disclosure through logic circuits or execution code instructions.
[0193] Furthermore, the term “exemplary” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as advantageous compared to other aspects or designs. Rather, the use of the term “exemplary” is intended to present the concept in a concrete manner. As used herein, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless otherwise specified or clear from the context, “X applies A or B” is intended to mean any of the natural inclusive arrangements. That is, “X applies A or B” satisfies any of the foregoing instances if X applies A; X applies B; or both X applies A and B. Additionally, unless otherwise specified or clear from the context to refer to the singular form, the articles “a” and “an” as used in this application and the appended claims are generally understood to mean “one or more.”
[0194] Similarly, although this disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding the specification and drawings. This disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terminology used to describe such components is intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if structurally not equivalent to the disclosed structure. Furthermore, although specific features of this disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and advantageous to any given or particular application. Moreover, with regard to the terms “comprising,” “owning,” “having,” “having,” or variations thereof as used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term “including.”
[0195] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0196] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
[0197] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0198] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0199] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.
[0200] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (control method), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic device, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0201] It should be understood that various parts of the embodiments of this disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0202] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0203] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a single processing module, or each unit can exist physically separately, or two or more units can be integrated into a single module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The aforementioned storage medium can be a read-only memory, a hard disk, or an optical disk, etc.
[0204] Although embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A message sending method, characterized in that, The method is executed by the sending device, and the method includes: Establish Bluetooth connections with a longer time window; and / or increase the backoff power of non-target Bluetooth rate modes and increase the transmit power of target Bluetooth rate modes. Send messages to the receiving device via Bluetooth channel.
2. The method according to claim 1, characterized in that, The increase in fallback power for non-target Bluetooth rate modes and the increase in transmit power for target Bluetooth rate modes include: In the first configuration file, reduce the backoff value of the backoff power for all modes; In the second configuration file, more power is backed up for non-target Bluetooth rate modes; The transmission power is determined based on the first configuration file and the second configuration file.
3. The method according to claim 2, characterized in that, The non-target Bluetooth rate modes are: 1M PHY and 2MPHY.
4. The method according to claim 1 or 2, characterized in that, The establishment of a Bluetooth connection with an extended time window includes one or a combination of the following: Increase the duration of the sending window; Increase the duration of the receiving window; Increase the duration of the time window between sending and receiving.
5. The method according to claim 4, characterized in that, The establishment of a Bluetooth connection with an extended time window includes: Send a connection request to the receiving device and open the receiving window of the sending device, and extend the receiving window for a first duration; After receiving feedback information from the receiving device, a Bluetooth connection is established with the receiving device, wherein the first duration is longer than the second duration of the receiving window extension of the receiving device.
6. The method according to claim 4, characterized in that, The establishment of a Bluetooth connection with an extended time window includes: A third duration is determined for the time window, which is longer than the default duration of the time window.
7. The method according to claim 1, characterized in that, The sending of messages to the receiving device via the Bluetooth channel includes: The acquired audio data is converted into a data stream through A / D conversion, and the data stream is compressed and encoded to obtain an audio data stream. The audio data stream is physically encoded to obtain encoded data; The coded data is transmitted directionally to the receiving device via multiple antennas through beamforming.
8. The method according to claim 7, characterized in that, The physical layer encoding of the audio data stream includes: The encoding PHY mode is determined based on the channel transmission rate and the distance between the transmitting device and the receiving device; The audio data stream is encoded according to the specified PHY encoding mode to obtain the encoded data.
9. The method according to claim 8, characterized in that, The method further includes: The receiver receives the data to be decoded sent by the receiving device through the multi-channel antenna; The data to be decoded received by each antenna is linearly processed through maximum ratio combining to obtain a fused data stream; The fused data stream is physically decoded to obtain decoded data; The decoded data is then subjected to D / A conversion to obtain an audio signal.
10. The method according to claim 9, characterized in that, The physical layer decoding of the fused data stream includes: Determine the decoding PHY mode based on the encoding PHY mode; According to the decoding PHY mode, the fused data stream is decoded to obtain the decoded data.
11. The method according to claim 1, characterized in that, The method further includes: Turn on Bluetooth and search the network to find a list of connectable devices; The system receives a first user instruction and / or a second user instruction triggered by a user click operation, determines the receiving device in the list of connectable devices according to the first user instruction, and / or determines a blacklisted device in the list of connectable devices according to the second user instruction, and adds the blacklisted device to the blacklist.
12. A chip, characterized in that, Includes: Bluetooth connectivity module and / or Bluetooth processing module, audio processing module, The Bluetooth processing module is used to increase the fallback power of non-target Bluetooth rate mode and increase the transmission power of target Bluetooth rate mode. The Bluetooth connection module is used to establish a timing Bluetooth connection with an extended time window; The audio processing module is used to send messages to the receiving end via the Bluetooth channel.
13. The chip according to claim 12, characterized in that, The Bluetooth connection module is used for broadcasting and establishing Bluetooth connections. The establishment of Bluetooth connections is achieved by extending the receiving window for a first duration at the receiving end and extending the receiving window for a second duration at the sending end, so that the sending end and the receiving end can establish a Bluetooth connection. The second duration is longer than the first duration. The audio processing module includes a conversion unit and a compression encoding unit. The conversion unit is used to convert real-time acquired audio data into a data stream through A / D conversion. The compression encoding unit is used to compress and encode the data stream to obtain an audio data stream. The Bluetooth processing module includes an encoding unit and a transmitting unit. The encoding unit is used to encode the audio data stream according to the encoding PHY mode through physical layer encoding to obtain encoded data. The transmitting unit is used to directionally transmit the encoded data to a multi-antenna through beamforming and transmit the encoded data to the receiving end through the multi-antenna. The input of the Bluetooth processing module is connected to the output of the audio processing module.
14. The chip according to claim 13, characterized in that, The Bluetooth processing module also includes a decoding unit and a receiving unit. The receiving unit is used to linearly process the data to be decoded received by the multi-channel antenna through maximum ratio combining to obtain a fused data stream; The decoding unit is used to decode the fused data stream according to the decoding PHY mode through physical layer decoding to obtain decoded data.
15. The chip according to claim 13, characterized in that, The conversion unit is also used to convert the decoded data into an audio signal via D / A conversion.
16. The chip according to claim 14, characterized in that, The encoding PHY mode is negatively correlated with the channel transmission rate and the distance between the transmitter and the receiver.
17. A message sending device, comprising: A connectivity module for establishing timing-based Bluetooth connections with extended time windows; And / or power modules, used to increase the fallback power in non-target Bluetooth rate modes and increase the transmit power in target Bluetooth rate modes; The sending module is used to send messages to the receiving device via the Bluetooth channel.
18. An electronic device, characterized in that, include: A processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, performs the method of any one of claims 1-11.
19. An electronic device, characterized in that, Includes the chip as described in any one of claims 12-16.
20. The method according to claim 19, characterized in that, Also includes: The radio frequency chip includes an audio module and a connection module. The audio module is used to receive real-time acquired audio data, and the connection module is used to transmit the audio data to the chip. The output of the connection module is connected to the input of the chip.
21. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-11.
22. A chip, characterized in that, It includes at least one processor and a communication interface; the communication interface is used to receive signals input to the chip or signals output from the chip, and the processor communicates with the communication interface and implements the method as described in any one of claims 1-11 through logic circuits or executing code instructions.