Data transmission method, sound box, terminal equipment and system
By setting up a wireless charging device in the speaker and obtaining requests using Bluetooth addresses, the automatic connection and interaction between the speaker and the terminal device is realized, and the problem of limited interaction between electronic products in the prior art is solved, improving the sound quality and user experience.
Patent Information
- Application Number
- CN202411354245.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-01-10
AI Technical Summary
There is less interaction between existing electronic products, which limits the user experience.
By setting up a wireless charging device in the speaker, the Bluetooth address acquisition request and response mechanism is used to realize automatic Bluetooth connection between the speaker and the terminal device, and based on this, a data transmission channel is established, combined with a millimeter wave radar or camera to detect the distance of personnel in the room to adjust the volume.
It realizes automatic Bluetooth connection and interaction between speakers and terminal devices, improves sound quality, and automatically adjusts the volume according to user distance, improving user experience.
Smart Images

Figure CN119299995A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to smart device interaction technology, and more specifically, to a data transmission method, a speaker, a terminal device and a system. Background Art
[0002] At present, more and more electronic products have become popular in people's work, study and life, such as mobile phones, tablet computers, speakers, etc. Speakers can play audio to meet people's life and study needs. Tablet computers can play videos, which is convenient for learning and leisure and entertainment. However, there is little interaction between these electronic products, which makes their use relatively limited.
[0003] Public Content
[0004] One object of the present disclosure is to provide a new technical solution for a data transmission method.
[0005] According to a first aspect of the present disclosure, a data transmission method is provided, which is implemented by a speaker provided with a first wireless charging device, and includes:
[0006] In response to sensing that the terminal device is placed in the setting position of the first wireless charging device, using the first wireless charging device to send a request for obtaining a Bluetooth address to the terminal device;
[0007] Receiving a Bluetooth address of a terminal device returned by a second wireless charging device, wherein the second wireless charging device is disposed in the terminal device;
[0008] Obtaining a Bluetooth address pairing list, wherein the Bluetooth address pairing list includes Bluetooth addresses that have been successfully paired in the past;
[0009] In a case where the Bluetooth address pairing list includes the Bluetooth address of the terminal device, establishing a Bluetooth connection with the terminal device;
[0010] Based on the Bluetooth connection established with the terminal device, data is transmitted with the terminal device.
[0011] Optionally, the method further includes:
[0012] When the Bluetooth address pairing list does not include the Bluetooth address of the terminal device, the first wireless charging device is used to send a Bluetooth pairing request to the terminal device, so that the Bluetooth pairing request is displayed on the display interface of the terminal device.
[0013] Optionally, the first wireless charging device includes a first wireless charging chip and a first wireless charging coil, the second wireless charging device includes a second wireless charging chip and a second wireless charging coil, and the second wireless charging chip stores the Bluetooth address of the terminal device; wherein,
[0014] The using the first wireless charging device to send a request for obtaining a Bluetooth address to the terminal device includes:
[0015] Using the first wireless charging chip, through the coupling of the first wireless charging coil and the second wireless charging coil, the request for obtaining the Bluetooth address is sent to the second wireless charging chip;
[0016] The receiving the Bluetooth address of the terminal device returned by the second wireless charging chip includes:
[0017] The Bluetooth address of the terminal device sent by the second wireless charging chip is received through the coupling of the second wireless charging coil and the first wireless charging coil.
[0018] Optionally, the performing data transmission with the terminal device based on the Bluetooth connection established with the terminal device includes:
[0019] Based on the Bluetooth connection established with the terminal device, obtaining the audio data currently played by the terminal device;
[0020] Play the audio data currently being played by the terminal device.
[0021] Optionally, the method further includes:
[0022] Determining the distance between the speaker and a person in the room;
[0023] The volume of the audio data played by the speaker is adjusted according to the distance between the speaker and the person in the room.
[0024] Optionally, the method further includes:
[0025] Obtain point cloud data collected by millimeter-wave radar;
[0026] Determine whether there is a person in the room based on the point cloud data collected by the millimeter wave radar;
[0027] In the case where there is a person in the room, performing an operation of determining the distance between the speaker and the person in the room; or,
[0028] Get the image data collected by the camera;
[0029] Determine whether there is a person in the room based on the image data collected by the camera;
[0030] In the case where there is a person in the room, an operation of determining the distance between the speaker and the person in the room is performed.
[0031] According to a second aspect of the present disclosure, a data transmission method is provided, which is implemented by a terminal device provided with a second wireless charging apparatus, and includes:
[0032] When the terminal device is placed in the setting position of the first wireless charging device in the speaker, using the second wireless charging device to receive a request for obtaining the Bluetooth address of the terminal device sent by the speaker;
[0033] In response to a request for obtaining the Bluetooth address of the terminal device, using the second wireless charging device to send the Bluetooth address of the terminal device to the speaker;
[0034] When the speaker establishes a connection with the terminal device based on the Bluetooth address of the terminal device, data is transmitted with the speaker.
[0035] According to a third aspect of the present disclosure, a speaker is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is used to control the processor to operate so as to execute any method according to the first aspect of the present disclosure.
[0036] According to a fourth aspect of the present disclosure, a terminal device is provided, including a memory and a processor, wherein the memory stores a computer program, and the computer program is used to control the processor to operate to execute any method according to the second aspect of the present disclosure.
[0037] According to a fifth aspect of the present disclosure, a data transmission system is provided, comprising the speaker provided in the third aspect and the terminal device provided in the fourth aspect.
[0038] The data transmission method provided by the present invention, in response to sensing that the terminal device is placed in the setting position of the first wireless charging device, uses the first wireless charging device to send a request for obtaining a Bluetooth address to the terminal device, and receives the Bluetooth address of the terminal device returned by the second wireless charging device, wherein the second wireless charging device is set in the terminal device, obtains a Bluetooth address pairing list, wherein the Bluetooth address pairing list includes Bluetooth addresses that have been successfully paired in the past, and when the Bluetooth address pairing list includes the Bluetooth address of the terminal device, establishes a Bluetooth connection with the terminal device, and based on the Bluetooth connection established with the terminal device, performs data transmission with the terminal device, thereby realizing automatic Bluetooth connection between the speaker and the terminal device on the one hand, and realizing interaction between the speaker and the terminal device based on the established Bluetooth connection on the other hand.
[0039] Features and advantages of the embodiments of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the embodiments of the specification.
[0041] Figure 1 is a processing flow chart of a data transmission method according to an embodiment of the present invention.
[0042] Figure 2 is a processing flow chart of a data transmission method according to an embodiment of the present invention.
[0043] Figure 3 4 is a hardware structure block diagram of a speaker according to an embodiment of the present invention.
[0044] Figure 4 4 is a hardware structure block diagram of a speaker according to an embodiment of the present invention.
[0045] Figure 5 is a hardware structure block diagram of a terminal device according to an embodiment of the present invention.
[0046] Figure 6 is a principle block diagram of a data transmission system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings.
[0048] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the embodiments of the present specification and its application or uses.
[0049] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0050] In one embodiment of the present invention, a data transmission method is provided. The method is implemented by a speaker provided with a first wireless charging device. Figure 1 As shown, the data transmission method of this embodiment may include the following steps S110 to S150.
[0051] Step S110, in response to sensing that the terminal device is placed in the setting position of the first wireless charging device, using the first wireless charging device to send a request for obtaining a Bluetooth address to the terminal device.
[0052] The terminal device is a mobile phone, tablet computer or wearable device.
[0053] In one embodiment, before executing step S110, the method further includes: using the first wireless charging device to transmit Analog Ping and Digital Ping to complete foreign object detection. This achieves the placement detection of the terminal device. Transmitting Analog Ping and Digital Ping specifically includes the following stages: Selection, Ping (network packet exploration), Identification & Configuration, and Power Transfer.
[0054] In one embodiment, the first wireless charging device includes a first wireless charging chip and a first wireless charging coil, the second wireless charging device includes a second wireless charging chip and a second wireless charging coil, and the second wireless charging chip stores a Bluetooth address of the terminal device.
[0055] In this embodiment, step S110 specifically includes: using the first wireless charging chip, through the coupling of the first wireless charging coil and the second wireless charging coil, sending the acquisition request of the Bluetooth address to the second wireless charging chip. The acquisition request of the Bluetooth address is a modulated signal obtained after modulation by the first wireless charging chip. The modulation technology is FSK (Frequency Shift Keying) technology. The modulated signal is sent to the RX end of the second wireless charging chip through the TX end of the first wireless charging chip and the coupling of the first wireless charging coil and the second wireless charging coil. After receiving the modulated signal, the second wireless charging chip demodulates the modulated signal to obtain the acquisition request of the Bluetooth address. The second wireless charging chip modulates the Bluetooth address of the terminal device to obtain a modulated signal, and uses its TX end to send the modulated signal to the RX end of the first wireless charging chip through the coupling of the second wireless charging coil and the first wireless charging coil. It should be noted that when performing the above-mentioned foreign object detection, the first wireless charging chip informs the second wireless charging chip of the FSK parameters.
[0056] Step S120, receiving the Bluetooth address of the terminal device returned by the second wireless charging device, wherein the second wireless charging device is set in the terminal device.
[0057] In one embodiment, the Bluetooth address of the terminal device sent by the second wireless charging chip is received through the coupling of the second wireless charging coil and the first wireless charging coil. Specifically, the Bluetooth address of the terminal device is a modulated signal obtained after modulation by the second wireless charging chip. The modulated signal is sent to the RX end of the first wireless charging chip through the TX end of the second wireless charging chip and the coupling of the second wireless charging coil and the first wireless charging coil. After receiving the modulated signal, the first wireless charging chip demodulates the modulated signal to obtain the Bluetooth address of the terminal device.
[0058] Step S130, obtaining a Bluetooth address pairing list, wherein the Bluetooth address pairing list includes Bluetooth addresses that have been successfully paired in the past.
[0059] Step S140: When the Bluetooth address pairing list includes the Bluetooth address of the terminal device, establish a Bluetooth connection with the terminal device.
[0060] Specifically, the Bluetooth address of the terminal device is compared with each Bluetooth address in the Bluetooth address pairing list to obtain a comparison result. If the comparison result shows that the Bluetooth address of the terminal device is consistent with a Bluetooth address in the Bluetooth address pairing list, it is determined that the terminal device and the speaker have completed Bluetooth pairing before. At this time, the speaker automatically establishes a Bluetooth connection with the terminal device to ensure the security of the Bluetooth connection.
[0061] In one embodiment, the method further includes: when the Bluetooth address pairing list does not include the Bluetooth address of the terminal device, using the first wireless charging device to send a Bluetooth pairing request to the terminal device, so that the Bluetooth pairing request is displayed on the display interface of the terminal device.
[0062] Specifically, the Bluetooth address of the terminal device is compared with each Bluetooth address in the Bluetooth address pairing list to obtain a comparison result. When the comparison result is that the Bluetooth address of the terminal device is inconsistent with each Bluetooth address in the Bluetooth address pairing list, it means that the terminal device and the speaker have not completed Bluetooth pairing before. At this time, the first wireless charging chip is used to send a Bluetooth pairing request to the second wireless charging chip through the coupling of the first wireless charging coil and the second wireless charging coil. The Bluetooth pairing request is a modulated signal obtained after modulation by the first wireless charging chip. The modulated signal is sent to the RX end of the second wireless charging chip through the TX end of the first wireless charging chip and the coupling of the first wireless charging coil and the second wireless charging coil. After receiving the modulated signal, the second wireless charging chip demodulates the modulated signal to obtain a Bluetooth pairing request. After receiving the Bluetooth pairing request, the terminal device displays the Bluetooth pairing request on the display interface. After the user triggers the Bluetooth pairing operation, the second wireless charging chip modulates the Bluetooth pairing determination instruction to obtain a modulated signal, and uses its TX end to send the modulated signal to the RX end of the first wireless charging chip through the coupling of the second wireless charging coil and the first wireless charging coil. The first wireless charging chip demodulates the modulated signal, obtains a confirmation instruction for Bluetooth pairing, and establishes a Bluetooth connection with the terminal device. After the user confirms the Bluetooth pairing, the Bluetooth connection between the speaker and the terminal device is executed, which can ensure the security of the Bluetooth connection.
[0063] Step S150: performing data transmission with the terminal device based on the Bluetooth connection established with the terminal device.
[0064] In one embodiment, step S150 specifically includes: based on the Bluetooth connection established with the terminal device, obtaining the audio data currently played by the terminal device; playing the audio data currently played by the terminal device. In this way, the audio data currently played by the terminal device can be played through the speaker. Since the speaker has a higher speaker configuration than the terminal device, the sound quality can be improved, and a more delicate, full and realistic sound effect can be presented.
[0065] In one embodiment, the method further includes: determining the distance between the speaker and the person in the room; and adjusting the volume of the audio data played by the speaker according to the distance between the speaker and the person in the room. In this way, the playback volume of the speaker can be automatically adjusted to an appropriate volume according to the distance between the speaker and the user, thereby improving the user experience.
[0066] Specifically, the speaker stores the correspondence between the distance between the speaker and the person in the room and the speaker playback volume value. Using the distance between the speaker and the person in the room, the corresponding speaker playback volume value is searched from the correspondence between the distance between the speaker and the person in the room and the speaker playback volume value, and is used as the volume value of the speaker playing the current audio data.
[0067] In one embodiment, the speaker includes a millimeter wave radar. The method also includes: obtaining point cloud data collected by the millimeter wave radar; determining whether there is a person in the room based on the point cloud data collected by the millimeter wave radar. The millimeter wave radar emits electromagnetic waves and receives its reflected signals, which form point cloud data. Using a clustering algorithm, clustering processing is performed on the point cloud data collected by the millimeter wave radar to determine whether the category corresponding to the detected target object includes a person. Specifically, a clustering algorithm is used to cluster the point cloud data collected by the millimeter wave radar to determine the shape and size of the target object, and the category corresponding to the target object is determined based on the shape and size of the target object. When the category corresponding to the detected target object includes a person, it is determined that there is a person in the room. The category corresponding to the detected target object is a person and / or an object.
[0068] In this embodiment, when there is a person in the room, an operation of determining the distance between the speaker and the person in the room is performed.
[0069] In one embodiment, a millimeter wave radar is used to determine the distance between the speaker and the person in the room. Specifically, a signal is transmitted to the person in the room using the transmitting antenna of the millimeter wave radar. When the transmitted signal reaches the person in the room, it is reflected back. The reflected signal is received using the receiving antenna of the millimeter wave radar. The distance between the speaker and the person in the room is calculated based on the propagation speed of the signal and the time difference between the transmitted signal and the reflected signal. The millimeter wave radar includes multiple antennas and uses a multi-transmit and multi-receive method to determine the distance between the speaker and the person in the room.
[0070] In one embodiment, the speaker includes a camera. The method further includes: acquiring image data collected by the camera; and determining whether there is a person in the room according to the image data collected by the camera. The image data collected by the camera is input into an image processing model to determine whether there is a person in the image. If it is determined that there is a person in the image, it is determined that there is a person in the room.
[0071] In this embodiment, when there is a person in the room, an operation of determining the distance between the speaker and the person in the room is performed.
[0072] In one embodiment, the speaker includes an infrared camera. The infrared camera is used to determine the distance between the speaker and the person in the room.
[0073] The data transmission method provided by the present invention realizes automatic Bluetooth connection between the speaker and the terminal device on the one hand, and realizes interaction between the speaker and the terminal device based on the established Bluetooth connection on the other hand.
[0074] In one embodiment of the present invention, a data transmission method is provided. The method is implemented by a terminal device provided with a second wireless charging device. The terminal device is a mobile phone, a tablet computer or a wearable device.
[0075] according to Figure 2 As shown, the data transmission method of this embodiment may include the following steps S210 to S230.
[0076] Step S210: When the terminal device is placed in the setting position of the first wireless charging device in the speaker, a request for obtaining the Bluetooth address of the terminal device sent by the speaker is received by using the second wireless charging device.
[0077] In one embodiment, the first wireless charging device includes a first wireless charging chip and a first wireless charging coil, the second wireless charging device includes a second wireless charging chip and a second wireless charging coil, and the second wireless charging chip stores a Bluetooth address of the terminal device.
[0078] In this embodiment, the second wireless charging chip is used to receive a request for obtaining a Bluetooth address through coupling of the first wireless charging coil and the second wireless charging coil.
[0079] The request to obtain the Bluetooth address is a modulated signal obtained after modulation by the first wireless charging chip. The modulation technology is FSK (Frequency Shift Keying) technology. The modulated signal is sent to the RX end of the second wireless charging chip through the TX end of the first wireless charging chip and the coupling of the first wireless charging coil and the second wireless charging coil. After receiving the modulated signal, the second wireless charging chip demodulates the modulated signal to obtain the request to obtain the Bluetooth address.
[0080] Step S220, in response to the request for obtaining the Bluetooth address of the terminal device, the Bluetooth address of the terminal device is sent to the speaker using the second wireless charging device.
[0081] In one embodiment, the second wireless charging chip is used to send the Bluetooth address of the terminal device to the first wireless charging chip through the coupling of the second wireless charging coil and the first wireless charging coil. Specifically, the second wireless charging chip modulates the Bluetooth address of the terminal device to obtain a modulated signal, and uses its TX terminal to send the modulated signal to the RX terminal of the first wireless charging chip through the coupling of the second wireless charging coil and the first wireless charging coil.
[0082] Step S230, when the speaker establishes a connection with the terminal device based on the Bluetooth address of the terminal device, data is transmitted with the speaker.
[0083] In one embodiment, the speaker obtains a Bluetooth address pairing list, wherein the Bluetooth address pairing list includes Bluetooth addresses of historical successful pairings. When the Bluetooth address pairing list includes the Bluetooth address of the terminal device, a Bluetooth connection with the terminal device is established. When the Bluetooth address pairing list does not include the Bluetooth address of the terminal device, a Bluetooth pairing request sent by the first wireless charging device is received using a second wireless charging device, and the Bluetooth pairing request is displayed on a display interface.
[0084] Specifically, through the coupling of the first wireless charging coil and the second wireless charging coil, the second wireless charging chip is used to receive the Bluetooth pairing request. The Bluetooth pairing request is a modulated signal obtained after modulation by the first wireless charging chip. The modulated signal is sent to the RX end of the second wireless charging chip through the TX end of the first wireless charging chip and the coupling of the first wireless charging coil and the second wireless charging coil. After receiving the Bluetooth pairing request, the terminal device displays the Bluetooth pairing request on the display interface. After the user triggers the Bluetooth pairing operation, the second wireless charging chip modulates the Bluetooth pairing confirmation instruction to obtain a modulated signal, and uses its TX end to send the modulated signal to the RX end of the first wireless charging chip through the coupling of the second wireless charging coil and the first wireless charging coil. The first wireless charging chip demodulates the modulated signal, obtains the Bluetooth pairing confirmation instruction, and establishes a Bluetooth connection with the terminal device. After the user confirms the Bluetooth pairing, the Bluetooth connection between the speaker and the terminal device is executed to ensure the security of the Bluetooth connection.
[0085] In one embodiment, step S230 specifically includes: based on the Bluetooth connection established with the terminal device, sending the currently played audio data to the speaker, so that the speaker plays the currently played audio data. In this way, the audio data currently played by the terminal device can be played through the speaker. Since the speaker has a higher speaker configuration than the terminal device, the sound quality can be improved, and a more delicate, full and realistic sound effect can be presented.
[0086] The data transmission method provided by the present invention realizes automatic Bluetooth connection between the speaker and the terminal device on the one hand, and realizes interaction between the speaker and the terminal device based on the established Bluetooth connection on the other hand.
[0087] The present invention also provides a speaker for implementing any of the above method embodiments. Figure 3 FIG. 4 shows a hardware structure block diagram of a speaker 300 according to an embodiment of the present invention. Figure 3 As shown, the speaker 300 includes a processor 310 and a memory 320 for storing instructions executable by the processor 310. The processor 310 is configured to implement the data transmission method according to any embodiment of the present disclosure when executing the instructions stored in the memory 320.
[0088] The processor 310 is used to execute computer instructions, which can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 320 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, etc., which are not limited here.
[0089] In this embodiment, the speaker 300 further includes a first wireless charging device.
[0090] Figure 4 FIG. 2 shows a hardware structure block diagram of a speaker according to an embodiment of the present invention. Figure 4 As shown, the sound box includes a processor, a millimeter wave radar, a microphone array, a speaker, and a first wireless charging device. The microphone array is used to collect external sounds and send the collected external sounds to the processor. The millimeter wave radar is used to send the collected data to the processor. The first wireless charging device includes a first wireless charging chip and a first wireless charging coil. After the sound box and the terminal device establish a Bluetooth connection based on the method provided in any of the above embodiments, the processor controls the speaker to play the audio data currently played by the terminal device.
[0091] The present invention also provides a terminal device for implementing any of the above method embodiments. Figure 5 FIG. 5 shows a hardware structure block diagram of a terminal device 500 according to an embodiment of the present invention. Figure 5 As shown, the terminal device 500 includes a processor 510 and a memory 520 for storing instructions executable by the processor 510. The processor 510 is configured to implement the data transmission method according to any embodiment of the present disclosure when executing the instructions stored in the memory 520.
[0092] The processor 510 is used to execute computer instructions, which can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 520 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, etc., which are not limited here.
[0093] In this embodiment, the terminal device 500 also includes a second wireless charging device.
[0094] An embodiment of the present invention also provides a data transmission system. Figure 6 As shown, the data transmission system includes the speaker and the terminal device provided in the above embodiment. The speaker and the terminal device can establish a connection and perform data transmission based on the established connection.
[0095] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For the device embodiment, its related parts can be referred to the partial description of the method embodiment.
[0096] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0097] The embodiments of the present specification may be systems, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer instructions for causing a processor to implement various aspects of the embodiments of the present specification.
[0098] A computer-readable storage medium may be a tangible device that can hold and store computer instructions used by a computer instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which computer instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0099] The computer instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device through a network layer, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network layer may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network layer adapter card or network layer interface in each computing / processing device receives the computer instructions from the network layer and forwards the computer instructions for storage in a computer-readable storage medium in each computing / processing device.
[0100] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to the multiple embodiments of this specification. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a computer instruction, and a part of a module, a program segment or a computer instruction contains one or more executable computer instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0101] The embodiments of the present specification have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations are obvious to those of ordinary skill in the art without departing from the scope of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A data transmission method, characterized in that: The method is implemented by a speaker provided with a first wireless charging device, and includes: In response to sensing that the terminal device is placed in the setting position of the first wireless charging device, using the first wireless charging device to send a request for obtaining a Bluetooth address to the terminal device; Receiving a Bluetooth address of a terminal device returned by a second wireless charging device, wherein the second wireless charging device is disposed in the terminal device; Obtaining a Bluetooth address pairing list, wherein the Bluetooth address pairing list includes Bluetooth addresses that have been successfully paired in the past; In a case where the Bluetooth address pairing list includes the Bluetooth address of the terminal device, establishing a Bluetooth connection with the terminal device; Based on the Bluetooth connection established with the terminal device, data is transmitted with the terminal device.
2. The method according to claim 1, characterized in that: The method further comprises: When the Bluetooth address pairing list does not include the Bluetooth address of the terminal device, the first wireless charging device is used to send a Bluetooth pairing request to the terminal device, so that the Bluetooth pairing request is displayed on the display interface of the terminal device.
3. The method according to claim 1, characterized in that The first wireless charging device includes a first wireless charging chip and a first wireless charging coil, the second wireless charging device includes a second wireless charging chip and a second wireless charging coil, and the second wireless charging chip stores the Bluetooth address of the terminal device; wherein The using the first wireless charging device to send a request for obtaining a Bluetooth address to the terminal device includes: Using the first wireless charging chip, through the coupling of the first wireless charging coil and the second wireless charging coil, the request for obtaining the Bluetooth address is sent to the second wireless charging chip; The receiving the Bluetooth address of the terminal device returned by the second wireless charging chip includes: The Bluetooth address of the terminal device sent by the second wireless charging chip is received through the coupling of the second wireless charging coil and the first wireless charging coil.
4. The method according to claim 1, characterized in that: The performing data transmission with the terminal device based on the Bluetooth connection established with the terminal device includes: Based on the Bluetooth connection established with the terminal device, obtaining the audio data currently played by the terminal device; Play the audio data currently being played by the terminal device.
5. The method according to claim 4, characterized in that The method further comprises: Determining the distance between the speaker and a person in the room; The volume of the audio data played by the speaker is adjusted according to the distance between the speaker and the person in the room.
6. The method according to claim 5, characterized in that The method further comprises: Obtain point cloud data collected by millimeter-wave radar; Determine whether there is a person in the room based on the point cloud data collected by the millimeter wave radar; In the case where there is a person in the room, performing an operation of determining the distance between the speaker and the person in the room; or, Get the image data collected by the camera; Determine whether there is a person in the room based on the image data collected by the camera; In the case where there is a person in the room, an operation of determining the distance between the speaker and the person in the room is performed.
7. A data transmission method, characterized in that: The method is implemented by a terminal device provided with a second wireless charging device, and includes: When the terminal device is placed in the setting position of the first wireless charging device in the speaker, using the second wireless charging device to receive a request for obtaining the Bluetooth address of the terminal device sent by the speaker; In response to a request for obtaining the Bluetooth address of the terminal device, using the second wireless charging device to send the Bluetooth address of the terminal device to the speaker; When the speaker establishes a connection with the terminal device based on the Bluetooth address of the terminal device, data is transmitted with the speaker.
8. A sound box, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is used to control the processor to operate so as to execute the method according to any one of claims 1 to 6.
9. A terminal device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is used for controlling the processor to operate so as to execute the method according to claim 7.
10. A data transmission system, characterized in that: It comprises the sound box as claimed in claim 8 and the terminal device as claimed in claim 9.