Configuration switching methods, electronic devices and storage media

By employing a preset frame structure and high-frequency transmission method in audio transmission technology, the problem of difficult transmission of configuration information over long distances is solved, and stable and secure transmission of configuration information is achieved.

CN120547254BActive Publication Date: 2025-10-28APUTURE IMAGING IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511000475.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2025-10-28
Estimated Expiration
2045-07-21

AI Technical Summary

Technical Problem

When the distance between the host device and the slave device is greater than or equal to 100 meters, the transmission capability of configuration information is limited, and the configuration information cannot be transmitted from the host device to the slave device.

Method used

The configuration information is encapsulated into a first data frame using a preset first frame structure and transmitted in a high-frequency band. Combined with data frame matching and switching instructions, the configuration information is successfully transmitted over long distances.

Benefits of technology

It improves the transmission capability of configuration information, enabling successful transmission over longer distances, avoiding interference with audio information transmission, and enhancing transmission stability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120547254B_ABST
    Figure CN120547254B_ABST
Patent Text Reader

Abstract

This application provides a configuration switching method, an electronic device, and a storage medium. The method is applied to a first device and can acquire communication configuration information. The configuration information is encapsulated into a first data frame according to a preset first frame structure. The first frame structure includes a first configuration field, and the configuration information is located in the first configuration field. Encapsulating the configuration information into the first configuration field of the first data frame according to the preset first frame structure avoids affecting the audio information transmission between the first device and the second device, effectively improving the transmission capability of the configuration information. The first data frame is sent to the second device in a preset first high frequency band, so that the configuration information can be transmitted from the first device to the second device when the distance between the first device and the second device is far, thereby improving the transmission capability of the configuration information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of audio transmission technology, specifically to a configuration switching method, an electronic device, and a storage medium. Background Art

[0002] In the field of audio transmission technology, configuration information between master and slave devices is typically transmitted and configured via Bluetooth / 2.4G wireless. However, when the distance between the master and slave devices is greater than or equal to 100 meters, the transmission capability of configuration information is limited. When the distance between the master and slave devices is greater than or equal to 100 meters, configuration information cannot be transmitted from the master device to the slave device. Summary of the Invention

[0003] This application provides a configuration switching method, electronic device, and storage medium that can transmit configuration information from the host device to the slave device when the host device and the slave device are far apart, thereby improving the transmission capability of configuration information.

[0004] In a first aspect, this embodiment provides a configuration switching method applied to a first device, the method comprising:

[0005] Obtain communication configuration information;

[0006] The configuration information is encapsulated into a first data frame according to a preset first frame structure; the first frame structure includes a first configuration field, and the configuration information is located in the first configuration field.

[0007] In a preset first high-frequency band, the first data frame is sent to the second device; the first data frame is used by the second device to parse the configuration information and perform configuration switching.

[0008] In some embodiments, the first frame structure further includes a first frame header field, and the method further includes:

[0009] Generate the first frame header information corresponding to the configuration information;

[0010] The first frame header information is encapsulated into the first frame header field according to the first frame structure to obtain the first data frame.

[0011] In some embodiments, after sending the first data frame to the second device in a preset first high-frequency band, the method further includes:

[0012] In a preset second high-frequency band, the second data frame sent by the second device is received; the second high-frequency band is different from the first high-frequency band.

[0013] A first switching instruction is generated based on the first data frame and the second data frame to provide the configuration information;

[0014] The first switching instruction is sent to the second device; the first switching instruction is used to instruct the second device to switch the configuration according to the configuration information.

[0015] In some embodiments, the method further includes:

[0016] The second frame header field of the second data frame is parsed to obtain the second frame header information;

[0017] The second frame header information and the first frame header information of the first data frame are matched to obtain a first matching result;

[0018] If the first matching result indicates that the second frame header information matches the first frame header information, a first switching instruction for the configuration information is generated based on the first data frame and the second data frame.

[0019] In some embodiments, the first switching instruction for generating the configuration information based on the first data frame and the second data frame includes:

[0020] The second configuration field of the second data frame is parsed to obtain the configuration information in the second data frame;

[0021] The configuration information in the first data frame and the configuration information in the second data frame are matched to obtain a second matching result;

[0022] If the second matching result indicates that the configuration information in the first data frame and the configuration information in the second data frame match, the first switching instruction is generated.

[0023] In some embodiments, the first frame structure further includes a data field; the method further includes:

[0024] Obtain the audio information to be transmitted;

[0025] The audio information is encapsulated into the data field of the first data frame according to the first frame structure to obtain the first data frame.

[0026] In some embodiments, after sending the first data frame to the second device in a preset first high-frequency band, the method further includes:

[0027] If the second data frame sent by the second device is not received after a first preset time interval, the first data frame is retransmitted to the second device in the first high frequency band.

[0028] Secondly, this embodiment provides a configuration switching method applied to a second device, the method comprising:

[0029] In a preset first high frequency band, receive the first data frame sent by the first device;

[0030] The first configuration field of the first data frame is parsed to obtain the communication configuration information;

[0031] The communication configuration is switched based on the configuration information.

[0032] In some embodiments, switching the communication configuration based on the configuration information includes:

[0033] The first frame header field of the first data frame is parsed to obtain the first frame header information;

[0034] Determine whether the first frame header information matches the preset frame header information to obtain a third matching result;

[0035] If the third matching result indicates that the first frame header information matches the preset frame header information, then the configuration of the communication is switched based on the configuration information.

[0036] In some embodiments, switching the communication configuration based on the configuration information includes:

[0037] The configuration information is encapsulated into a second data frame according to a preset second frame structure; the second frame structure includes a second configuration field, and the configuration information is located in the second configuration field.

[0038] The second data frame is sent to the first device in a preset second high-frequency band; the second high-frequency band is different from the first high-frequency band.

[0039] Receive the first switching instruction sent by the first device;

[0040] The configuration of the communication is switched based on the first switching instruction and the configuration information.

[0041] In some embodiments, the second frame structure further includes a second frame header field; the method further includes:

[0042] Generate second frame header information corresponding to the first frame header information;

[0043] The second frame header information is encapsulated into the second frame header field according to the second frame structure to obtain the second data frame.

[0044] In some embodiments, the method further includes:

[0045] If the third matching result indicates that the first frame header information does not match the preset frame header information, then the data field of the first data frame is parsed to obtain audio information.

[0046] Thirdly, this embodiment provides a first device, including a first memory and a first processor, wherein the first memory stores a computer program, and the computer program, when executed by the first processor, implements the configuration switching method described in the first aspect.

[0047] Fourthly, this embodiment provides a second device, including a second memory and a second processor. The second memory stores a computer program, which, when executed by the second processor, implements the configuration switching method described in the second aspect.

[0048] Fifthly, this embodiment provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to execute any step in the configuration switching method of the first device, or to execute any step in the configuration switching method of the second device.

[0049] The configuration switching method provided in this embodiment can acquire communication configuration information, encapsulate the configuration information into a first data frame according to a preset first frame structure, the first frame structure including a first configuration field, the configuration information being located in the first configuration field, and encapsulate the configuration information into the first configuration field of the first data frame according to the preset first frame structure, avoiding interference with the audio information transmission between the first device and the second device, effectively improving the transmission capability of the configuration information; in a preset first high frequency band, the first data frame is sent to the second device, realizing the transmission of configuration information from the first device to the second device when the distance between the first device and the second device is far, thereby improving the transmission capability of the configuration information. Attached Figure Description

[0050] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0051] Figure 1 A flowchart illustrating a configuration switching method provided in an embodiment of this application;

[0052] Figure 2 A flowchart illustrating yet another configuration switching method provided in an embodiment of this application;

[0053] Figure 3 This is a schematic diagram of the structure of a configuration switching system provided in an embodiment of this application;

[0054] Figure 4 This is a schematic diagram of the structure of a configuration switching device provided in an embodiment of this application;

[0055] Figure 5 This is a schematic diagram of another configuration switching device provided in an embodiment of this application;

[0056] Figure 6 This is a schematic diagram of the structure of the first device provided in the embodiments of this application;

[0057] Figure 7 This is a schematic diagram of the structure of a second device provided in an embodiment of this application. Detailed Implementation

[0058] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0059] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.

[0060] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.

[0061] The use of "applies to" or "configured to" in this application implies open and inclusive language, which does not exclude the applicability to or configuration to devices performing additional tasks or steps. Additionally, the use of "based on" implies openness and inclusivity, because processes, steps, calculations, or other actions "based on" one or more of the stated conditions or values ​​may in practice be based on additional conditions or values ​​beyond those stated.

[0062] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0063] Figure 1 This is a flowchart illustrating a configuration switching method provided in an embodiment of this application, as shown below. Figure 1 As shown, this embodiment provides a configuration switching method applied to a first device. The configuration switching method provided in this application embodiment may include, but is not limited to, the following steps and combinations thereof.

[0064] Step 101: Obtain communication configuration information.

[0065] In this embodiment, the configuration information can be determined according to actual conditions and is not limited here. As an example, the configuration information can be information used for communication between the first device and the second device, such as operating frequency band, modulation method, bandwidth, etc. The first device can be determined according to actual conditions and is not limited here. As an example, the first device can be a host device for transmitting audio information; for example, the host device can be an Ultra High Frequency (UHF or U-band) transmitter. The second device can be determined according to actual conditions and is not limited here. As an example, the second device can be a slave device for receiving audio information; for example, the slave device can be a U-band receiver.

[0066] In this embodiment, the process of obtaining communication configuration information can be determined according to the actual situation and is not limited here. As an example, a first message sent by a first terminal device can be received, and it can be determined whether the first message is configuration information to obtain a first determination result; if the first determination result indicates that the first message is configuration information, then the first message is determined as communication configuration information; wherein, the first terminal device can be a terminal device with a user interface (UI). In some embodiments, if the first determination result indicates that the first message is not configuration information, then the first message sent by the first terminal continues to be received.

[0067] In this embodiment, the process of determining whether the first information is configuration information can be determined according to the actual situation and is not limited here. As an example, it can be determined whether the first information includes a configuration identifier. If the first information includes a configuration identifier, then the first determination result indicates that the first information is configuration information; if the first information does not include a configuration identifier, then the first determination result indicates that the first information is not configuration information.

[0068] Step 102: Encapsulate the configuration information into a first data frame according to the preset first frame structure; the first frame structure includes a first configuration field, and the configuration information is located in the first configuration field.

[0069] Here, the encapsulation process of the first data frame can be determined according to the actual situation and is not limited here. This embodiment reconstructs the frame structure for audio information transmission sent by the first device in the field of audio transmission technology, adds a first configuration field to the data frame to avoid affecting the audio information transmission between the first device and the second device; the first configuration field can be used to encapsulate configuration information, so that the frame structure for audio information transmission can transmit configuration information, breaking through the distance limitation of configuration information transmission in related technologies.

[0070] In some embodiments, the first frame structure further includes a first frame header field, and the method further includes:

[0071] Generate the first frame header information corresponding to the configuration information;

[0072] The first frame header information is encapsulated into the first frame header field according to the first frame structure to obtain the first data frame.

[0073] In this embodiment, if the first determination result indicates that the first information is configuration information, a first frame header information corresponding to the configuration information can be generated. Here, in this embodiment, the first device generates first frame header information specifically for configuration information, so that the second device can identify whether the first data frame sent by the first device contains configuration information through the first frame header information, thereby instructing the second device to parse the configuration information from the first data frame to perform configuration switching, effectively improving the transmission capability of configuration information.

[0074] Step 103: Send the first data frame to the second device in the preset first high frequency band; the first data frame is used by the second device to parse the configuration information and switch the configuration.

[0075] In this embodiment, the first high-frequency band can be determined according to actual conditions and is not limited here. As an example, the first high-frequency band can be the ultra-high frequency band in which the first device transmits the first data frame, for example, the first high-frequency band can be 650MHz. It should be noted that the first ultra-high frequency band in which the first device transmits the first data frame and the first ultra-high frequency band in which the second device receives the first data frame are the same frequency band, so that the data frame transmitted by the first device can be received by the second device.

[0076] In this embodiment, the process of sending the first data frame to the second device can be determined according to the actual situation and is not limited here. As an example, the first data frame can be sent to the second device while the first device is in the transmission enabled state.

[0077] Here, in the field of audio transmission technology, the first device and the second device typically transmit audio information via the ultra-high frequency band. In this embodiment, the first device sends a first data frame carrying configuration information to the second device in the first high frequency band, so that the transmission distance of the configuration information can reach the same transmission distance as the audio information. This enables the configuration information to be transmitted from the first device to the second device when the distance between the first device and the second device is far, thereby improving the transmission capability of the configuration information.

[0078] In some embodiments, after sending the first data frame to the second device in a preset first high-frequency band, the method further includes:

[0079] In a preset second high-frequency band, a second data frame sent by a second device is received; the second high-frequency band is different from the first high-frequency band.

[0080] A first switching instruction is generated based on the configuration information of the first data frame and the second data frame;

[0081] The first switching instruction is sent to the second device; the first switching instruction is used to instruct the second device to switch the configuration according to the configuration information.

[0082] In this embodiment, the second high-frequency band can be determined according to actual conditions and is not limited here. As an example, the second high-frequency band can be the ultra-high frequency band in which the first device receives the second data frame, for example, the second high-frequency band can be 660MHz. It should be noted that the second ultra-high frequency band in which the first device receives the second data frame and the second ultra-high frequency band in which the second device transmits the second data frame are the same frequency band, so that the second data frame transmitted by the second device can be received by the first device.

[0083] It should be noted that the first high-frequency band representing the first device sending the first data frame is different from the second high-frequency band representing the first device receiving the second data frame, which can prevent the first device from receiving the data frame it sent itself.

[0084] In this embodiment, the process of receiving the second data frame sent by the second device can be determined according to the actual situation and is not limited here. As an example, the second data frame sent by the second device can be received while the first device is in the receive-enabled state. It should be noted that the first device will only be switched to the receive-enabled state when the configuration information is obtained, which can effectively reduce power consumption.

[0085] In this embodiment, the first switching instruction can be determined according to the actual situation and is not limited here. As an example, the first switching instruction can be a switching instruction generated by confirming the switching configuration information. The process of generating the first switching instruction of configuration information based on the first data frame and the second data frame can be determined according to the actual situation and is not limited here. As an example, the first data frame and the second data frame can be matched to obtain a fourth matching result; if the fourth matching result indicates that the first data frame and the second data frame match, then the first switching instruction of configuration information is generated.

[0086] In this embodiment, the process of sending the first handover instruction to the second device can be determined according to the actual situation and is not limited here. As an example, the first handover instruction can be sent to the second device in a preset frequency band when the first device is in the transmit-enabled state. The preset frequency band can be determined according to the actual situation and is not limited here. As another example, the first handover instruction can be encapsulated into the first configuration field of the first data frame according to the first frame structure; the first data frame carrying the first handover instruction can be sent to the second device in a preset first high frequency band. In some embodiments, after sending the first handover instruction, the first device can switch the communication configuration according to the configuration information and switch the first device to the receive-off state.

[0087] In the field of audio transmission technology, the second device typically passively receives audio data sent by the first device and does not send any information to the first device. In this embodiment, the first device can receive the second data frame, then match the first and second data frames to obtain a fourth matching result. Based on this fourth matching result, a switching instruction for configuration information is generated, thereby instructing the second device to switch configurations according to the configuration information, effectively improving the security of configuration information transmission.

[0088] In some embodiments, the method further includes:

[0089] The second frame header field of the second data frame is parsed to obtain the second frame header information;

[0090] The header information of the second frame is matched with the header information of the first frame of the first data frame to obtain the first matching result;

[0091] If the first matching result indicates that the second frame header information matches the first frame header information, a first switching instruction for configuration information is generated based on the first data frame and the second data frame.

[0092] In this embodiment, the process of parsing the second frame header field of the second data frame can be determined according to the actual situation and is not limited here. As an example, the second frame header field of the second data frame can be parsed based on a preset frame header field parsing protocol to obtain the second frame header information. The preset frame header field parsing protocol can be determined according to the actual situation and is not limited here.

