CN112291755A - Sound box, sound box pairing method and device, medium and electronic equipment - Google Patents
Sound box, sound box pairing method and device, medium and electronic equipment Download PDFInfo
- Publication number
- CN112291755A CN112291755A CN202010753613.8A CN202010753613A CN112291755A CN 112291755 A CN112291755 A CN 112291755A CN 202010753613 A CN202010753613 A CN 202010753613A CN 112291755 A CN112291755 A CN 112291755A
- Authority
- CN
- China
- Prior art keywords
- sound box
- pairing
- magnet
- hall device
- box
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004891 communication Methods 0.000 claims abstract description 44
- 230000008859 change Effects 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 9
- 238000013459 approach Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 7
- 230000006698 induction Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000005355 Hall effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 210000003790 arthropod antennae Anatomy 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R33/00—Arrangements or instruments for measuring magnetic variables
- G01R33/02—Measuring direction or magnitude of magnetic fields or magnetic flux
- G01R33/06—Measuring direction or magnitude of magnetic fields or magnetic flux using galvano-magnetic devices
- G01R33/07—Hall effect devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Condensed Matter Physics & Semiconductors (AREA)
- General Physics & Mathematics (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The embodiment of the invention provides a sound box, a method and a device for pairing the sound box, a medium and electronic equipment, wherein the sound box comprises: a magnet; the Hall device is used for detecting the change of a magnetic field when the Hall device approaches the magnet of the first sound box so as to generate a first pairing signal; the communication module is used for communicating with the first loudspeaker box; the controller is used for acquiring the first pairing signal, sending the first pairing signal to the first sound box, receiving a second pairing signal generated by the first sound box when the Hall device of the first sound box is close to the magnet of the sound box, and generating a pairing instruction according to the first pairing signal and the second pairing signal so as to control the sound box and the first sound box to enter a pairing state. The technical scheme of the embodiment of the invention can ensure that the sound boxes are easy to pair.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a sound box, a sound box pairing method and device, a computer readable storage medium and electronic equipment.
Background
TWS (True Wireless Stereo) changes wired connection between left and right channels of a conventional bluetooth headset into Wireless connection, thereby realizing True Wireless separation of the left and right channels.
The wireless sound boxes sold at present can be used in pairs, and a single selling mode is provided, and a mode of simultaneously selling two subsequent sets is also provided. To the sales mode of an individual, if the user needs two audio amplifiers to experience the stereo effect after pairing, the user needs to buy the two audio amplifiers separately and then pair the audio amplifiers by himself. Or, when the two paired sound boxes are mismatched, the pairing needs to be performed again.
Currently, in a general pairing mode, a long press key or a combination key is used for notifying a main control chip of a sound box, and the sound box enters a pairing mode under the control of the main control chip.
However, the key operation is very inconvenient, and the user cannot quickly master the pairing mode; in addition, as the pairing work is not performed frequently, the user can easily forget the specific pairing operation steps, and the user experience is poor.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
The embodiment of the invention aims to provide a sound box, a sound box pairing method and device, a computer readable storage medium and electronic equipment, so that the sound box pairing is easy to perform at least to a certain extent.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to a first aspect of embodiments of the present invention, there is provided an acoustic enclosure, comprising: the magnet is arranged on the surface of the sound box; the Hall device is arranged on the surface of the sound box and used for detecting the change of a magnetic field when the Hall device is close to the magnet of the first sound box so as to generate a first pairing signal; the communication module is used for communicating with the first loudspeaker box; the controller is used for acquiring the first pairing signal, sending the first pairing signal to the first sound box, receiving a second pairing signal generated by the first sound box when the Hall device of the first sound box is close to the magnet of the sound box, and generating a pairing instruction according to the first pairing signal and the second pairing signal so as to control the sound box and the first sound box to enter a pairing state.
In some embodiments, the communication module is a bluetooth communication module.
In some embodiments, the magnet and the hall device are located on a same surface of the sound box, and the magnet and the hall device are symmetrically distributed with respect to a central axis of the same surface.
In some embodiments, the sound box comprises a sound box main body and two protruding portions connected with the sound box main body and symmetrically arranged on the side of the sound box main body, the magnet and the hall device are respectively arranged on one of the protruding portions, and the hall device is connected with the controller through a wire.
In some embodiments, the two tabs are flexible tabs.
In some embodiments, the magnet is an electromagnet, and the electromagnet is connected with the controller through a lead and is electrified to work under the control of the controller.
According to a second aspect of the embodiments of the present invention, there is provided a method for pairing sound boxes, where a magnet and a hall device are disposed on the sound boxes, the method including: acquiring a first pairing signal generated by a current loudspeaker box when a Hall device of the current loudspeaker box is close to a magnet of a first loudspeaker box; communicating with the first sound box, sending the first pairing signal to the first sound box, and acquiring a communication signal sent by the first sound box; and when the communication signal contains a second pairing signal generated when the Hall device of the first sound box is close to the magnet of the current sound box, generating a pairing instruction so as to control the current sound box and the first sound box to enter a pairing state.
In some embodiments, the communication signal comprises a bluetooth communication signal; said communicate with said first loudspeaker, including: carry out wireless communication through the bluetooth with first audio amplifier.
In some embodiments, the magnet is an electromagnet, the method further comprising: and after the current sound box is started, generating a power supply signal to supply power to the electromagnet in a set first time period.
According to a third aspect of the embodiments of the present invention, there is provided an apparatus for pairing speakers, where a magnet and a hall device are disposed on the speakers, the apparatus including: the obtaining unit is used for obtaining a first pairing signal generated by the current loudspeaker box when a Hall device of the current loudspeaker box is close to the magnet of the first loudspeaker box; the communication unit is used for communicating with the first loudspeaker box, sending the first pairing signal to the first loudspeaker box and acquiring a communication signal sent by the first loudspeaker box; and the pairing unit is used for generating a pairing instruction when the communication signal contains a second pairing signal generated when the Hall device of the first sound box is close to the magnet of the current sound box, so as to control the current sound box and the first sound box to enter a pairing state.
According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for pairing sound boxes according to the second aspect of the embodiments.
According to a fifth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method for pairing speakers as described in the second aspect of the embodiments above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the technical solutions provided by some embodiments of the present invention, by arranging the magnet and the hall device on the sound box, a pairing signal can be generated when the hall device of the current sound box senses the magnet of the first sound box, and a pairing instruction is generated according to the pairing signal of the hall device and the pairing signal of the first sound box, so that the sound boxes can be paired more easily.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 schematically illustrates a schematic structural view of an acoustic enclosure according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating pairing between speakers according to one embodiment of the present invention;
FIG. 3 schematically illustrates a structural view of an acoustic enclosure according to another embodiment of the present invention;
FIG. 4 schematically illustrates a diagram of the output level of a Hall device according to one embodiment of the invention as a function of the magnetic field;
FIG. 5 schematically illustrates a flow diagram of a method for speaker pairing according to one embodiment of the invention;
FIG. 6 is a flow chart that schematically illustrates a method for loudspeaker pairing, in accordance with another embodiment of the present invention;
FIG. 7 schematically illustrates a block diagram of an apparatus for loudspeaker pairing in accordance with an embodiment of the present invention;
FIG. 8 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
As shown in fig. 1, a sound box 100 provided in the embodiment of the present invention includes:
and a magnet 101 provided on the surface of the sound box 100.
And a hall device 102 disposed on a surface of the sound box 100, for detecting a change in a magnetic field when approaching a magnet of the first sound box to generate a first pairing signal.
And a communication module (not shown) for communicating with the first speaker.
And a controller (not shown in the figure), configured to obtain the first pairing signal, send the first pairing signal to the first sound box, receive a second pairing signal generated by the first sound box when the hall device of the first sound box is close to the magnet of the sound box 100, and generate a pairing instruction according to the first pairing signal and the second pairing signal, so as to control the sound box 100 and the first sound box to enter a pairing state.
In the technical scheme of the embodiment of the invention, the magnets and the Hall devices are arranged on the sound boxes, so that when the current sound box is close to the first sound box, the Hall devices of the two sound boxes can sense the magnetic field change of the magnet of the other sound box, the two sound boxes respectively generate pairing signals, the two sound boxes can be determined to request pairing according to the pairing signals generated by the two sound boxes, and compared with a pairing mode needing key operation, the technical scheme is simpler and more convenient.
This technical scheme can make two audio amplifier get into the state of pairing simultaneously, can have shorter time window to avoid having complicated environment such as many audio amplifiers existence and other audio amplifier mismatching. The method is simple and clear, and user experience can be improved.
Among them, a Hall device (Hall Element) is a solid-state electronic device using a Hall effect, and can be used to detect a magnetic field intensity.
Specifically, as shown in fig. 1, the magnet 110 and the hall device 120 are located on the same surface of the sound box 100, and the magnet and the hall device are symmetrically distributed with respect to a central axis 130 of the same surface. The same surface may be the back of the speaker, and is not limited thereto. The middle shaft 130 is a vertical middle shaft when the sound box is flatly placed according to a set direction. As shown in fig. 1, the magnet 110 and the hall device 120 are located at the same distance from the central axis 130, which is L1. The set direction is the normal placing direction set during the design of the sound box.
As shown in fig. 2, the sound box 100 is used as the current sound box, and the sound box 200 is used as the first sound box. The first sound box is provided with a magnet 210 and a hall device 220, the magnet 210 and the hall device 220 are located on the same surface of the sound box 200, and the magnet 210 and the hall device 220 are symmetrically distributed relative to a central axis 230 of the same surface. When the same surface of the sound box 200 is also a back surface, as shown by the arrow shown in fig. 2, when the sound box 100 and the first sound box 200 are tightly attached back to back, the hall device 120 of the sound box 100 is tightly attached to the magnet 210 of the first sound box 200, and the hall device 220 of the first sound box 200 is tightly attached to the magnet 110 of the sound box 100, so that the two hall devices can sense the magnetic field change generated by the magnets of the corresponding different sound boxes, and further, because the hall effect generates a transformed level signal, the controller of the corresponding sound box can generate a pairing signal according to the level signal.
In the embodiment of the present invention, the communication module may be a bluetooth communication module. Through the bluetooth communication module, wireless communication between the speaker 100 and the speaker 200 may be performed through bluetooth.
As shown in fig. 3, in an embodiment of the present invention, the sound box 300 includes a sound box main body 301 and two protruding portions 302 connected to the sound box main body 301 and symmetrically disposed at the sides of the sound box main body 301, a magnet 310 and a hall device 320 are respectively disposed on the two protruding portions 302, and the hall device 320 is connected to a controller in the sound box main body 301 through a wire. Preferably, the two protrusions 302 may be flexible protrusions, for example, the two protrusions 302 may be disposed on two opposite sides of the main body 301 of the sound box, and are two flexible or non-flexible arm-like protrusions, the ends of which may be designed to be palm-shaped or rounded as shown in fig. 3. As shown in fig. 3, the magnet 310 and the hall device 320 are located at the same distance from the central axis 330, which is L2. The ends of the two arms are respectively provided with the magnet 310 and the Hall device 320, and the ends of the arms of the two sound boxes are tightly attached to each other, so that the sound boxes can be paired in a hand-pulling manner.
Furthermore, the two protrusions may be arranged on the same side of the main body of the enclosure, being two flexible or non-flexible protrusions like the insect antenna. The tail ends of the two antennae are respectively provided with the magnet and the Hall device, and the tail ends of the antennae of the two sound boxes are tightly attached, so that the sound boxes can be paired in a mode that the antennae collide with each other.
In one embodiment of the present invention, the magnet may be an electromagnet, and the electromagnet is connected to a controller in the sound box main body through a wire and is powered on under the control of the controller. The electromagnet may be in operation only for a set short first period of time after the loudspeaker is powered on, for example, the first period of time may be one minute. Therefore, after the sound boxes are powered on each time, the two sound boxes can be closely matched. After the sound boxes are successfully paired, the electromagnet can be powered off, so that the power consumption is reduced. The electromagnet can also be controlled by a set pulse signal, so that the magnetic field generated by the electromagnet changes according to a set rule, and an induction signal corresponding to the change rule is generated in a Hall device close to the electromagnet. Further, it can be specified that the pairing signal of the loudspeaker box can be generated only when the loudspeaker box detects that the induction signal in the hall device changes according to a set rule.
In the embodiment of the present invention, the hall device may be a switching type hall device or a linear hall device. Correspondingly, the first pairing signal and the second pairing signal may be generated from a switched hall signal or a linear hall signal. As shown in fig. 4, which is a schematic diagram of the output level of the switching type hall device when sensing the change of the magnetic field changing with the change of the magnetic field strength, it can be seen that the output level of the hall device jumps to a high level when changing according to an arrow 401, that is, the hall device is far from the magnet, and jumps to a low level when changing according to an arrow 402, that is, the hall device is close to the magnet. When the controller detects the output level jump of the Hall device, the controller can think that the induction signal of the Hall device is detected.
In the sound box provided by the embodiment of the invention, the magnet and the hall device are arranged on the sound box, so that the pairing signal can be generated when the hall device of the current sound box senses the magnet of the first sound box, and the pairing instruction can be generated according to the pairing signal of the hall device and the pairing signal of the first sound box, so that the sound box can be paired simply.
As shown in fig. 5, in the method for pairing sound boxes provided by the second aspect of the embodiment of the present invention, a magnet and a hall device are disposed on a sound box, and the method for pairing sound boxes includes:
step S502, a first pairing signal generated when the Hall device of the current sound box is close to the magnet of the first sound box is obtained.
Step S504, communicating with the first sound box, sending a first pairing signal to the first sound box, and acquiring a communication signal sent by the first sound box.
Step S506, when the communication signal contains a second pairing signal generated when the Hall device of the first sound box is close to the magnet of the current sound box, a pairing instruction is generated so as to control the current sound box and the first sound box to enter a pairing state.
In the technical scheme of the embodiment of the invention, the magnets and the Hall devices are arranged on the sound boxes, so that when the current sound box is close to the first sound box, the Hall devices of the two sound boxes can sense the magnetic field change of the magnet of the other sound box, the two sound boxes respectively generate pairing signals, the two sound boxes can be determined to request pairing according to the pairing signals generated by the two sound boxes, and compared with a pairing mode needing key operation, the technical scheme is simpler and more convenient.
In the embodiment of the present invention, the communication module may be a bluetooth communication module. The communication signal may comprise a bluetooth communication signal. In step S504, wireless communication with the first speaker may be performed through bluetooth.
In one embodiment of the present invention, the magnet may be an electromagnet, and the electromagnet is connected to a controller in the sound box main body through a wire and is powered on under the control of the controller. The electromagnet may be in operation only for a set short first period of time immediately after the loudspeaker is powered on, for example, the first period of time may be one minute. For example, the power supply signal may be generated after the current speaker is started, so as to supply power to the electromagnet for a set first time period.
Therefore, after the sound boxes are powered on each time, the two sound boxes can be closely matched. After the sound boxes are successfully paired, the electromagnet can be powered off, so that the power consumption is reduced. The electromagnet can also be controlled by a set pulse signal, so that the magnetic field generated by the electromagnet changes according to a set rule, and an induction signal corresponding to the change rule is generated in a Hall device close to the electromagnet. Further, it can be specified that the pairing signal of the loudspeaker box can be generated only when the loudspeaker box detects that the induction signal in the hall device changes according to a set rule.
In the embodiment of the present invention, the hall device may be a switching type hall device or a linear hall device. Correspondingly, the first pairing signal and the second pairing signal may be generated from a switched hall signal or a linear hall signal.
As shown in fig. 6, in the method for pairing sound boxes according to the embodiment of the present invention, after the sound boxes a and B are respectively turned on in step S601, the hall devices of the sound boxes a and B respectively sense the change of the magnetic field generated by the proximity of the magnets, so that in step S602, the states of the hall devices change. After the states of the Hall devices of the sound box A and the sound box B are changed, the controller detects the change of the states of the Hall devices in the process of carrying out master control interruption detection. In step S603, the speakers a and B are both correspondingly paired. In step S604, the audio amplifier a and the audio amplifier B that have entered the paired state communicate with each other, and when both are detected to be in the paired state, the audio amplifier a and the audio amplifier B are paired.
Since the steps of the exemplary embodiment of the method for pairing sound boxes according to the exemplary embodiment of the present invention correspond to the functional structure of the sound box, please refer to the above-mentioned embodiment of the sound box according to the present invention for details that are not disclosed in the embodiment of the present invention.
In the method for pairing the sound boxes provided by the embodiment of the invention, the magnet and the hall device are arranged on the sound boxes, so that the pairing signal can be generated when the hall device of the current sound box senses the magnet of the first sound box, and the pairing instruction can be generated according to the pairing signal of the hall device and the pairing signal of the first sound box, so that the sound boxes can be paired simply.
The following describes embodiments of the apparatus of the present invention, which can be used to perform the method for pairing speakers of the present invention. In the embodiment of the invention, the sound box is provided with the magnet and the Hall device. Referring to fig. 7, the device based on speaker pairing according to the embodiment of the present invention includes:
the obtaining unit 702 is configured to obtain a first pairing signal generated when a hall device of a current loudspeaker box approaches a magnet of a first loudspeaker box.
The communication unit 704 is configured to communicate with the first sound box, send a first pairing signal to the first sound box, and acquire a communication signal sent by the first sound box.
The pairing unit 708 is configured to generate a pairing instruction when the communication signal includes a second pairing signal generated when the hall device of the first sound box is close to the magnet of the current sound box, so as to control the current sound box and the first sound box to enter a pairing state.
For details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the embodiments of the method for pairing sound boxes described above for the details that are not disclosed in the embodiments of the apparatus of the present invention.
In the device based on loudspeaker box pairing provided by the embodiment of the invention, the magnet and the Hall device are arranged on the loudspeaker boxes, so that the pairing signal can be generated when the Hall device of the current loudspeaker box senses the magnet of the first loudspeaker box, and the pairing instruction is generated according to the pairing signal of the Hall device and the pairing signal of the first loudspeaker box, so that the loudspeaker boxes can be paired simply.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use in implementing an electronic device of an embodiment of the present invention. The computer system 800 of the electronic device shown in fig. 8 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for system operation are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable storage medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable storage medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable storage medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is enabled to implement the method for pairing sound boxes in the embodiment.
For example, the electronic device may implement the following as shown in fig. 5: step S502, a first pairing signal generated when the Hall device of the current sound box is close to the magnet of the first sound box is obtained. Step S504, communicating with the first sound box, sending a first pairing signal to the first sound box, and acquiring a communication signal sent by the first sound box. Step S506, when the communication signal contains a second pairing signal generated when the Hall device of the first sound box is close to the magnet of the current sound box, a pairing instruction is generated so as to control the current sound box and the first sound box to enter a pairing state.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (12)
1. An acoustic enclosure, comprising:
the magnet is arranged on the surface of the sound box;
the Hall device is arranged on the surface of the sound box and used for detecting the change of a magnetic field when the Hall device is close to the magnet of the first sound box so as to generate a first pairing signal;
the communication module is used for communicating with the first loudspeaker box;
the controller is used for acquiring the first pairing signal, sending the first pairing signal to the first sound box, receiving a second pairing signal generated by the first sound box when the Hall device of the first sound box is close to the magnet of the sound box, and generating a pairing instruction according to the first pairing signal and the second pairing signal so as to control the sound box and the first sound box to enter a pairing state.
2. An acoustic enclosure according to claim 1, wherein the communication module is a bluetooth communication module.
3. The acoustic enclosure of claim 1, wherein the magnet and the hall device are located on a same surface of the acoustic enclosure, and the magnet and the hall device are symmetrically distributed about a central axis of the same surface.
4. The sound box according to claim 1, wherein the sound box comprises a sound box main body and two protruding portions connected with the sound box main body and symmetrically arranged on the sides of the sound box main body, a magnet and a hall device are respectively arranged on one of the protruding portions, and the hall device is connected with the controller through a wire.
5. An acoustic enclosure according to claim 4, wherein the two projections are flexible projections.
6. An acoustic enclosure according to any one of claims 1 to 5, wherein the magnet is an electromagnet, the electromagnet is connected to the controller via a wire, and is operated by the controller when energized.
7. A method for pairing sound boxes is characterized in that a magnet and a Hall device are arranged on the sound boxes, and the method comprises the following steps:
acquiring a first pairing signal generated by a current sound box when a Hall device of the current sound box is close to a magnet of a first sound box;
communicating with the first sound box, sending the first pairing signal to the first sound box, and acquiring a communication signal sent by the first sound box;
and when the communication signal contains a second pairing signal generated when the Hall device of the first sound box is close to the magnet of the current sound box, generating a pairing instruction so as to control the current sound box and the first sound box to enter a pairing state.
8. The method of claim 7, wherein the communication signal comprises a bluetooth communication signal; said communicate with said first loudspeaker, including:
carry out wireless communication through the bluetooth with first audio amplifier.
9. The method of claim 7, wherein the magnet is an electromagnet, the method further comprising: and after the current sound box is started, generating a power supply signal to supply power to the electromagnet in a set first time period.
10. The utility model provides a device that audio amplifier paired which characterized in that, be provided with magnet and hall device on the audio amplifier, the device includes:
the obtaining unit is used for obtaining a first pairing signal generated by the current loudspeaker box when a Hall device of the current loudspeaker box is close to the magnet of the first loudspeaker box;
the communication unit is used for communicating with the first loudspeaker box, sending the first pairing signal to the first loudspeaker box and acquiring a communication signal sent by the first loudspeaker box;
and the pairing unit is used for generating a pairing instruction when the communication signal contains a second pairing signal generated by the first sound box when the Hall device of the first sound box is close to the magnet of the current sound box, so as to control the current sound box and the first sound box to enter a pairing state.
11. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out a method of loudspeaker pairing according to any one of claims 7 to 9.
12. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of loudspeaker pairing of any of claims 7 to 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010753613.8A CN112291755B (en) | 2020-07-30 | 2020-07-30 | Sound box, sound box pairing method, sound box pairing device, medium and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010753613.8A CN112291755B (en) | 2020-07-30 | 2020-07-30 | Sound box, sound box pairing method, sound box pairing device, medium and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112291755A true CN112291755A (en) | 2021-01-29 |
| CN112291755B CN112291755B (en) | 2023-12-05 |
Family
ID=74420660
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010753613.8A Active CN112291755B (en) | 2020-07-30 | 2020-07-30 | Sound box, sound box pairing method, sound box pairing device, medium and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112291755B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112911496A (en) * | 2021-03-26 | 2021-06-04 | 潍坊歌尔电子有限公司 | Pairing method of sounding components, audio system and readable storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8995241B1 (en) * | 2014-04-16 | 2015-03-31 | Samsung Electro-Mechanics Co., Ltd. | Apparatus for driving voice coil motor actuator |
| CN204616057U (en) * | 2015-06-04 | 2015-09-02 | 宁波翼动通讯科技有限公司 | Sound box system |
| CN104902383A (en) * | 2015-06-04 | 2015-09-09 | 宁波翼动通讯科技有限公司 | Loudspeaker system and using method thereof |
| CN210670425U (en) * | 2019-09-17 | 2020-06-02 | 赣州得辉达科技有限公司 | Sound box |
-
2020
- 2020-07-30 CN CN202010753613.8A patent/CN112291755B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8995241B1 (en) * | 2014-04-16 | 2015-03-31 | Samsung Electro-Mechanics Co., Ltd. | Apparatus for driving voice coil motor actuator |
| CN204616057U (en) * | 2015-06-04 | 2015-09-02 | 宁波翼动通讯科技有限公司 | Sound box system |
| CN104902383A (en) * | 2015-06-04 | 2015-09-09 | 宁波翼动通讯科技有限公司 | Loudspeaker system and using method thereof |
| CN210670425U (en) * | 2019-09-17 | 2020-06-02 | 赣州得辉达科技有限公司 | Sound box |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112911496A (en) * | 2021-03-26 | 2021-06-04 | 潍坊歌尔电子有限公司 | Pairing method of sounding components, audio system and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112291755B (en) | 2023-12-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102613283B1 (en) | How to Compensate for Directivity in Binaural Loudspeakers | |
| CN111866831A (en) | Connection control method, device, terminal equipment and system | |
| US20150036859A1 (en) | Expandable electronic device and transmission system thereof | |
| US9222964B2 (en) | Cable detection in a pin constrained connector | |
| CN112291755B (en) | Sound box, sound box pairing method, sound box pairing device, medium and electronic equipment | |
| CN109688502B (en) | Control method, device and equipment | |
| CN113759771A (en) | Four-in-one karaoke system based on cloud control | |
| CN111669683B (en) | Managing low frequency components of audio signals on a mobile computing device | |
| CN114501281B (en) | Sound adjusting method, device, electronic equipment and computer readable medium | |
| CN107278289B (en) | Dynamic adjustment of user experience based on system capabilities | |
| CN112259076A (en) | Voice interaction method and device, electronic equipment and computer readable storage medium | |
| CN115119113B (en) | Method and device for adjusting earphone contact, sound playing device and medium | |
| KR20180024881A (en) | Content providing device and power source controlling method thereof | |
| CN111711942B (en) | Electronic device, control method of electronic device, and readable storage medium | |
| CN116911017A (en) | Sound field simulation method and system based on Unity3D engine and vehicle | |
| CN114827804A (en) | Volume adjusting method and device of wireless earphone, wireless earphone and storage medium | |
| CN115866476A (en) | Sound box system | |
| CN103412503A (en) | System and method for control over vehicle stereo | |
| CN107995103A (en) | Voice conversation method, voice conversation device and electronic equipment | |
| CN112134577A (en) | Voltage control method, device, equipment and storage medium | |
| CN114546327B (en) | Method and device for obtaining sound of multimedia file, electronic equipment and storage medium | |
| US20240304068A1 (en) | Control device that provides tactile stimulus | |
| KR200319960Y1 (en) | Mouse device having means for voice output | |
| CN108536627A (en) | The control method and electronic equipment of electronic equipment | |
| CN119002620B (en) | Power consumption control circuit, power consumption control method and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |