Adaptation method and device based on UWB technology, and storage medium
Through the adaptation method and adaptation device based on UWB technology, the problems of high latency of wireless audio transmission, vulnerability in quality and limited ecological expansion are solved, and high-efficiency, low-latency and high-quality wireless audio transmission are achieved.
Patent Information
- Application Number
- CN202510648911.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2025-06-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing wireless audio transmission technology has problems such as high latency, vulnerability in quality and limited ecological expansion.
Using the adaptation method and adaptation device based on UWB technology, by providing an adapter with a first protocol interface and a second protocol interface, the forwarding interaction between the first device and the second device is realized, and various types of devices are automatically discovered and automatically connected.
It realizes high bandwidth, high sampling rate, low latency and lossless wireless audio transmission, improves audio quality and latency performance, and expands the product ecosystem.
Smart Images

Figure CN120166587A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to an adaptation method, an adaptation device, and a storage medium based on UWB (Ultra Wide Band) technology. Background Art
[0002] With the development of wireless communication technology, wireless audio transmission can now be achieved between devices (also known as between devices, such as between computers, between mobile phones, or between mobile phones and computers) through communication technologies such as Bluetooth, Wi-Fi, and private protocols (such as transmission protocols based on 2.4GHz / 5.8GHz). While people experience the convenience of wireless communication, it also causes certain inconveniences. For example, the bandwidth of wireless audio transmission based on Bluetooth technology is narrow, and it is difficult to balance transmission delay and losslessness; wireless audio transmission based on WiFi technology can only be achieved in an environment covered by a WiFi network, and it is not a point-to-point connection, but a connection based on the WiFi protocol. However, the complexity of the WiFi protocol leads to a large transmission delay, and the setting and networking are also more troublesome; the frequency band of wireless audio transmission based on private protocols is used in many communication devices, which is easily interfered, resulting in impaired audio quality and high delay, for example, the delay can reach 30-50ms. More importantly, private protocols severely limit the ecological expansion of wireless audio transmission. Summary of the invention
[0003] In view of this, the present application provides an adaptation method, an adaptation device, and a storage medium based on UWB technology, which can improve the problems of high latency, fragile quality, and relatively limited ecology in wireless audio transmission.
[0004] The present application provides an adaptation method based on UWB technology, including: Providing an adapter having a first protocol interface and a second protocol interface, wherein the second protocol interface is an interface for performing device search and data transmission based on the UWB protocol; The adapter is plugged into the first device based on the first protocol interface; The adapter searches for a plurality of second devices based on the UWB protocol, and determines a transmission mode between the adapter and each second device according to the type of each second device, wherein the transmission mode includes a unidirectional transmission mode or a bidirectional transmission mode, and a one-to-one transmission mode or a one-to-many transmission mode; The adapter performs a transit interaction between the first device and the corresponding second device according to the determined transmission mode.
[0005] Optionally, the method further includes: The adapter obtains the current operating mode of the first device; The adapter determines the transmission mode between the adapter and the second device as a unidirectional transmission mode or a bidirectional transmission mode according to the operating mode. Determining the transmission mode between the adapter and each second device according to the type of each second device includes: determining the corresponding transmission mode according to the type of the second device, including a one-to-one transmission mode or a one-to-many transmission mode, and the unidirectional transmission mode or the bidirectional transmission mode determined according to the operating mode.
[0006] Optionally, in response to the operating mode being a multi-person participation mode, the adapter determining the transmission mode between the adapter and the second device as a unidirectional transmission mode or a bidirectional transmission mode includes: The adapter determines the transmission mode between the adapter and the second device as a bidirectional transmission mode.
[0007] Optionally, the method further includes: The adapter obtains the current operating mode of the first device. In response to the operating mode being a preset mode, determining the transmission mode between the adapter and each second device according to the type of each second device includes: Determining an associated device associated with the preset mode from several second devices searched; Determining a primary device and an accessory device according to the type of the associated device; and, Determining the transmission mode between the adapter and the primary device according to the preset mode, and determining the transmission mode between the adapter and the accessory device as an inverse transmission mode.
[0008] Optionally, the preset mode includes a game mode, and the accessory device includes at least one of an operation handle, a UWB wireless mouse, and a UWB wireless keyboard.
[0009] Optionally, the first protocol interface includes any one of a USB series interface, a lightning interface, and an HDMI (High-Definition Multimedia Interface) interface.
[0010] Optionally, the adapter is provided with a UWB antenna; after determining the primary device, the method further includes: In response to the primary device shifting, adjusting the pointing of the UWB antenna to adjust its core pulse direction until the included angle between the connection line between the adapter and the primary device and the core pulse direction is less than or equal to a preset threshold. The obtaining method of the core pulse direction includes: Determining a reference plane between the adapter and the primary device; Obtain the impulse wave pattern of the UWB antenna on the reference plane; Divide the impulse wave pattern into a plurality of main regions arranged in an array, and divide each main region into a plurality of sub-regions arranged in an array; Determine a plurality of directions, the angle between any two of the plurality of directions is equal, obtain the sum of the signal intensities of the sub-regions of all main regions in each direction, and determine the weight of the angle corresponding to each direction according to the ratio of the sum of the signal intensities in the plurality of directions; Take the sum of the products of the angles corresponding to each direction and the corresponding weights as the core pulse direction.
[0011] Optionally, determining the reference plane between the adapter and the primary device includes: Taking the adapter and the primary device as two vertices, establish a right triangle, and the two right sides of the right triangle are respectively parallel to the horizontal direction and the gravity direction; Take the plane where the hypotenuse of the right triangle is located as the reference plane.
[0012] An adaptation device based on UWB technology provided by the present application includes a memory and a processor, and an adaptation program is stored on the memory. When the adaptation program is executed by the processor, the corresponding steps of the adaptation method based on UWB technology as described above are implemented.
[0013] A storage medium provided by the present application stores an adaptation program. When the adaptation program is executed by a processor, the corresponding steps of the adaptation method based on UWB technology as described above are implemented.
[0014] As described above, the present application uses an adapter with a first protocol interface and a second protocol interface (i.e., a UWB protocol interface) to achieve the transfer interaction (such as wireless audio transmission) between the first device and the second device. This adapter can be plug-and-play with various types of first devices and automatically discover and automatically connect to various types of second devices, which is beneficial to the ecological expansion of products; in addition, this adapter is based on UWB technology for transfer interaction such as wireless audio transmission. In view of the characteristics of UWB technology such as ultra-wide bandwidth, low latency, strong anti-interference ability and low power consumption, high-bandwidth, high-sampling rate, low-latency and lossless wireless audio transmission can be achieved, and both unidirectional and bidirectional audio experiences are better. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a schematic flowchart of an adaptation method based on UWB technology according to an embodiment of the present application; Figure 2 is a schematic diagram of the adapter of the present application in a plugged state with the first device; Figure 3It is a schematic diagram of the scenario where the adapter adopts the one-way transmission mode and the one-to-one transmission mode in the music mode; Figure 4 It is a schematic diagram of the scenario where the adapter adopts the two-way transmission mode in the game mode; Figure 5 and Figure 6 It is a schematic diagram of the scenario where the adapter adopts the one-to-many transmission mode in the music mode; Figure 7 It is a schematic flowchart of the adaptation method based on UWB technology according to another embodiment of the present application; Figure 8 It is a schematic flowchart of the adaptation method based on UWB technology according to another embodiment of the present application; Figure 9 It is a schematic diagram of the present application for determining the reference plane according to the adapter and the target device; Figure 10 It is a schematic diagram of the present application for dividing the pulse wave diagram into multiple main regions and sub-regions. Detailed implementation manners
[0016] To solve the above problems existing in the prior art, the present application provides an adaptation method, an adaptation device, and a storage medium based on UWB technology. These several protection themes are based on the same concept, and the principles for solving problems are basically the same or similar. The implementation manners of each protection theme can be referred to each other, and the repeated parts will not be elaborated.
[0017] To make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be clearly described below in conjunction with specific embodiments and the corresponding drawings. Obviously, the embodiments described below are only a part of the embodiments of the present application, rather than all the embodiments. Without conflict, the following various embodiments and their technical features can be combined with each other, and they also belong to the technical solutions of the present application.
[0018] Figure 1 An adaptation method based on UWB technology provided by an embodiment of the present application can be briefly referred to as the "adaptation method" or "method" in some places herein. The scenarios applicable to the present application include but are not limited to wireless audio transmission scenarios, the Internet of Things, etc. Taking the Internet of Things as an example, multiple devices can form an Internet of Things system, and the number of devices included can be determined adaptively according to actual needs. Devices communicate with each other through UWB technology, which can include both one-to-one communication behaviors and one-to-many communication behaviors, but both communication behaviors include point-to-point communication behaviors.
[0019] When performing different services, the role attributes of the same device can change. That is, the same device can act as the first device and also as the second device. For example, when a certain device is plugged into the adapter described below, it can act as the first device. The first device can be understood as the master device, and the second device can be understood as the slave device. The so-called master device can be understood as playing the role of coordinator and manager in a certain service. The master device and / or the adapter determine the second device for this service. Correspondingly, the so-called slave device can be understood as playing the role of obeying coordination and being managed in this service. The specific forms of the first device and the second device include but are not limited to at least one of the following: intelligent terminals such as mobile phones; car radios; communication devices or communication modules with UWB functions. The adapter can cooperate with the first device to execute methods including Figure 1 examples. That is, the execution subject of the method of this application can be the adapter.
[0020] Please refer to Figure 1 , the adaptation method at least includes the following S1 to S4.
[0021] S1: Provide an adapter with a first protocol interface and a second protocol interface. The second protocol interface is an interface for performing device search and data transmission based on the UWB protocol.
[0022] Therefore, this second protocol interface can also be called the "UWB protocol interface" or the "UWB interface".
[0023] S2: The adapter is plugged into the first device based on the first protocol interface.
[0024] Combined with Figure 2 shown, the adapter 20 can be embodied as a structural member with at least one plug 21. This structural member is an electronic device that can be independent of the first device 10. The plug 21 is the first protocol interface for establishing a connection with the first device 10 using the first protocol. Taking the first device 10 as a smart phone as an example, the plug 21 can be plugged into the charging interface at the bottom of the smart phone, so as to realize the plug-and-play between the adapter 20 and the first device 10. When the adapter 20 is not plugged into the first device 10, the first device 10 can form existing functions other than the method of this application alone.
[0025] The specific form of the adapter 20 is not limited in this application. For example, it can be embodied as a Figure 2 knob type or inverted T type structure as shown. A main body part with a larger width is provided below the plug 21 to facilitate user holding and operation. The main electronic components of the adapter 20 are arranged in this main body part, such as a wireless transceiver that supports the UWB protocol and is implemented as the second protocol interface.
[0026] The first protocol interface includes, but is not limited to, any one of the USB series interfaces (such as USB2.0 and Type-C interfaces), lightning interfaces (i.e., Lightning interfaces), and HDMI interfaces. Taking the USB series interfaces as an example, the adapter 20 can also be called a "USB Dongle".
[0027] S3: The adapter searches for a number of second devices based on the UWB protocol and determines the transmission modes with each second device according to the type of each second device. The transmission modes include a one-way transmission mode or a two-way transmission mode, and a one-to-one transmission mode or a one-to-many transmission mode.
[0028] In step S3, the transmission modes include the following four cases: Case 1: One-way transmission mode and one-to-one transmission mode; Case 2: One-way transmission mode and one-to-many transmission mode; Case 3: Two-way transmission mode and one-to-one transmission mode; Case 4: Two-way transmission mode and one-to-many transmission mode.
[0029] All the second devices searched by the adapter based on the UWB protocol support the UWB wireless transmission function. Therefore, the adapter can automatically establish connections with all the searched second devices and serve as the device for transfer and interaction this time, so as to automatically discover and connect multiple types of second devices.
[0030] In an actual scenario, the adapter can obtain the information of each searched second device based on the UWB protocol, and thus directly determine information such as the type, identifier, and distance between each second device and the adapter according to the information of the second device, without any second device responding. Of course, in other examples of this application, the adapter can select a part of the second devices as target devices according to the information, and the way of selecting the target devices can be determined adaptively, and only transfer and interact with the target devices.
[0031] The so-called one-way transmission mode means that only the adapter is allowed to directly transmit data to the second device, or only the first device is allowed to indirectly transmit data to the second device through the adapter, but no second device can transmit data to the adapter, and of course no second device can transmit data to the first device. It should be understood that the data transmitted here only includes substantial data such as audio files, and does not include traditional instruction data such as skipping songs, playing the next song, and pausing. For example, refer to Figure 3In the wireless audio transmission scenario shown, the first device 10 can transmit audio data unidirectionally (i.e., using a unidirectional transmission mode) one-to-one to the headset 31 through the adapter 20. Alternatively, the first device 10 can transmit audio data unidirectionally to the speaker 32 through the adapter 20, including transmitting the left-channel audio data unidirectionally to one of the speakers 32 and the right-channel audio data unidirectionally to the other speaker 32, so as to achieve the playback of high-sampling-rate stereo music. Alternatively, the first device 10 can transmit only the left-channel and right-channel audio data unidirectionally to one of the speakers 32 through the adapter 20, so that the one speaker 32 transmits the corresponding channel audio data to the other speaker 32, and each speaker 32 plays the corresponding channel audio data, thereby also achieving the playback of high-sampling-rate stereo music.
[0032] The so-called bidirectional transmission mode means that data can be transmitted between the adapter and the second device mutually, and the data includes but is not limited to multi-channel audio data. For example, refer to Figure 4 In the wireless transmission scenario shown, when the first device 10 is running a game, that is, when the current running mode is the game mode, any headset 31 can collect the voice of the corresponding wearer and transmit it to the adapter 20, thereby achieving bidirectional low-latency transmission of audio and voice conversations. Or, the adapter 20 can establish a bidirectional transmission with second devices (not shown) of input types such as an operation handle, a UWB wireless mouse, and a UWB wireless keyboard.
[0033] The so-called one-to-one transmission mode means that the adapter transmits data (such as an audio file) to only one second device in one data transmission event, which can be regarded as point-to-point transmission. For example, refer to Figure 3 In the wireless audio transmission scenario shown, the first device 10 transmits audio data one-to-one (i.e., using the one-to-one transmission mode) to the headset 31 through the adapter 20. Alternatively, the first device 10 transmits audio data one-to-one to the speaker 32 through the adapter 20. It should be understood that the adapter 20 only transmits the audio file to one of the speakers 32, so that the one speaker 32 retains the channel audio data that it can play and transmits the other channel audio data to the other speaker 32, and each speaker 32 plays the corresponding channel audio data, so as to be applicable to the playback scenario of high-sampling-rate stereo music.
[0034] The so-called one-to-many transmission mode means that the adapter synchronously transmits data (such as an audio file) to two or more second devices in one data transmission event. For example, refer to Figure 5In the wireless audio transmission scenario shown, the first device 10 can transmit left-channel and right-channel audio data to two speakers 32 in a one-to-two manner through the adapter 20, or the first device 10 can transmit left-channel and right-channel audio data to two in-ear headphones of the TWS headset 33 in a one-to-two manner through the adapter 20. For example, refer to Figure 6 In the wireless audio transmission scenario shown, the first device 10 can transmit audio data of corresponding channels to three speakers 32 in a one-to-three manner through the adapter 20, or the first device 10 can transmit audio data of corresponding channels to four second devices in a one-to-four manner through the adapter 20.
[0035] This example can determine the transmission mode most suitable for the first device for the adapter, avoid possible conflicts during the interaction between the first device and each second device, and thus help ensure the transmission efficiency.
[0036] S4: The adapter performs relay interaction between the first device and the corresponding second device according to the determined transmission mode.
[0037] The relay interaction includes but is not limited to at least one of: transmitting audio data between devices, pushing audio or sending control commands from a mobile phone to devices such as a car, and providing push and subscription services between devices.
[0038] Based on the above, the adapter of the present application can be plug-and-play with various types of first devices and perform automatic discovery and automatic connection to various types of second devices, which is beneficial to the ecological expansion of the product; in addition, the adapter performs relay interaction such as wireless audio transmission based on the UWB technology. Given the characteristics of the UWB technology such as ultra-wide bandwidth, low latency, strong anti-interference ability, and low power consumption, high-bandwidth, high-sampling-rate, low-latency, and lossless wireless audio transmission can be achieved, and both unidirectional and bidirectional audio experiences are good.
[0039] In another example of the present application, the adapter can incorporate the operating mode of the first device into the determination of the transmission mode with the second device to perform the relay interaction. Specifically, please refer to Figure 7 As shown, the method of another embodiment of the present application includes the following steps S1 to S4.
[0040] S1: Provide an adapter with a first protocol interface and a second protocol interface, where the second protocol interface is an interface for performing device search and data transmission based on the UWB protocol; S2: The adapter is plugged into the first device based on the first protocol interface; S21: The adapter obtains the current operating mode of the first device; S31: The adapter searches for several second devices based on the UWB protocol; S312: The adapter determines whether the transmission mode between the adapter and the second device is a unidirectional transmission mode or a bidirectional transmission mode according to the operating mode. S313: The adapter determines the corresponding transmission mode according to the type of the second device, including a one-to-one transmission mode or a one-to-many transmission mode, and the unidirectional transmission mode or the bidirectional transmission mode determined according to the operating mode. S4: The adapter performs the relay interaction between the first device and the corresponding second device according to the determined transmission mode.
[0041] For the same steps, the present application uses the same step numbers for identification. For the technical features of the steps with the same numbers, reference can be made to the foregoing, and details will not be repeated here.
[0042] In this embodiment, the operating mode of the first device includes but is not limited to at least one of a music mode and a game mode. Taking the first device being in the music mode as an example, please refer to Figure 3 , Figure 5 and Figure 6 . As shown, step S312 can determine that the transmission mode between the adapter 20 and the second device is a unidirectional transmission mode. Figure 3 In the example, the transmission mode finally determined by step S313 is a unidirectional transmission mode and a one-to-one transmission mode. Figure 5 and Figure 6 . In the example, the transmission mode finally determined by step S313 is a unidirectional transmission mode and a one-to-many transmission mode. Taking the first device being in the game mode as an example, please refer to Figure 4 . As shown, step S312 can determine that the transmission mode between the adapter 20 and the second device (headset 31) is a bidirectional transmission mode, and then the transmission mode finally determined by step S313 is a bidirectional transmission mode and a one-to-one transmission mode.
[0043] In an example where the operating mode is a multi-person participation mode, step S312 can determine that the transmission mode between the adapter and the second device is a bidirectional transmission mode to achieve multi-person interaction, such as multi-person voice interaction.
[0044] Based on the beneficial effects that can be achieved by the method described above Figure 1 , this embodiment can make the transmission mode between the (first device and) the adapter and the second device more in line with the current operating situation of the first device, so that low-latency and lossless wireless audio transmission can be achieved when the first device is in any mode such as a music mode or a game mode, and the user experience is better. For example, bidirectional low-latency audio and voice conversations can be achieved in the game mode, and unidirectional low-latency high-sampling-rate stereo music can be transmitted in the music mode.
[0045] Figure 8 is a schematic flowchart of an adaptation method according to another embodiment of the present application. Please refer toFigure 8 As shown, the adaptation method includes the following steps S1 to S4.
[0046] S1: Provide an adapter with a first protocol interface and a second protocol interface, where the second protocol interface is an interface for performing device search and data transmission based on the UWB protocol; S2: The adapter is plugged into the first device based on the first protocol interface; S21: The adapter obtains the current operating mode of the first device; S31: The adapter searches for a number of second devices based on the UWB protocol; S322: In response to the operating mode being a preset mode, determine associated devices associated with the preset mode from the number of second devices searched; S323: The adapter determines a primary device and secondary devices according to the types of the associated devices; and, S324: The adapter determines the transmission mode between the adapter and the primary device according to the preset mode, where the transmission mode includes a one-way transmission mode or a two-way transmission mode, and a one-to-one transmission mode or a one-to-many transmission mode, and determines that the transmission mode between the adapter and the secondary devices includes a reverse transmission mode; Among them, determining the transmission mode between the adapter and the primary device according to the preset mode can be specifically implemented according to the foregoing Figure 7 steps; the reverse transmission mode means that the secondary devices can transmit data to the adapter (and the first device), including but not limited to traditional corresponding command data. In one example, different from the foregoing two-way transmission mode, this reverse transmission mode can only allow the secondary devices to transmit data to the adapter (and the first device), but the adapter cannot transmit data to the secondary devices. In other examples, this reverse transmission mode can be understood as the foregoing two-way transmission mode.
[0047] S4: The adapter performs relay interaction between the first device and the corresponding second device according to the determined transmission mode.
[0048] In one example, the preset mode includes a game mode, and the secondary devices include at least one of a gamepad, a UWB wireless mouse, and a UWB wireless keyboard. Herein, when the first device is in the game mode, in addition to being able to connect to, for example, Figure 4 the shown head-mounted earphone 31 (i.e., the primary device) through the UWB protocol, the adapter can also connect to a gamepad, a UWB wireless mouse, and a UWB wireless keyboard.
[0049] In the foregoing Figure 1 and Figure 7Based on the beneficial effects achievable by the described method, in this embodiment, in a preset mode such as a game mode, it is possible to implement a one-way transmission mode or a two-way transmission mode, as well as a one-to-one transmission mode or a one-to-many transmission mode. It is also possible to connect peripheral devices (i.e., accessory devices) and control the first device through the peripheral devices, which is further beneficial for the ecological expansion of the product.
[0050] For the method of the foregoing Figure 8 embodiment, the adapter is provided with a UWB antenna to perform the wireless communication function of the second protocol interface. Since the UWB antenna realizes wireless communication based on short pulse signals, and the transmission intensity of short pulse signals varies in different directions, the adapter can select the direction with the highest transmission intensity as the core pulse direction and perform transit interaction such as audio transmission with the second device according to this core pulse direction. Specifically, after determining the primary device, the method further includes: in response to the displacement of the primary device, adjusting the pointing of the UWB antenna to adjust its core pulse direction until the angle between the line connecting the adapter and the primary device and the core pulse direction is less than or equal to a preset threshold. Hereby, as long as it is monitored that the primary device moves, the adapter can adjust the pointing of the UWB antenna so that the primary device always has good communication quality with the adapter, the transmission efficiency is always high, and it is also beneficial to reduce latency.
[0051] The method for obtaining the core pulse direction includes: First, determine a reference plane between the adapter and the primary device, that is, determine a reference plane for the UWB antenna of the adapter. The determination method of this reference plane can be: as shown in Figure 9 , taking the adapter 20 and the second device 30 as two vertices, establish a right triangle, where the two right sides of the right triangle are respectively parallel to the horizontal direction and the gravity direction, and take the plane where the hypotenuse of the right triangle is located as the reference plane. The core pulse direction corresponding to the UWB antenna will change with the orientation of the primary device and the adapter. Correspondingly, when the position of the adapter changes, the determined reference plane will also change.
[0052] Then, obtain the pulse wave transmission direction diagram of the UWB antenna on the reference plane. For example, the pulse wave diagram of the corresponding type of UWB antenna in the actual environment can be obtained through simulation testing, which can also be called the pulse wave transmission direction diagram. The pulse wave diagram obtained by simulation testing is in 3D form. Then, obtain the pulse wave transmission direction on its reference plane and form this pulse wave diagram accordingly. This pulse wave diagram not only includes the transmission direction of the short pulse signal but also includes its signal intensity.
[0053] Next, the pulse wave diagram is divided into a plurality of main regions arranged in an array, and each main region is divided into a plurality of sub-regions arranged in an array. For example Figure 10 as shown, each main region and each sub-region respectively appear as rectangular regions. The shapes and sizes of all main regions are the same, and the number, shape, and size of the sub-regions divided by each main region are also correspondingly the same. The number of main regions and sub-regions shown in the figure is only an exemplary display; a plurality of directions are determined on the pulse wave diagram, and the angle between any two of the plurality of directions is equal. For example, it includes the horizontal direction, the vertical direction, and two bisecting directions between the horizontal direction and the vertical direction (referred to as the "first bisecting direction" and the "second bisecting direction" respectively); further, according to the pulse wave diagram, the sum of the signal intensities of the sub-regions of all main regions in each direction is obtained, and according to the ratio of the sum of the signal intensities in the plurality of directions, the weight of the angle corresponding to each direction is determined, and the sum of the products of the angle corresponding to each direction and the corresponding weight is used as the core pulse direction.
[0054] In the scenario where the UWB antenna emits short pulse signals into three-dimensional space, there are other signal clutters interfering in any direction in the three-dimensional space, but the interference degrees of these signal clutters on each main region are different. If the core pulse direction is determined only by assigning weights based on the signal intensity of the main region, the error is relatively large. Therefore, in this example, each main region is further divided into a plurality of sub-regions, which is equivalent to further refining the sampling region, so that the interference of the signal clutter is evenly distributed among all main regions as much as possible, thereby ensuring that the obtained core pulse direction is more in line with the true transmission direction of the UWB antenna.
[0055] Combined with Figure 10As shown, taking the pulse wave pattern of the UWB antenna of the adapter as a rectangle, and taking the determined multiple directions including the horizontal direction, the vertical direction, and the two bisecting directions between the horizontal direction and the vertical direction as examples, the sum of the signal intensities of all sub-regions in the horizontal direction (i.e., the sub-regions of all main regions in the horizontal direction) is N1, the sum of the signal intensities of all sub-regions in the vertical direction (i.e., the sub-regions of all main regions in the vertical direction) is N2, the sum of the signal intensities of all sub-regions in the first bisecting direction is N3, and the sum of the signal intensities of all sub-regions in the second bisecting direction is N4. According to the ratios of these signal intensity sums N1, N2, N3, and N4, the corresponding weights k1, k2, k3, and k4 are used, and k1 + k2 + k3 + k4 = 1; the sum S of the products of the angles corresponding to the horizontal direction, the vertical direction, the first bisecting direction, and the second bisecting direction and the corresponding weights, that is, S = k1*S1 + k2*S2 + k3*S3 + k4*S4, where S is the core pulse direction of the adapter, and S1, S2, S3, and S4 respectively represent the angles corresponding to the horizontal direction, the vertical direction, the first bisecting direction, and the second bisecting direction. For example, S1 can be 180°, S2 can be 90°, S3 can be 45°, and S4 can be 135°.
[0056] In view of the fact that the UWB technology can achieve positioning, optionally, for several second devices searched, the foregoing step S3 further includes: on the first device, displaying the relative positions of the searched second devices and the first device. For example, the screen of the first device can display the icons of the first device, the adapter, and several currently searched second devices. The specific manifestation form of the icons can be determined according to the type of the second device obtained by the first device based on the UWB protocol. For example, if the second device A is a speaker, it is displayed as the icon corresponding to the speaker. If the second device E is a vehicle of a certain brand, it is displayed as the icon corresponding to that brand of vehicle. If the second devices B, C, and D are mobile phones of a certain brand, they are displayed as the icons corresponding to that brand of mobile phone. In this way, the user can directly obtain information such as the types of each second device from the first device.
[0057] According to the attitude information of the first device, such as attitude information such as orientation and tilt angle, the present application can also change the attitude information of the icons of the first device and the adapter displayed in real time through the first device, so that the user can directly obtain relevant information.
[0058] The embodiment of the present application further provides an adaptation device based on UWB technology, including a memory and a processor. An adaptation program is stored on the memory, and when the adaptation program is executed by the processor, it implements the steps of the adaptation method based on UWB technology described in any of the foregoing examples. This adaptation device can play the role of the foregoing adapter, and the specific manifestation form of this adaptation device is not limited in the present application.
[0059] An embodiment of the present application further provides a storage medium, on which an adaptation program based on UWB technology is stored. This adaptation program is essentially a computer program. Herein, when this adaptation program is executed by a processor, it implements the steps of the adaptation method in any example.
[0060] The storage medium includes, but is not limited to, any one of a read-only memory (ROM), a random access memory (RAM), a magnetic disk, and an optical disk.
[0061] Since the adaptation program stored in the storage medium can execute the steps in the adaptation method of any embodiment provided by the present application, the beneficial effects achievable by the adaptation method of any of the foregoing embodiments can be realized. For details, see the foregoing embodiments and will not be elaborated herein.
[0062] An embodiment of the present application further provides an electronic device or a chip, including a memory and a processor. An adaptation program based on UWB technology is stored on the memory. When this adaptation program is executed by the processor, it implements the steps of the adaptation method in any of the foregoing embodiments; and / or, the electronic device or the chip is provided with a storage medium as in the above example, and the processor loads this storage medium to execute the steps of the adaptation method, thereby realizing the beneficial effects achievable by the corresponding example of the adaptation method. The electronic device includes a device body (i.e., the foregoing first device) and the foregoing adapter, and the device body can be a terminal such as a mobile phone.
[0063] The foregoing are only some embodiments of the present application and do not limit the patent scope of the present application. For those of ordinary skill in the art, any equivalent structural transformation made using the content of this specification and the drawings is similarly included in the patent protection scope of the present application.
[0064] In this article, step codes such as S1 and S2 are used. The purpose is to more clearly and briefly express the corresponding content and do not constitute a substantial limitation in order. Those skilled in the art may execute S2 first and then S1, etc. during specific implementation, but these should all be within the protection scope of the present application.
[0065] Although terms such as "first" and "second" are used in this article to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. Additionally, the singular forms "a", "an", and "the" are also intended to include the plural forms. The terms "or" and "and / or" are interpreted inclusively and mean either any one or any combination. An exception to this definition only occurs when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
Claims
1. An adaptation method based on UWB technology, characterized in that: include: Providing an adapter having a first protocol interface and a second protocol interface, wherein the second protocol interface is an interface for performing device search and data transmission based on the UWB protocol; The adapter is plugged into the first device based on the first protocol interface; The adapter searches for a plurality of second devices based on the UWB protocol, and determines a transmission mode between the adapter and each second device according to the type of each second device, wherein the transmission mode includes a unidirectional transmission mode or a bidirectional transmission mode, and a one-to-one transmission mode or a one-to-many transmission mode; The adapter performs a transit interaction between the first device and the corresponding second device according to the determined transmission mode.
2. The method according to claim 1, characterized in that: The method further comprises: The adapter obtains the current operating mode of the first device; The adapter determines, according to the operation mode, that the transmission mode between the adapter and the second device is a unidirectional transmission mode or a bidirectional transmission mode; Determining the transmission mode between each second device according to the type of each second device includes: determining the corresponding transmission mode according to the type of the second device, including a one-to-one transmission mode or a one-to-many transmission mode, and determining a unidirectional transmission mode or a bidirectional transmission mode according to the operating mode.
3. The method according to claim 2, characterized in that In response to the operating mode being a multi-person participation mode, the adapter determines, according to the operating mode, that the transmission mode between the adapter and the second device is a unidirectional transmission mode or a bidirectional transmission mode, including: The adapter determines that the transmission mode between the adapter and the second device is a bidirectional transmission mode.
4. The method according to claim 1, characterized in that The method further comprises: The adapter obtains the current operating mode of the first device; In response to the operating mode being a preset mode, determining the transmission mode between each second device according to the type of each second device includes: Determining an associated device associated with the preset mode from the searched plurality of second devices; Determining a primary device and an auxiliary device according to the type of the associated device; and, The transmission mode between the primary device and the secondary device is determined according to the preset mode, and the transmission mode between the secondary device and the primary device includes a reverse transmission mode.
5. The method according to claim 4, characterized in that The preset mode includes a game mode, and the auxiliary device includes at least one of an operating handle, a UWB wireless mouse, and a UWB wireless keyboard.
6. The method according to any one of claims 1 to 5, characterized in that The first protocol interface includes any one of a USB serial interface, a lightning interface and an HDMI interface.
7. The method according to claim 4, characterized in that The adapter is provided with a UWB antenna; after determining the primary device, the method further includes: In response to the displacement of the primary device, adjusting the orientation of the UWB antenna to adjust the core pulse direction thereof until the angle between the connection line between the adapter and the primary device and the core pulse direction is less than or equal to a preset threshold; The method for obtaining the core pulse direction includes: determining a reference plane between the adapter and the primary device; Obtaining a pulse wave diagram of the UWB antenna on the reference plane; Dividing the pulse wave diagram into a plurality of main areas arranged in an array, and dividing each of the main areas into a plurality of sub-areas arranged in an array; Determine multiple directions, wherein the angles between any two directions in the multiple directions are equal, obtain the sum of the signal strengths of the sub-areas of all the main areas in each direction, and determine the weights of the angles corresponding to the directions according to the ratio of the sums of the signal strengths in the multiple directions; The sum of the products of the angles corresponding to each direction and the corresponding weights is taken as the core pulse direction.
8. The method according to claim 7, characterized in that Determining a reference plane between the adapter and the primary device comprises: A right triangle is established with the adapter and the primary device as two vertices, wherein two right-angled sides of the right triangle are parallel to the horizontal direction and the gravity direction respectively; The plane where the hypotenuse of the right triangle lies is used as the reference plane.
9. An adaptation device based on UWB technology, comprising a memory and a processor, characterized in that: An adaptation program is stored in the memory, and when the adaptation program is executed by the processor, the adaptation method based on the UWB technology as claimed in any one of claims 1 to 8 is implemented.
10. A storage medium, characterized in that: An adaptation program is stored, and when the adaptation program is executed by a processor, the adaptation method based on UWB technology according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Terminal accessory and control method
CN113055520A
Terminal accessory and mobile terminal
CN115036675A
Point-to-point communication method based on UWB technology, electronic equipment and storage medium
CN117479345A
Data conversion system based on UWB
CN210491209U
Apparatus and Methods to Promote Sustainable Behavior Among Smartphone Users
US20170263105A1