[0093] In this embodiment, the process of matching the second frame header information with the first frame header information of the first data frame can be determined according to the actual situation and is not limited here. As an example, it can be determined whether the second frame header information and the first frame header information are consistent. If the second frame header information and the first frame header information are consistent, then the first matching result indicates that the second frame header information and the first frame header information are matched; if the second frame header information and the first frame header information are inconsistent, then the first matching result indicates that the second frame header information and the first frame header information are not matched. Wherein, the matching of the second frame header information and the first frame header information can indicate that the first data frame and the second data frame are matched.

[0094] In this embodiment, if the first matching result indicates that the second frame header information matches the first frame header information, then it is determined that the second data frame sent by the second device carries configuration information, and a first switching instruction for the configuration information can be generated based on the first data frame and the second data frame.

[0095] Here, in this embodiment, the first device can match the first frame header information it sends with the second frame header information received by the second device to determine whether the second data frame received by the second device carries configuration information, generate a configuration information switching instruction, and thus instruct the second device to switch the configuration according to the configuration information, effectively improving the security of the configuration information transmission process.

[0096] In some embodiments, a first switching instruction for generating configuration information based on a first data frame and a second data frame includes:

[0097] The second configuration field of the second data frame is parsed to obtain the configuration information in the second data frame;

[0098] The configuration information in the first data frame is matched with the configuration information in the second data frame to obtain the second matching result;

[0099] If the second matching result indicates that the configuration information in the first data frame matches the configuration information in the second data frame, a first switching instruction is generated.

[0100] In this embodiment, the process of parsing the second configuration field of the second data frame can be determined according to the actual situation and is not limited here. As an example, the second configuration field of the second data frame can be parsed based on a preset configuration field parsing protocol to obtain the configuration information in the second data frame. The preset configuration field parsing protocol can be determined according to the actual situation and is not limited here.

[0101] In this embodiment, the process of matching the configuration information in the first data frame and the configuration information in the second data frame can be determined according to the actual situation and is not limited here. As an example, it can be determined whether the configuration information in the first data frame and the configuration information in the second data frame are consistent. If the configuration information in the first data frame and the configuration information in the second data frame are consistent, then the second matching result indicates that the configuration information in the first data frame and the configuration information in the second data frame are matched; if the configuration information in the first data frame and the configuration information in the second data frame are inconsistent, then the second matching result indicates that the configuration information in the first data frame and the configuration information in the second data frame are not matched. Wherein, the matching of the configuration information in the first data frame and the configuration information in the second data frame can indicate that the first data frame and the second data frame are matched.

[0102] In this embodiment, if the second matching result indicates that the configuration information in the first data frame matches the configuration information in the second data frame, then the configuration information in the second data frame is determined to be the configuration information sent by the first device itself, and a first switching instruction for the configuration information is generated.

[0103] Here, in this embodiment, the first device can match the first configuration information it sends with the configuration information received from the second device, determine whether the configuration information received from the second device is the same as the configuration information sent by the first device, generate a configuration information switching instruction, and thus instruct the second device to switch the configuration according to the configuration information, effectively improving the security of the configuration information transmission process.

[0104] In some embodiments, the first frame structure further includes a data field; the method further includes:

[0105] Obtain the audio information to be transmitted;

[0106] The audio information is encapsulated into the data field of the first data frame according to the first frame structure to obtain the first data frame.

[0107] In this embodiment, the process of acquiring the audio information to be transmitted can be determined according to the actual situation and is not limited here. As an example, a second message sent by a second terminal device can be received, and it can be determined whether the second message is audio information to obtain a second determination result; if the second determination result indicates that the second message is audio information, then the second message is determined to be the audio information to be transmitted; wherein, the second terminal device can be a terminal device capable of sending audio information, and is not limited here.

[0108] In some embodiments, if the second determination result indicates that the second information is not audio information, then the second information sent by the second terminal continues to be received. It should be noted that the process of determining whether the second information is audio information can be determined according to the actual situation and is not limited here.

[0109] In some embodiments, after sending the first data frame to the second device in a preset first high-frequency band, the method further includes:

[0110] If the second data frame is not received from the second device after a first preset time interval, the first data frame is retransmitted to the second device in the first high frequency band.

[0111] In this embodiment, the first preset duration can be determined according to the actual situation and is not limited here. As an example, the first preset duration can be 10 milliseconds. Here, if the second data frame sent by the second device is not received after the first preset duration, it is determined that the transmission of the first data frame has failed. Since the second device has not received the first data frame, it can resend the first data frame to the second device in the first high frequency band, which helps to ensure the stability of the configuration information transmission process.

[0112] In some embodiments, after retransmitting the first data frame to the second device in the first high-frequency band, the method further includes: obtaining a first number of times the first device has transmitted the first frame data; generating a prompt message if the first number is greater than or equal to a first threshold; the prompt message is used to indicate that the first device has not matched the second device; and stopping the transmission of the first data frame to the second device.

[0113] The first threshold can be determined based on the actual situation and is not limited here. As an example, the first threshold can be 10 or 20 times. Here, if the first number of times is greater than or equal to the first threshold, a prompt message is generated to indicate that the first device has not matched the second device and the transmission of the first data frame to the second device is stopped, which helps to save power consumption during the transmission of configuration information.

[0114] Figure 2 A flowchart illustrating another configuration switching method provided in this application embodiment is shown below. Figure 2As shown, this embodiment provides a configuration switching method applied to a second device. The configuration switching method provided in this application embodiment may include, but is not limited to, the following steps and combinations thereof.

[0115] Step 201: Receive the first data frame sent by the first device in the preset first high frequency band.

[0116] In this embodiment, the first high-frequency band can be determined according to the actual situation and is not limited here. As an example, the first high-frequency band can be the ultra-high frequency band in which the second device receives the first data frame.

[0117] In this embodiment, the process of receiving the first data frame sent by the first device can be determined according to the actual situation and is not limited here. As an example, the first data frame sent by the first device can be received when the second device is in the receiving enabled state.

[0118] Step 202: Parse the first configuration field of the first data frame to obtain the communication configuration information.

[0119] In this embodiment, the process of parsing the first configuration field of the first data frame can be determined according to the actual situation and is not limited here. As an example, the first configuration field of the first data frame can be parsed based on a preset configuration field parsing protocol to obtain the communication configuration information.

[0120] Step 203: Switch the communication configuration based on the configuration information.

[0121] In this embodiment, the process of switching the communication configuration based on the configuration information can be determined according to the actual situation and is not limited here. As an example, a configuration identifier of the configuration information can be determined, and the communication configuration can be switched based on the configuration identifier.

[0122] The method provided in this application embodiment allows the second device to receive a first data frame including a first configuration field, which encapsulates configuration information. Encapsulating the configuration information into the first configuration field of the first data frame avoids affecting the audio information transmission between the first and second devices, effectively improving the transmission capability of the configuration information. This enables the transmission of configuration information from the first device to the second device when the distance between the first and second devices is far, thereby improving the transmission capability of the configuration information.

[0123] In some embodiments, switching the communication configuration based on configuration information includes:

[0124] The first frame header field of the first data frame is parsed to obtain the first frame header information;

[0125] Determine whether the first frame header information matches the preset frame header information to obtain the third matching result;

[0126] If the third matching result indicates that the first frame header information matches the preset frame header information, then the communication configuration is switched based on the configuration information.

[0127] In this embodiment, the process of parsing the first frame header field of the first data frame can be determined according to the actual situation and is not limited here. As an example, the first frame header field of the first data frame can be parsed based on a preset frame header field parsing protocol to obtain the first frame header information.

[0128] In this embodiment, the process of determining whether the first frame header information matches the preset frame header information can be determined according to the actual situation and is not limited here. As an example, it can be determined whether the first frame header information and the preset frame header information are consistent. If the first frame header information and the preset frame header information are consistent, then the third matching result indicates that the first frame header information and the preset frame header information match; if the first frame header information and the preset frame header information are inconsistent, then the third matching result indicates that the first frame header information and the preset frame header information do not match. The preset frame header information can be the frame header information contained in the data frame carrying configuration information pre-stored in the second device.

[0129] In this embodiment, if the third matching result indicates that the first frame header information matches the preset frame header information, then the first data frame carries configuration information. The first configuration field of the first data frame can be parsed to obtain the communication configuration information, and the communication configuration can be switched based on the configuration information.

[0130] Here, in this embodiment, the second device can identify whether the first data frame sent by the first device contains configuration information through the frame header information. The configuration information corresponds to dedicated frame header information, so the second device can parse the configuration information from the first data frame to switch configurations, effectively improving the transmission capability of configuration information.

[0131] In some embodiments, switching the communication configuration based on configuration information includes:

[0132] The configuration information is encapsulated into a second data frame according to a preset second frame structure; the second frame structure includes a second configuration field, and the configuration information is located in the second configuration field.

[0133] The second data frame is sent to the first device in a preset second high-frequency band; the second high-frequency band is different from the first high-frequency band.

[0134] Receive the first switching command sent by the first device;

[0135] The communication configuration is switched based on the first switching instruction and configuration information.

[0136] In this embodiment, if the third matching result indicates that the first frame header information matches the preset frame header information, the configuration information can be encapsulated into a second data frame according to a preset second frame structure. The encapsulation process of the second data frame can be determined according to the actual situation and is not limited here.

[0137] In this embodiment, the second high-frequency band can be determined according to the actual situation and is not limited here. As an example, the second high-frequency band can be the ultra-high frequency band used by the second device to transmit the second data frame. It should be noted that the second high-frequency band representing the second device transmitting the second data frame is different from the first high-frequency band representing the second device receiving the first data frame, which can prevent the second device from receiving the data frame it itself transmitted.

[0138] In this embodiment, the process of sending the second data frame to the first device can be determined according to the actual situation and is not limited here. As an example, the second data frame can be sent to the first device while the second device is in the transmission enabled state. It should be noted that the second device will only be switched to the transmission enabled state upon receiving the first data frame carrying configuration information, which can effectively reduce power consumption.

[0139] In this embodiment, the process of receiving the first handover instruction sent by the first device can be determined according to the actual situation and is not limited here. As an example, the first handover instruction sent by the first device can be received in a preset frequency band when the second device is in the receive-on state. In some embodiments, the second device can be switched to the transmit-off state after receiving the first handover instruction.

[0140] In this embodiment, the process of switching the communication configuration based on the first switching instruction and configuration information can be determined according to the actual situation and is not limited here. As an example, in response to the first switching instruction, the step of determining the configuration identifier of the configuration information and switching the communication configuration based on the configuration identifier can be performed.

[0141] In the field of audio transmission technology, the second device typically passively receives audio data sent by the first device and does not send any information to the first device. This embodiment constructs a frame structure for the second device, adding a second configuration field to the second data frame. This second configuration field can be used to encapsulate configuration information, enabling the first device to match the first and second data frames and generate a configuration information switching instruction. This instructs the second device to switch configurations based on the configuration information, effectively improving the security of configuration information transmission.

[0142] In some embodiments, the second frame structure further includes a second frame header field; the method further includes:

[0143] Generate second frame header information corresponding to the first frame header information;

[0144] The second frame header information is encapsulated into the second frame header field according to the second frame structure to obtain the second data frame.

