Equipment communication method and device, electronic equipment, readable storage medium and vehicle
The broadcast information of the microphone is obtained and matched through portable speakers, which solves the problem that the karaoke microphone can only be paired with the car machine, realizes the multi-point connection between the microphone and the portable speaker and the entire vehicle, and improves the flexibility and stability of the karaoke system.
Patent Information
- Application Number
- CN202411642569.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-04-11
AI Technical Summary
In the prior art, the karaoke microphone can only be paired with the car machine and cannot be paired with the second device, which limits the flexibility and versatility of the on-board karaoke system.
The portable speaker obtains the broadcast information of the target microphone and establishes a connection with the microphone when matching the preset identifier and pairing frequency points to realize the pairing of the portable speaker and the microphone.
It allows the microphone to establish a connection with the portable speaker and the entire vehicle at the same time, realizes the need to sing simultaneously inside and outside the vehicle, and updates the frequency points through dynamic negotiation during electromagnetic interference in the surrounding environment to maintain the stability of the connection.
Smart Images

Figure CN119815580A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent vehicle technology, and in particular to a device communication method, an apparatus, an electronic device, a readable storage medium and a vehicle. Background Art
[0002] In related technologies, with the development of the Internet of Vehicles, cars have evolved from the most basic means of transportation to mobile terminals that can provide more services, and in-vehicle smart terminals have become more and more intelligent. In addition to providing the most basic driving data, they can also provide more entertainment services, such as music, navigation, voice interaction, etc. Users have put forward higher and more requirements for in-vehicle application services, such as karaoke in the car, and the good enclosed environment, high-quality sound system, and comfortable driving seats in the car provide a perfect environment for in-car karaoke.
[0003] The existing in-vehicle karaoke (Karaoke TV, KTV) system is mainly composed of an in-vehicle wireless microphone, a receiver, an in-vehicle central control host, and vehicle speakers. The in-vehicle wireless microphone is responsible for picking up sound waves and transmitting the audio wirelessly to the receiver; the receiver is responsible for sending the sound wave audio to the vehicle computer; the vehicle computer is responsible for providing the karaoke application running environment, mixing the accompaniment audio with the sound wave audio, and giving it to the external amplifier, which drives the vehicle speakers to sound.
[0004] However, in the prior art, the karaoke microphone provided with the vehicle or purchased by the user can be connected to the vehicle central control host for karaoke, but can only be paired with the vehicle central control host and cannot be paired with a second device. Summary of the invention
[0005] The embodiments of the present application provide a device communication method, apparatus, electronic device, readable storage medium and vehicle to solve the problem in the prior art that a karaoke microphone can only be paired with a vehicle computer but cannot be paired with a second device.
[0006] In a first aspect, an embodiment of the present application provides a device communication method, which is applied to a portable speaker, and the method includes:
[0007] Acquire broadcast information of the target microphone, where the broadcast information includes a first identifier and a first pairing frequency of the target microphone;
[0008] When the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, a connection is established with the target microphone according to the broadcast information of the target microphone, and the preset identifier and the preset pairing frequency are sent by the receiver when the receiver is paired with the target microphone.
[0009] Optionally, obtaining broadcast information of the target microphone includes:
[0010] The broadcast information of the target microphone is obtained through Bluetooth broadcast.
[0011] Optionally, the method further comprises:
[0012] The preset identifier and the preset pairing frequency forwarded by the vehicle-mounted central control host in a wired or wireless manner are obtained.
[0013] Optionally, the method further comprises:
[0014] When the pairing frequency of the target microphone changes, obtaining an updated frequency sent by the receiver;
[0015] The pre-stored preset pairing frequency is updated, and a connection is established with the target microphone according to the updated frequency.
[0016] Optionally, the update frequency is determined by the receiver through dynamic negotiation with the target microphone according to network signals in the surrounding environment and / or current information inside the receiver.
[0017] Optionally, the method further comprises:
[0018] When the target microphone is connected, the audio stream input by the target microphone is played, and the audio stream is also played through the vehicle-mounted speaker connected to the microphone.
[0019] In a second aspect, an embodiment of the present application provides a device communication method, which is applied to a receiver, and the method includes:
[0020] When the receiver is paired with the target microphone, obtaining a preset identifier and a preset pairing frequency of the target microphone;
[0021] The preset identifier and the preset pairing frequency are sent to the portable speaker, so that the portable speaker establishes a connection with the target microphone according to the broadcast information of the target microphone when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency.
[0022] Optionally, the method further comprises:
[0023] Acquiring network signals in the surrounding environment and current information inside the receiver;
[0024] When the network signal and / or the current information meets an abnormal condition, sending operating frequency change information to the target microphone, so that the target microphone changes the operating frequency according to the operating frequency change information;
[0025] When receiving the response information returned by the microphone, obtaining the updated frequency of the microphone after the frequency is changed;
[0026] The updated frequency point is sent to the portable speaker.
[0027] Optionally, the method further comprises:
[0028] The preset identifier and the preset pairing frequency or the updated frequency are sent to the vehicle-mounted central control host, so that the vehicle-mounted central control host forwards the preset identifier and the preset pairing frequency or the updated frequency to the portable speaker via a wired or wireless method.
[0029] In a third aspect, an embodiment of the present application provides a device communication apparatus, which is applied to a portable speaker, and the apparatus includes:
[0030] A first acquisition module, used to acquire broadcast information of a target microphone, where the broadcast information includes a first identifier and a first pairing frequency point of the target microphone;
[0031] A pairing module, when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, establishes a connection with the target microphone according to the broadcast information of the target microphone, and the preset identifier and the preset pairing frequency are sent by the receiver when the receiver is paired with the target microphone.
[0032] In a fourth aspect, an embodiment of the present application provides a device communication apparatus, applied to a receiver, the apparatus comprising:
[0033] A second acquisition module, configured to acquire a preset identifier and a preset pairing frequency of the target microphone when the receiver is paired with the target microphone;
[0034] A sending module is used to send the preset identifier and the preset pairing frequency to the portable speaker so that the portable speaker obtains the broadcast information of the target microphone, the broadcast information includes the first identifier and the first pairing frequency of the target microphone, and when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, a connection is established with the target microphone according to the broadcast information of the target microphone.
[0035] In a fifth aspect, an embodiment of the present application further discloses an electronic device, comprising: a processor, a communication interface, a memory, and a communication bus; wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0036] Memory, used to store computer programs;
[0037] The processor is used to implement the steps of the method described in the first aspect or the second aspect when executing the program stored in the memory.
[0038] In a sixth aspect, an embodiment of the present application further discloses a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0039] In a seventh aspect, an embodiment of the present application further discloses a vehicle, comprising a device communication apparatus capable of executing the device communication apparatus as described in the third aspect or the fourth aspect of the present application, or an electronic device as disclosed in the fifth aspect of the present disclosure.
[0040] In summary, in this embodiment, the portable speaker utilizes the received first pairing frequency point to pair and connect with the microphone when the receiver is paired with the microphone. In this way, the microphone can establish connections with the portable speaker and the entire vehicle at the same time.
[0041] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for describing the embodiments are briefly introduced below.
[0043] Figure 1 A flowchart of a device communication method provided in an embodiment of the present application;
[0044] Figure 2 A flowchart of the specific steps of a device communication method provided in an embodiment of the present application.
[0045] Figure 3 A flowchart of another device communication method provided in an embodiment of the present application;
[0046] Figure 4 A flowchart of the specific steps of another device communication method provided in an embodiment of the present application;
[0047] Figure 5 A schematic diagram of the structure of an audio playback system provided in an embodiment of the present application;
[0048] Figure 6 A flowchart of the specific steps of another device communication method provided in an embodiment of the present application;
[0049] Figure 7A schematic diagram of a device communication apparatus provided in an embodiment of the present application;
[0050] Figure 8 A schematic diagram of another device communication apparatus provided in an embodiment of the present application;
[0051] Fig. 9 A block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can also be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0053] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0054] In the description of the present disclosure, unless otherwise specified, "multiple" means two or more than two, and other quantifiers are similar thereto; "at least one item", "one item or multiple items" or similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one item a can represent any number of a; for another example, one item or multiple items among a, b and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple; "and / or" is a kind of description of the association relationship of associated objects, indicating that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " indicates that the associated objects before and after are in an "or" relationship.
[0055] Although operations or steps are described in a specific order in the drawings in the embodiments of the present application, it should not be understood that it is required to perform these operations or steps in the specific order shown or in a serial order, or that all the operations or steps shown must be performed to obtain the desired result. In the embodiments of the present disclosure, these operations or steps may be performed in series; these operations or steps may also be performed in parallel; or some of these operations or steps may be performed.
[0056] The present application provides a device communication method, apparatus, electronic device, readable storage medium and vehicle. The specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings.
[0057] Figure 1 This is a device communication method provided by an embodiment of the present application, referring to Figure 1 The device communication method uses a portable speaker, and the device communication method includes:
[0058] Step 101: Obtain broadcast information of a target microphone.
[0059] The broadcast information includes a first identifier and a first pairing frequency of the target microphone.
[0060] It should be noted that in this embodiment, the microphone may be a wireless microphone, and the pairing frequency may be a frequency point for data transmission between the receiver and the microphone. A receiver may include multiple working frequencies, each of which may be connected to one or more wireless microphones. The wireless microphone needs to be paired with the receiver before use so that the communication channels of the two are the same, thereby achieving wireless communication between the two.
[0061] In some embodiments, the microphone may include a dynamic microphone, a condenser microphone, a micro-electromechanical microphone, or the like.
[0062] In some embodiments, the first paired frequency point may be a communication frequency or a number corresponding to a communication frequency, and the first paired frequency point may further include a character string.
[0063] In this embodiment, smart speakers and outdoor speakers can be used indoors, outdoors, and even in cars due to their portability. Therefore, smart speakers and outdoor speakers are collectively referred to as "portable speakers". Portable speakers have the characteristics of portability, wireless connection, built-in battery, and additional functions, so that users can carry and use them conveniently.
[0064] Optionally, the portable speaker in the embodiment of the present application is a component of the whole vehicle speaker system, which can multiplex the subwoofer channel signal and form a subwoofer array with the vehicle-mounted subwoofer speaker to ensure balanced subwoofer effect in the entire cabin.
[0065] In some embodiments, step 101 may include: obtaining a first identifier and a first pairing frequency point broadcast by a target microphone at a preset frequency.
[0066] Optionally, a Bluetooth Low Energy (BLE) module is disposed inside the target microphone, and step 101 may include: receiving a first identifier and a first pairing frequency broadcasted by the target microphone via the BLE.
[0067] In some embodiments, the portable speaker is connected to the receiver via Bluetooth, and the portable speaker can be connected to the vehicle's onboard central control host via a controller area network (CAN) bus.
[0068] In some embodiments, the device communication method may further include: receiving a first identifier and a first pairing frequency sent by the vehicle-mounted central control host, wherein the first identifier and the first pairing frequency are uploaded by the receiver to the vehicle-mounted central control host. Optionally, the portable speaker and the vehicle-mounted central control host may be connected via a wired connection, such as a CAN bus, a local area interconnect network (LIN), Ethernet, etc. The portable speaker and the vehicle-mounted central control host may also be connected via a wireless connection, such as Bluetooth, wireless communication technology (WIFI), a private wireless protocol, etc.
[0069] In some embodiments, after step 101, the device communication method may further include: the portable speaker stores the first identifier and the first pairing frequency of the microphone.
[0070] Step 102: When the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, establish a connection with the target microphone according to the broadcast information of the target microphone.
[0071] The preset identifier and the preset pairing frequency are sent by the receiver when the receiver is paired with the target microphone.
[0072] It is understandable that for the security of data transmission, the identity of the target microphone needs to be verified. The first pairing frequency is obtained by pairing the receiver with the microphone. When the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, it means that the target microphone is the microphone paired with the receiver. The purpose of pairing the target microphone with the portable speaker is to switch the communication channel of the target microphone and the portable speaker to the same communication channel, thereby realizing wireless communication between the target microphone and the portable speaker. Therefore, when obtaining the pairing frequency of the target microphone, the portable speaker first verifies according to the preset identifier and the preset pairing frequency. When the verification is passed, the portable speaker adjusts its own working frequency to the first pairing frequency, thereby establishing a connection with the target microphone.
[0073] In some embodiments, step 102 may further include: sending an access request to establish a connection to the microphone; and upon receiving a response message returned by the microphone, adjusting its own operating frequency to a pairing frequency.
[0074] Optionally, after step 102, the device communication method may further include: when a microphone is connected, playing an audio stream input by the microphone, wherein the audio stream is also played through a vehicle-mounted speaker connected to the microphone.
[0075] In summary, in this embodiment, the portable speaker utilizes the received first pairing frequency point to pair and connect with the microphone when the receiver is paired with the microphone. In this way, the microphone can establish connections with the portable speaker and the entire vehicle at the same time.
[0076] Figure 2 This is a flowchart of the specific steps of a device communication method provided in an embodiment of the present application, refer to Figure 2 The device communication method is applied to a portable speaker, and the device communication method may include the following steps:
[0077] Step 201: Acquire the broadcast information of the target microphone via Bluetooth broadcast.
[0078] The broadcast information includes a first identifier and a first pairing frequency of the target microphone.
[0079] Optionally, a Bluetooth Low Energy (BLE) module is provided inside the target microphone, and step 101 may include: acquiring a first identifier and a first pairing frequency point broadcasted by the target microphone via the BLE at a preset frequency.
[0080] Optionally, after step 201, the device communication method may further include: in a case where the vehicle has multiple microphones, determining a target microphone from the multiple microphones according to the first identifier.
[0081] In this embodiment, the multiple microphones have different identification documents (IDs).
[0082] It is understandable that when a vehicle has multiple microphones, multiple people can sing karaoke. In order to avoid interference between the microphones, it is necessary to determine the target microphone from the multiple microphones based on the microphone identification.
[0083] In some embodiments, after step 201, the device communication method may further include: receiving a third pairing frequency sent by a receiver, where the third pairing frequency is a pairing frequency of other microphones other than the target microphone; and establishing a connection with the other microphones according to the third pairing frequency.
[0084] Step 202: When the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, establish a connection with the target microphone according to the broadcast information of the target microphone.
[0085] It is understandable that for the security of data transmission, the identity of the target microphone needs to be verified. The first pairing frequency is obtained by pairing the receiver with the microphone. When the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, it means that the target microphone is the microphone paired with the receiver. At this time, the portable speaker establishes a connection with the target microphone, which enables one microphone to be connected to both the receiver and the portable speaker at the same time, thereby achieving the simultaneous playback of the sound input by the microphone through the portable speaker and the speaker of the entire vehicle.
[0086] In this embodiment, the preset identifier and the preset pairing frequency are sent by the receiver when the receiver is paired with the target microphone.
[0087] In some embodiments, before step 202, the device communication method may further include: obtaining a preset identifier and a preset pairing frequency forwarded by the vehicle-mounted central control host via a wired or wireless manner.
[0088] Step 203: When the pairing frequency of the target microphone changes, obtain an updated frequency sent by the receiver.
[0089] In some embodiments, the update frequency is determined by the receiver through dynamic negotiation with the target microphone according to network signals in the surrounding environment and / or current information inside the receiver.
[0090] Optionally, the updated frequency is a working frequency of the microphone after the frequency is changed, which is obtained by the receiver when the network signal and / or the current information meets an abnormal condition.
[0091] It is understandable that in the process of communication between multiple devices, it is easy to be affected by electromagnetic interference from the surrounding environment, such as radio frequency interference or radio interference. In order to ensure the stability of data transmission, the receiver will switch the working frequency according to the use environment to avoid interference from the external electromagnetic environment. However, when the target microphone switches the working frequency, the working frequency of the microphone is inconsistent with the first pairing frequency previously received by the portable speaker, which will cause the convenient speaker to be unable to connect to the microphone. Therefore, when the receiver detects the presence of electromagnetic interference, the portable speaker needs to receive the updated frequency sent by the receiver after the target microphone changes its frequency, and re-establish a connection with the microphone according to the updated frequency.
[0092] In some embodiments, the current information inside the receiver may be a current signal of a preset duration inside the receiver.
[0093] In this embodiment, the abnormal condition may be that the signal quality of the network signal is lower than a first preset threshold, or that the fluctuation degree of the current signal is greater than a second preset threshold.
[0094] In one possible implementation, determining whether the network signal satisfies the abnormal condition may include: if the signal quality of the preamble code part in the Bluetooth signal within a first time period is lower than a second preset threshold, determining that the current information satisfies the abnormal condition; otherwise, determining that the network signal does not satisfy the abnormal condition.
[0095] In one possible implementation, determining whether the current information meets the abnormal condition may include: the receiver periodically obtains the current signal within a preset fluctuation time length, calculates the current fluctuation difference between the average value of the current signal of the current cycle and the average value of the current signal of the previous cycle, and when the current fluctuation difference is greater than a second preset threshold, it is determined that the current information meets the abnormal condition; otherwise, it is determined that the current information does not meet the abnormal condition.
[0096] For example, the acquisition cycle of the current signal is 30 seconds (s), the preset fluctuation duration is 2s, and the second preset threshold is 10 milliamperes (mA). If the average value of the current signal in the current cycle is 50mA, and the average value of the current signal in the previous cycle is 35mA, then the corresponding current fluctuation difference is calculated to be 50-35=15. Since the current fluctuation difference is greater than the second preset threshold, it is judged that the current information meets the abnormal condition, and the receiver sends the information of changing the working frequency to the microphone. The microphone returns the working frequency after the frequency change to the receiver, and the portable speaker receives the working frequency of the microphone after the frequency change sent by the receiver.
[0097] Step 204: Update the pre-stored preset pairing frequency, and establish a connection with the target microphone according to the updated frequency.
[0098] The method of pairing and connecting by using the updated frequency point in this step is similar to the method of pairing and connecting by using the first pairing frequency point, which has been described in the aforementioned step 102 and will not be repeated here.
[0099] In some embodiments, after step 204, the device communication method may further include: updating the correspondence between the microphone identifier and the pairing frequency point according to the second communication information.
[0100] Step 205: When a microphone is connected, play the audio stream input by the microphone.
[0101] The audio stream is also played through the car speakers connected to the microphone.
[0102] In this embodiment, the audio stream may be an audio data stream obtained by a microphone. Optionally, the audio stream input by the microphone is obtained by the microphone receiving sound waves through a sensor, converting the sound waves into electrical signals of corresponding intensity and frequency, and processing the electrical signals.
[0103] In this embodiment, the audio stream input by the microphone may be human voice, and the portable speaker may play the audio stream input by the microphone by mixing the accompaniment audio and the human voice audio to obtain an audio stream, and the portable speaker plays the audio stream.
[0104] In this embodiment, the vehicle-mounted speaker may be a speaker of the sound box system of the entire vehicle.
[0105] It should be noted that the audio stream is also played through the car speakers connected to the microphone, which means: the microphone is responsible for picking up sound waves and transmitting the audio wirelessly to the receiver; the receiver is responsible for inputting the sound wave audio into the car central control host; the car central control host mixes the accompaniment audio with the sound wave audio to obtain an audio stream, and outputs it to the external power amplifier, and the audio stream is played by the speakers of the entire vehicle.
[0106] In some embodiments, playing the audio stream input by the microphone in step 205 may include: determining a carrier frequency according to a first pairing frequency point; modulating the carrier according to the carrier frequency to obtain an audio stream; amplifying the audio stream through an audio amplification module of a portable speaker; and playing the audio stream through a speaker of the portable speaker.
[0107] In summary, in this embodiment, on the one hand, the microphone can be paired not only with the original receiver, but also with the portable speaker. The sound input by the microphone can be played through the portable speaker and the speaker of the whole vehicle together, thereby realizing the need of singing karaoke inside and outside the car at the same time; on the other hand, in the case of electromagnetic interference in the surrounding environment, the portable speaker can be paired and connected with the microphone again through the received updated frequency, so that the portable speaker and the microphone can be paired and connected continuously, thereby ensuring the stability of the connection between the portable speaker and the microphone, and thereby improving the stability of the audio playback.
[0108] Figure 3 This is a device communication method provided by an embodiment of the present application, referring to Figure 3 , the device communication method is applied to a receiver, and the device communication method comprises:
[0109] Step 301: When the receiver is paired with the target microphone, obtain a preset identifier and a preset pairing frequency of the target microphone.
[0110] In this embodiment, the receiver may be a built-in receiver of the vehicle-mounted KTV system, which is responsible for inputting the sound wave audio into the vehicle-mounted central control host so that the vehicle-mounted host can mix, synthesize, and process the sound wave audio.
[0111] In one possible implementation, the receiver is connected to the vehicle-mounted central control host via a Universal Serial Bus (USB) interface. When the receiver is connected to the microphone, the receiver uploads the first identifier and the first pairing frequency of the microphone to the vehicle-mounted central control host via the USB interface.
[0112] In some embodiments, the preset pairing frequency can be obtained by: polling its own working frequency band to find the target frequency with the best signal quality; using the target frequency as the pairing frequency and adjusting its own working frequency to the pairing frequency; upon receiving pairing information including the identification of the microphone, switching the working frequency of the receiver to the pairing frequency to pair with the microphone; and storing the identification and pairing frequency of the microphone.
[0113] It is understandable that the receiver and microphone need to be paired when they are connected for the first time. When the receiver is in pairing mode, the receiver polls the working frequency band and finds the target frequency with the best signal quality within the preset range as the pairing frequency.
[0114] In a possible implementation, the target frequency point may also be an unoccupied vacant frequency point, where signal interference is minimal.
[0115] Through the above-mentioned technical means, the working frequency of the receiver is switched to the pairing frequency to pair with the microphone. In this way, the pairing process can be automatically completed by the microphone and the receiver, and the microphone and the receiver can be paired without any sense. The operation is simple and reliable, which improves the user experience.
[0116] In other embodiments, the preset pairing frequency point may also be obtained in the following manner: when an access request from a microphone is received, an identifier is assigned to the microphone according to the access request; and a frequency point is selected from its own free frequency points as the pairing frequency point of the microphone.
[0117] In some other embodiments, the preset pairing frequency can be obtained by the following method: the receiver broadcasts its own media access control address (MAC) through a public frequency to pair with a microphone scanning a public frequency band. For example, the public frequency can be 650 MHz to 698 MHz.
[0118] Step 302: Send a preset identifier and a preset pairing frequency to the portable speaker.
[0119] In this embodiment, step 302 can enable the portable speaker to establish a connection with the target microphone according to the broadcast information of the target microphone when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, and when connected to the microphone, play the audio stream input by the microphone, and the audio stream is also output through the vehicle speaker connected to the microphone.
[0120] In some embodiments, step 302 may include: sending the first identifier and the first pairing frequency point to the vehicle-mounted central control host, so that the vehicle-mounted central control host forwards the first identifier and the first pairing frequency point to the portable speaker through the CAN bus.
[0121] Exemplarily, the receiver sends the first identifier and the first pairing frequency point to the vehicle-mounted central control host through the USB interface, so that the vehicle-mounted central control host forwards the first identifier and the first pairing frequency point to the portable speaker through the CAN bus.
[0122] In some embodiments, after step 302, the above-mentioned device communication method may further include: receiving audio data according to the communication frequency corresponding to the first pairing frequency point; extracting the audio stream from the received data and sending it to the vehicle host, so that the vehicle host controls the speaker to play the audio stream.
[0123] In summary, in this embodiment, the receiver sends the identifier and pairing frequency of the paired microphone to the portable speaker, so that the portable speaker is paired and connected with the microphone. When the microphone is paired with the receiver, the portable speaker can also be paired and connected with the microphone. In this way, the microphone can not only be paired with the original receiver, but also can be paired with the portable speaker.
[0124] Figure 4 This is a flowchart of the specific steps of a device communication method provided in an embodiment of the present application, refer to Figure 4 , the device communication method is applied to the receiver, and the device communication method may include the following steps:
[0125] Step 401: When the receiver is paired with the target microphone, obtain a preset identifier and a preset pairing frequency of the target microphone.
[0126] The method of this step has been described in the aforementioned step 301 and will not be repeated here.
[0127] Step 402: Send a preset identifier and a preset pairing frequency to the portable speaker.
[0128] The method of this step has been described in the aforementioned step 302 and will not be repeated here.
[0129] In some embodiments, step 402 may further include: sending a preset identifier and a preset pairing frequency or an updated frequency to the vehicle-mounted central control host, so that the vehicle-mounted central control host forwards the preset identifier and the preset pairing frequency or the updated frequency to the portable speaker via wired or wireless means.
[0130] Step 403: Acquire network signals in the surrounding environment and current information inside the receiver.
[0131] In this embodiment, the network signal in the surrounding environment may be a wireless network signal within a preset range, such as a carrier signal of a Bluetooth link.
[0132] In some embodiments, acquiring the network signal of the surrounding environment in step 403 may include: receiving a carrier signal of a Bluetooth link, and performing signal detection on a signal of a preamble part of the Bluetooth signal within a first time duration.
[0133] In some embodiments, the current signal inside the receiver in step 403 may include: periodically acquiring the current signal inside the receiver within a preset fluctuation time.
[0134] Step 404: When the network signal and / or current information meets the abnormal condition, information on changing the working frequency is sent to the microphone.
[0135] In this embodiment, step 404 may enable the microphone to change the operating frequency according to the operating frequency change information.
[0136] In some embodiments, the information on changing the working frequency may include an unoccupied vacant frequency, which is found by the receiver by polling its own working frequency band; sending the information on changing the working frequency to the microphone in step 404 may include: sending an unoccupied vacant frequency to the microphone so that the microphone switches the current working frequency to the vacant frequency.
[0137] In some embodiments, the current information inside the receiver may be a current signal of a preset duration inside the receiver.
[0138] In this embodiment, the abnormal condition may be that the signal quality of the network signal is lower than a first preset threshold, or that the fluctuation degree of the current signal is greater than a second preset threshold.
[0139] It is understandable that when the signal quality of the network signal is low, or when the current signal fluctuates greatly, the receiver may be subject to radio frequency interference. In this case, in order to ensure the stability of the connection between the microphone and the receiver, the operating frequency of the microphone needs to be changed.
[0140] In one possible implementation, determining whether the network signal satisfies the abnormal condition may include: if the signal quality of the preamble code part in the Bluetooth signal within a first time period is lower than a second preset threshold, then determining that the network signal satisfies the abnormal condition; otherwise, determining that the network signal does not satisfy the abnormal condition.
[0141] In one possible implementation, determining whether the current information satisfies the abnormal condition may include: calculating the current fluctuation difference between the average value of the current signal of the current cycle and the average value of the current signal of the previous cycle, and if the current fluctuation difference is greater than a second preset threshold, determining that the current information satisfies the abnormal condition; otherwise, determining that the current information does not satisfy the abnormal condition.
[0142] For example, the acquisition cycle of the current signal is 30 seconds (s), the preset fluctuation duration is 2s, and the second preset threshold is 10 milliamperes (mA). If the average value of the current signal in the current cycle is 50mA, and the average value of the current signal in the previous cycle is 35mA, then the corresponding current fluctuation difference is calculated to be 50-35=15. Since the current fluctuation difference is greater than the second preset threshold, it is judged that the current information meets the abnormal condition, and the information of changing the working frequency is sent to the microphone.
[0143] Step 405: upon receiving a response message returned by the microphone, obtaining an updated frequency after the microphone frequency is changed.
[0144] In some embodiments, the updated frequency point may be an unoccupied vacant frequency point sent in step 404 .
[0145] In other embodiments, the updated frequency may also be a frequency obtained through a frequency negotiation function.
[0146] Step 406: Send the updated frequency to the portable speaker.
[0147] The method of sending the updated frequency to the portable speaker in this step is similar to the method of sending the first identifier and the first pairing frequency to the portable speaker, which has been explained in the aforementioned step 302 and will not be repeated here.
[0148] In summary, in this embodiment, when there is electromagnetic interference in the surrounding environment, the receiver synchronizes the frequency to the portable speaker in real time when the frequency is switched, so that the portable speaker can be paired and connected with the microphone again through the received updated frequency, thereby ensuring the stability of the connection between the portable speaker and the microphone, and thereby improving the stability of the audio playback.
[0149] Figure 5 A schematic diagram of the structure of an audio playback system provided in an embodiment of the present application is shown in FIG. Figure 5 The audio playback system 50 includes: a portable speaker 501, a receiver 502, a microphone 503 and a vehicle-mounted central control host 504.
[0150] The portable speaker 501 includes a frequency modulation (FM) receiver, a BLE module, a classic Bluetooth (BT) + BLE chip, and an ultra high frequency (UHF) chip that supports two-way transmission. The portable speaker product is connected to the vehicle-mounted central control host 504 via a CAN interface.
[0151] The receiver 502 includes an FM receiver, a first BLE module, a second low-power Bluetooth module, a UHF chip, and a digital signal processor (DSP) chip. The receiver 502 is connected to the vehicle-mounted central control host 504 via a USB interface.
[0152] Microphone 503 can be any one of a dynamic microphone, a condenser microphone, and a micro-electromechanical microphone. Microphone 503 can also be other types of wireless microphones. Exemplarily, microphone 503 includes a pickup component and a control circuit. Optionally, the dynamic microphone also includes components such as a coil, a diaphragm, and a permanent magnet. When a sound wave enters the microphone, the diaphragm is subjected to the pressure of the sound wave and vibrates, and the coil connected to the diaphragm begins to move in the magnetic field, generating an induced current. Optionally, the condenser microphone also includes components such as a vibration membrane and a capacitor. When a sound wave enters the microphone, the vibration membrane vibrates. Because the substrate is fixed, the distance between the vibration membrane and the substrate changes, that is, the capacitance changes, and then a voltage change is generated. Optionally, the micro-electromechanical microphone also includes a micro-electromechanical (MEMS) component, and a pressure-sensitive membrane is directly etched on a silicon wafer using micro-electromechanical technology. When a sound wave enters the microphone, the pressure-sensitive membrane vibrates, and changes in capacitance and voltage are generated between the silicon wafer and the pressure-sensitive membrane.
[0153] The vehicle-mounted central control host 504 includes a system on a chip (SOC). The vehicle-mounted central control host 504 can not only communicate with the portable speaker 501 through the CAN interface, but also communicate with the receiver 502 through the USB interface.
[0154] Through the above-mentioned audio playback system, the microphone can not only be paired with the original receiver, but also can be paired with a portable speaker. The sound input by the microphone can be played through the portable speaker and the speakers of the entire vehicle together, which solves the technical problem that the existing car-mounted karaoke microphone can only be paired with the car computer but cannot be paired with a second device.
[0155] Figure 6 For a specific step flow chart of a device communication method provided in an embodiment of the present application, see Figure 6 , the device communication method is applied to Figure 5 The audio playback system shown, the device communication method includes:
[0156] Step 601: The receiver is connected to the vehicle-mounted central control host via a USB interface and is powered by the vehicle-mounted central control host.
[0157] In this embodiment, when the vehicle-mounted central control host is powered on, power is supplied to the receiver through the USB port, and the receiver is powered on.
[0158] Step 602: The receiver is paired with the microphone and sends the best frequency point to the microphone via the Bluetooth module.
[0159] In this embodiment, the best frequency point may be an unoccupied vacant frequency point, where the signal interference is minimal.
[0160] Step 603: upon receiving the response information from the microphone, upload the best frequency point to the vehicle-mounted central control host.
[0161] In this embodiment, after step 603, the above-mentioned device communication method may further include: the vehicle-mounted central control host uploads a karaoke applet of the optimal frequency application layer.
[0162] Step 604: The vehicle-mounted central control host forwards the optimal frequency point to the portable speaker, so that the portable speaker is paired with the microphone.
[0163] In some embodiments, after step 604, the following further includes: when the user starts singing karaoke, the karaoke microphone is turned on and powered on; the microphone enters the pairing broadcast mode, and the ID and working frequency information of the microphone are broadcast through the BLE integrated in the microphone; the portable speaker scans the ID and frequency information of the BLE broadcast microphone, and determines whether it is consistent with the stored ID and frequency information. If there is no consistency, the process ends, that is, the portable speaker is not paired with the microphone, and the portable speaker does not play the microphone voice; if it is consistent, the portable speaker plays the voice obtained by the microphone.
[0164] Step 605: The receiver switches the frequency and sends a request to change the working frequency to the microphone.
[0165] In some embodiments, step 605 may further include: the microphone sends a frequency response to the receiver via BLE; the receiver receives the frequency response sent by the microphone; and the microphone and the built-in receiver switch the negotiated wireless transmission working frequency.
[0166] Step 606: The receiver sends the updated operating frequency to the portable speaker via the Bluetooth module.
[0167] In some embodiments, step 606 may further include: the receiver uploads the updated frequency point to the vehicle-mounted central control host, and the vehicle-mounted central control host synchronously updates the updated frequency point to the portable speaker via CAN communication.
[0168] Step 607: The portable speaker synchronizes the operating frequency.
[0169] In summary, in this embodiment, the receiver and the microphone have a frequency negotiation function, and will switch to the optimal operating frequency according to the usage environment to avoid interference from the external electromagnetic environment.
[0170] Figure 7 is a schematic diagram of a device communication device provided in an embodiment of the present application, which is applied to a portable speaker. The device communication device 70 includes:
[0171] A first acquisition module 701 is used to acquire broadcast information of a target microphone, where the broadcast information includes a first identifier and a first pairing frequency point of the target microphone;
[0172] The pairing module 702 establishes a connection with the target microphone according to the broadcast information of the target microphone when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency. The preset identifier and the preset pairing frequency are sent by the receiver when the receiver and the target microphone are paired.
[0173] Optionally, the pairing module 702 includes:
[0174] The pairing submodule is used to obtain the broadcast information of the target microphone through Bluetooth broadcast.
[0175] Optionally, the device communication device 70 further includes:
[0176] The third acquisition module is used to obtain the preset identifier and the preset pairing frequency forwarded by the vehicle-mounted central control host via a wired or wireless method.
[0177] Optionally, the device communication device 70 further includes:
[0178] A fourth acquisition module, used for acquiring an updated frequency sent by the receiver when the pairing frequency of the target microphone changes;
[0179] The updating module is used to update the pre-stored preset pairing frequency and establish a connection with the target microphone according to the updated frequency.
[0180] Optionally, the update frequency is determined by the receiver through dynamic negotiation with the target microphone according to network signals in the surrounding environment and / or current information inside the receiver.
[0181] Optionally, the device communication device 70 further includes:
[0182] The playback module is used to play the audio stream input by the target microphone when the target microphone is connected. The audio stream is also played through the vehicle speaker connected to the microphone.
[0183] As for the above-mentioned device embodiment, since it is basically similar to the device communication method embodiment, the relevant parts can be referred to the partial description of the method embodiment.
[0184] The device communication apparatus provided in the embodiment of the present application can use the received first pairing frequency point to pair and connect with the microphone when the receiver is paired with the microphone. In this way, the microphone can establish connections with the portable speaker and the entire vehicle at the same time.
[0185] Figure 8 is a schematic diagram of a device communication device provided in an embodiment of the present application, which is applied to a receiver. The device communication device 80 includes:
[0186] The second acquisition module 801 is used to acquire a preset identifier and a preset pairing frequency of the target microphone when the receiver is paired with the target microphone;
[0187] The sending module 802 is used to send a preset identifier and a preset pairing frequency to the portable speaker so that the portable speaker obtains the broadcast information of the target microphone, the broadcast information includes the first identifier and the first pairing frequency of the target microphone, and when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, a connection is established with the target microphone according to the broadcast information of the target microphone.
[0188] Optionally, the device communication device 80 further includes:
[0189] A fifth acquisition module, used to acquire network signals in the surrounding environment and current information inside the receiver;
[0190] A first sending submodule, configured to send operating frequency change information to a target microphone when the network signal and / or current information meets an abnormal condition, so that the target microphone changes its operating frequency according to the operating frequency change information;
[0191] A receiving submodule, for obtaining an updated frequency after the microphone changes its frequency when receiving a response message returned by the microphone;
[0192] The second sending submodule is used to send the updated frequency point to the portable speaker.
[0193] Optionally, the device communication device 80 further includes:
[0194] The third sending submodule is used to send the preset identifier and the preset pairing frequency or the updated frequency to the vehicle-mounted central control host, so that the vehicle-mounted central control host forwards the preset identifier and the preset pairing frequency or the updated frequency to the portable speaker via wired or wireless means.
[0195] As for the above-mentioned device embodiment, since it is basically similar to the device communication method embodiment, the relevant parts can be referred to the partial description of the method embodiment.
[0196] In the device communication apparatus provided in the embodiment of the present application, the receiver sends the first identifier and the first pairing frequency of the paired microphone to the portable speaker, so that the portable speaker is paired and connected with the microphone according to the first identifier and the first pairing frequency, and can be paired and connected with the microphone when the microphone is paired with the receiver. In this way, the microphone can not only be paired with the original receiver, but also can be paired with the portable speaker. The sound input by the microphone can be played through the portable speaker and the speaker of the entire vehicle together, thereby realizing the need of singing karaoke inside and outside the car at the same time.
[0197] The present application also provides an electronic device, such as Fig. 9As shown, it includes a processor 901 , a communication interface 902 , a memory 903 and a communication bus 904 , wherein the processor 901 , the communication interface 902 , and the memory 903 communicate with each other via the communication bus 904 .
[0198] The memory 903 is used to store computer programs.
[0199] When the processor 901 is used to execute the program stored in the memory 903, the following steps are implemented: receiving a first identifier and a first pairing frequency sent by a receiver, the first identifier and the first pairing frequency include the first identifier and the first pairing frequency of a microphone paired with the receiver; pairing and connecting with the microphone according to the first identifier and the first pairing frequency; when the microphone is connected, playing the audio stream input by the microphone, and the audio stream is also played through the vehicle-mounted speaker connected to the microphone.
[0200] The processor 901 may also implement other steps in the above-mentioned device communication method, which will not be described in detail here.
[0201] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0202] The communication interface is used for communication between the above electronic device and other devices.
[0203] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0204] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a DSP, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0205] In another embodiment provided by the present invention, a vehicle is also provided. The vehicle includes the device communication apparatus in the above embodiment, or the electronic device in the above embodiment.
[0206] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the device communication method described in the above embodiment.
[0207] In yet another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the device communication method described in the above embodiment.
[0208] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired, such as coaxial cable, optical fiber, digital subscriber line (DSL) or wireless, such as infrared, wireless, microwave, etc. to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, a tape, an optical medium, such as a DVD, or a semiconductor medium, such as a solid-state drive (SSD).
[0209] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0210] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For the embodiments of the device, electronic device, computer-readable storage medium and computer program products containing instructions, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0211] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A device communication method, characterized in that: Applied to a portable speaker, the method comprises: Acquire broadcast information of the target microphone, where the broadcast information includes a first identifier and a first pairing frequency of the target microphone; When the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, a connection is established with the target microphone according to the broadcast information of the target microphone, and the preset identifier and the preset pairing frequency are sent by the receiver when the receiver is paired with the target microphone.
2. The device communication method according to claim 1, characterized in that: The obtaining of the broadcast information of the target microphone includes: The broadcast information of the target microphone is obtained through Bluetooth broadcast.
3. The device communication method according to claim 1, characterized in that: The method further comprises: The preset identifier and the preset pairing frequency forwarded by the vehicle-mounted central control host in a wired or wireless manner are obtained.
4. The device communication method according to claim 1, characterized in that: The method further comprises: When the pairing frequency of the target microphone changes, obtaining an updated frequency sent by the receiver; The pre-stored preset pairing frequency is updated, and a connection is established with the target microphone according to the updated frequency.
5. The device communication method according to claim 4, characterized in that: The update frequency is determined by the receiver in dynamic negotiation with the target microphone according to network signals in the surrounding environment and / or current information inside the receiver.
6. The device communication method according to claim 1, characterized in that: The method further comprises: When the target microphone is connected, the audio stream input by the target microphone is played, and the audio stream is also played through the vehicle-mounted speaker connected to the microphone.
7. A device communication method, characterized in that: Applied to a receiver, the method comprises: When the receiver is paired with the target microphone, obtaining a preset identifier and a preset pairing frequency of the target microphone; The preset identifier and the preset pairing frequency are sent to the portable speaker, so that the portable speaker establishes a connection with the target microphone according to the broadcast information of the target microphone when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency.
8. The device communication method according to claim 7, characterized in that: The method further comprises: Acquiring network signals in the surrounding environment and / or current information inside the receiver; When the network signal and / or the current information meets an abnormal condition, sending operating frequency change information to the target microphone, so that the target microphone changes the operating frequency according to the operating frequency change information; When receiving the response information returned by the microphone, obtaining the updated frequency of the microphone after the frequency is changed; The updated frequency point is sent to the portable speaker.
9. The device communication method according to claim 7, characterized in that: The method further comprises: The preset identifier and the preset pairing frequency or the updated frequency are sent to the vehicle-mounted central control host, so that the vehicle-mounted central control host forwards the preset identifier and the preset pairing frequency or the updated frequency to the portable speaker via a wired or wireless method.
10. A device communication apparatus, characterized in that: Applied to a portable speaker, the device comprises: A first acquisition module, used to acquire broadcast information of a target microphone, where the broadcast information includes a first identifier and a first pairing frequency point of the target microphone; A pairing module, when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, establishes a connection with the target microphone according to the broadcast information of the target microphone, and the preset identifier and the preset pairing frequency are sent by the receiver when the receiver is paired with the target microphone.
11. A device communication apparatus, characterized in that: Applied to a receiver, the device comprises: A second acquisition module, configured to acquire a preset identifier and a preset pairing frequency of the target microphone when the receiver is paired with the target microphone; A sending module is used to send the preset identifier and the preset pairing frequency to a portable speaker so that the portable speaker obtains the broadcast information of a target microphone, the broadcast information including a first identifier and a first pairing frequency of the target microphone, and when the first identifier matches the preset identifier and the first pairing frequency matches the preset pairing frequency, a connection is established with the target microphone according to the broadcast information of the target microphone.
12. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the steps of the method as claimed in any one of claims 1 to 6 or 7 to 9 when executing a program stored in a memory.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the device communication method according to any one of claims 1 to 6 or 7 to 9 are implemented.
14. A vehicle, characterized in that: The vehicle includes the device communication apparatus according to claim 10 or 11, or the electronic device according to claim 12.
Citation Information
Cited By
Vehicle-mounted microphone equipment control method, calibration method and equipment
CN120034768A