[0145] For example, the process of generating the second frame header information corresponding to the first frame header information can be determined according to the actual situation and is not limited here. As an example, the second frame header information corresponding to the first frame header information can be generated if the third matching result indicates that the first frame header information matches the preset frame header information. As another example, the first frame header information can be read to obtain the synchronization code and byte count of the first frame header information; the second frame header information can be generated based on the synchronization code and byte count of the first frame header information, wherein the second frame header information is consistent with the first frame header information.

[0146] Here, in this embodiment, the second device generates its own second frame header information based on the first frame header information of the first device. Both the first and second frame header information are frame header information dedicated to configuration information, enabling the first device to match the first and second frame header information and generate a first switching instruction, effectively improving the security of configuration information transmission.

[0147] In some embodiments, the method further includes:

[0148] If the third matching result indicates that the first frame header information does not match the preset frame header information, then the data field of the first data frame is parsed to obtain the audio information.

[0149] In this embodiment, if the third matching result indicates that the first frame header information does not match the preset frame header information, then the first data frame does not carry configuration information. The data field of the first data frame can be parsed to obtain audio information, which can then be stored and / or played.

[0150] The following describes the configuration switching method provided in the embodiments of this application.

[0151] In the field of audio transmission technology, the host device only includes a transmitting unit and does not include a receiving unit; the host device can only send data frames to the slave device and cannot receive data frames sent by the slave device. The slave device only includes a receiving unit and does not include a transmitting unit; the slave device can only receive data frames sent by the host device and cannot send data frames to the host device.

[0152] Figure 3 This is a schematic diagram of the structure of a configuration switching system provided in an embodiment of this application, as shown below. Figure 3As shown, the configuration switching system includes a host device 301 and a slave device 302. The host device 301 includes a first transmitting unit 3011 and a first receiving unit 3012. The first transmitting unit 3011 is used to transmit a first data frame to the slave device 302, and the first receiving unit 3012 is used to receive a second data frame transmitted by the slave device 302. The slave device 302 includes a second receiving unit 3021 and a second transmitting unit 3022. The second receiving unit 3021 is used to receive the first data frame transmitted by the host device 301, and the second transmitting unit 3022 is used to transmit the second data frame to the host device 301.

[0153] The first frame structure of the first data frame includes a first frame header field, a first configuration field, and a data field. The second frame structure of the second data frame includes a second frame header field and a second configuration field.

[0154] The configuration switching method provided in this application includes the following steps.

[0155] Step 1: After power-on, both the master device 301 and the slave device 302 will operate on pre-set frequency bands, enabling normal operation. The master device 301 transmits and receives on different frequencies, and the slave device 302 transmits and receives on different frequencies, preventing either device from receiving data it itself has transmitted. Upon power-on, the master device 301 switches to the transmit-on state and the receive-off state, while the slave device 302 switches to the receive-on state and the transmit-off state.

[0156] Step 2: After the host device 301 sets the configuration information through a terminal device with a UI, the host device 301 encapsulates the configuration information into the first configuration field of the first data frame according to the first frame structure, sends the first data frame to the slave device 302, and at the same time the host device 301 switches to the receive enabled state.

[0157] Step 3: After receiving the first data frame carrying configuration information, slave device 302 switches to the transmit enable state, parses the first data frame to obtain the configuration information, encapsulates the configuration information into the second configuration field of the second data frame according to the second frame structure, and sends the second data frame to master device 301.

[0158] Step 4: If the host device 301 does not receive the second data frame within 10 milliseconds, then proceed to step 5; if the host device 301 receives the second data frame carrying configuration information sent by the slave device 302, it compares the configuration information it sent with the configuration information carried in the received second data frame. If they match, proceed to step 6; otherwise, proceed to step 5.

[0159] Step 5: The host device 301 resends the first data frame carrying the configuration information to the slave device 302 until the host device 301 receives the correct configuration information (for example, configuration information consistent with the configuration information sent by the host device 301 itself), and then executes Step 6.

[0160] Step 6: The host device 301 adds an identifier for confirming the configuration information switch in the first configuration domain and sends the first data frame containing the identifier to the slave device 302. The host device 301 switches the current configuration information according to the configuration information and switches to the receive off state.

[0161] Step 7: After receiving the first data frame carrying the identifier of the confirmation switch configuration information, the slave device 302 switches the configuration information and switches to the transmit off state.

[0162] Step 8: The host device 301 and the slave device 302 operate according to the new configuration information.

[0163] In this embodiment, the slave device 302 (e.g., a UHF receiver) can automatically modify its configuration information according to the host device 301's configuration information, avoiding the need for cumbersome secondary configuration by the slave device 302 after the host device 301 has completed its communication configuration settings. The automatic configuration methods used in related technologies cannot meet the distance requirements for UHF communication between the host device 301 and the slave device 302. The embodiment proposed in this application also transmits configuration information via UHF wireless communication, enabling the slave device 302 to automatically modify its communication configuration in response to the host device 301's switching command, and allowing the transmission distance of the configuration information to reach the same range as audio information.

[0164] Figure 4 This is a schematic diagram of the structure of a configuration switching device provided in an embodiment of this application, as shown below. Figure 4 As shown, this application provides a first configuration switching device 400, applied to a first device. The first configuration switching device 400 includes:

[0165] The first acquisition module 401 is used to acquire communication configuration information;

[0166] The first encapsulation module 402 is used to encapsulate the configuration information into a first data frame according to a preset first frame structure; the first frame structure includes a first configuration field, and the configuration information is located in the first configuration field.

[0167] The first transmitting module 403 is used to transmit a first data frame to the second device in a preset first high frequency band; the first data frame is used by the second device to parse configuration information and perform configuration switching.

[0168] In some embodiments, the first frame structure further includes a first frame header field, and the first configuration switching device 400 further includes: a first generation module, used to generate first frame header information corresponding to the configuration information; and a second encapsulation module, used to encapsulate the first frame header information into the first frame header field according to the first frame structure to obtain a first data frame.

[0169] In some embodiments, the first configuration switching device 400 further includes: a first receiving module, configured to receive a second data frame sent by a second device in a preset second high frequency band; the second high frequency band is different from the first high frequency band; a second generating module, configured to generate a first switching instruction for configuration information based on the first data frame and the second data frame; and a second sending module, configured to send the first switching instruction to the second device; the first switching instruction is used to instruct the second device to perform configuration switching according to the configuration information.

[0170] In some embodiments, the first configuration switching device 400 further includes: a first parsing module, configured to parse the second frame header field of the second data frame to obtain second frame header information; a first matching module, configured to match the second frame header information and the first frame header information of the first data frame to obtain a first matching result; and a second generation module, configured to generate a first switching instruction for configuration information based on the first data frame and the second data frame if the first matching result indicates that the second frame header information matches the first frame header information.

[0171] In some embodiments, the second generation module is further configured to parse the second configuration field of the second data frame to obtain configuration information in the second data frame; match the configuration information in the first data frame and the configuration information in the second data frame to obtain a second matching result; and generate a first switching instruction if the second matching result indicates that the configuration information in the first data frame and the configuration information in the second data frame match.

[0172] In some embodiments, the first frame structure further includes a data field; the first configuration switching device 400 further includes: a second acquisition module, used to acquire audio information to be transmitted; and a third encapsulation module, used to encapsulate the audio information into the data field of the first data frame according to the first frame structure, to obtain the first data frame.

[0173] In some embodiments, the first transmitting module 403 is further configured to retransmit the first data frame to the second device in the first high-frequency band if the second data frame is not received from the second device after a first preset time interval.

[0174] Figure 5 This is a schematic diagram of another configuration switching device provided in an embodiment of this application, as shown below. Figure 5 As shown, this application provides a second configuration switching device 500, applied to a second device. The second configuration switching device 500 includes:

[0175] The second receiving module 501 is used to receive the first data frame sent by the first device in a preset first high frequency band;

[0176] The second parsing module 502 is used to parse the first configuration field of the first data frame to obtain the communication configuration information;

[0177] The switching module 503 is used to switch the communication configuration based on the configuration information.

[0178] In some embodiments, the switching module 503 is further configured to parse the first frame header field of the first data frame to obtain the first frame header information; determine whether the first frame header information matches the preset frame header information to obtain a third matching result; if the third matching result indicates that the first frame header information matches the preset frame header information, then the configuration of the communication is switched based on the configuration information.

[0179] In some embodiments, the switching module 503 is further configured to encapsulate configuration information into a second data frame according to a preset second frame structure; the second frame structure includes a second configuration field, and the configuration information is located in the second configuration field; send the second data frame to the first device in a preset second high frequency band; the second high frequency band is different from the first high frequency band; receive a first switching instruction sent by the first device; and perform configuration switching on the communication configuration based on the first switching instruction and the configuration information.

[0180] In some embodiments, the second frame structure further includes a second frame header field; the second configuration switching device 500 further includes: a third generation module, used to generate second frame header information corresponding to the first frame header information; and a fourth encapsulation module, used to encapsulate the second frame header information into the second frame header field according to the second frame structure to obtain a second data frame.

[0181] In some embodiments, the second configuration switching device 500 further includes a third parsing module, configured to parse the data field of the first data frame to obtain audio information if the third matching result indicates that the first frame header information does not match the preset frame header information.

[0182] Figure 6 This is a schematic diagram of the structure of the first device provided in the embodiments of this application, such as... Figure 6 As shown. This application provides a first device, which includes: a first processor 601 with one or more processing cores, a first memory 602 with one or more computer-readable storage media, a first power supply 603, and a first input unit 604, etc. Those skilled in the art will understand that... Figure 6 The first device structure shown does not constitute a limitation on the first device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0183] The first processor 601 is the control center of the first device. It connects various parts of the first device via various interfaces and lines. By running or executing software programs and / or modules stored in the first memory 602, and by calling data stored in the first memory 602, it performs various functions and processes data of the first device, thereby providing overall monitoring of the first device. Optionally, the first processor 601 may include one or more processing cores; preferably, the first processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the first processor 601.

[0184] The first memory 602 can be used to store software programs and modules. The first processor 601 executes various functional applications and data processing by running the software programs and modules stored in the first memory 602. The first memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the first device, etc. In addition, the first memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the first memory 602 may also include a memory controller to provide the first processor 601 with access to the first memory 602.

[0185] The first device also includes a first power supply 603 that supplies power to the various components. Preferably, the first power supply 603 can be logically connected to the first processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The first power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0186] The first device may further include a first input unit 604, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0187] Figure 7 This is a schematic diagram of the structure of the second device provided in the embodiments of this application, such as... Figure 7As shown. This application provides a second device, which includes: a second processor 701 with one or more processing cores, a second memory 702 with one or more computer-readable storage media, a second power supply 703, and a second input unit 704, etc. Those skilled in the art will understand that... Figure 7 The second device structure shown does not constitute a limitation on the second device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0188] The second processor 701 is the control center of the second device. It connects various parts of the second device via various interfaces and lines. By running or executing software programs and / or modules stored in the second memory 702, and by calling data stored in the second memory 702, it performs various functions and processes data of the second device, thereby providing overall monitoring of the second device. Optionally, the second processor 701 may include one or more processing cores; preferably, the second processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the second processor 701.

[0189] The second memory 702 can be used to store software programs and modules. The second processor 701 executes various functional applications and data processing by running the software programs and modules stored in the second memory 702. The second memory 702 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the second device, etc. In addition, the second memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the second memory 702 may also include a memory controller to provide the second processor 701 with access to the second memory 702.

[0190] The second device also includes a second power supply 703 that supplies power to the various components. Preferably, the second power supply 703 can be logically connected to the second processor 701 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The second power supply 703 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0191] The second device may also include a second input unit 704, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0192] This embodiment also provides a computer-readable storage medium storing a computer program, which is loaded by a processor to execute the arrangement in any of the configuration switching control methods described above.

[0193] In the embodiments of this application, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0194] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.

[0195] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.

[0196] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0197] The above provides a detailed description of a configuration switching method, electronic device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A configuration switching method, characterized in that, Applied to a first device, the method includes: Obtain communication configuration information; The configuration information is encapsulated into a first data frame according to a preset first frame structure; the first frame structure includes a first configuration field, and the configuration information is located in the first configuration field. The first data frame is sent to the second device in a preset first high-frequency band; the first data frame is used by the second device to parse the configuration information and perform configuration switching. The method further includes: The second frame header field of the second data frame sent by the second device is parsed to obtain the second frame header information; The second frame header information and the first frame header information of the first data frame are matched to obtain a first matching result; If the first matching result indicates that the second frame header information matches the first frame header information, a first switching instruction for the configuration information is generated based on the first data frame and the second data frame; the first switching instruction is used to instruct the second device to perform configuration switching according to the configuration information.

2. The configuration switching method according to claim 1, characterized in that, The first frame structure further includes a first frame header field, and the method further includes: Generate the first frame header information corresponding to the configuration information; The first frame header information is encapsulated into the first frame header field according to the first frame structure to obtain the first data frame.

3. The configuration switching method according to claim 1, characterized in that, After sending the first data frame to the second device in a preset first high-frequency band, the method further includes: In a preset second high-frequency band, the second data frame sent by the second device is received; the second high-frequency band is different from the first high-frequency band. A first switching instruction is generated based on the first data frame and the second data frame to provide the configuration information; The first switching command is sent to the second device.

4. The configuration switching method according to claim 3, characterized in that, The first switching instruction for generating the configuration information based on the first data frame and the second data frame includes: The second configuration field of the second data frame is parsed to obtain the configuration information in the second data frame; The configuration information in the first data frame and the configuration information in the second data frame are matched to obtain a second matching result; If the second matching result indicates that the configuration information in the first data frame and the configuration information in the second data frame match, the first switching instruction is generated.

5. The configuration switching method according to claim 1, characterized in that, The first frame structure further includes a data field; the method further includes: Obtain the audio information to be transmitted; The audio information is encapsulated into the data field of the first data frame according to the first frame structure to obtain the first data frame.

6. The configuration switching method according to claim 1, characterized in that, After sending the first data frame to the second device in a preset first high-frequency band, the method further includes: If the second data frame sent by the second device is not received after a first preset time interval, the first data frame is retransmitted to the second device in the first high frequency band.

7. A configuration switching method, characterized in that, Applied to a second device, the method includes: In a preset first high frequency band, receive the first data frame sent by the first device; The first configuration field of the first data frame is parsed to obtain the communication configuration information; Based on the configuration information, the communication configuration is switched. The step of switching the communication configuration based on the configuration information includes: The first frame header field of the first data frame is parsed to obtain the first frame header information; Determine whether the first frame header information matches the preset frame header information to obtain a third matching result; If the third matching result indicates that the first frame header information matches the preset frame header information, then the configuration of the communication is switched based on the configuration information.

8. The configuration switching method according to claim 7, characterized in that, The configuration switching of communication based on the configuration information includes: The configuration information is encapsulated into a second data frame according to a preset second frame structure; the second frame structure includes a second configuration field, and the configuration information is located in the second configuration field. The second data frame is sent to the first device in a preset second high-frequency band; the second high-frequency band is different from the first high-frequency band. Receive the first switching instruction sent by the first device; The configuration of the communication is switched based on the first switching instruction and the configuration information.

9. The configuration switching method according to claim 8, characterized in that, The second frame structure further includes a second frame header field; the method further includes: Generate second frame header information corresponding to the first frame header information; The second frame header information is encapsulated into the second frame header field according to the second frame structure to obtain the second data frame.

10. The configuration switching method according to claim 7, characterized in that, The method further includes: If the third matching result indicates that the first frame header information does not match the preset frame header information, then the data field of the first data frame is parsed to obtain audio information.

11. A first device, characterized in that, It includes a first memory and a first processor, wherein the first memory stores a computer program, and the computer program, when executed by the first processor, implements the configuration switching method as described in any one of claims 1-6.

12. A second device, characterized in that, It includes a second memory and a second processor, wherein the second memory stores a computer program, which, when executed by the second processor, implements the configuration switching method as described in any one of claims 7-10.

13. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to perform the steps of the configuration switching method of the first device according to any one of claims 1-6, or to perform the steps of the configuration switching method of the second device according to any one of claims 7-10.

Citation Information

Patent Citations

  • Systems and methods for the connection and remote configuration of wireless clients

    CN101084687A

  • Signal transmission method, sending device and receiving device

    CN117792514A