CN112291755B - Sound box, sound box pairing method, sound box pairing device, medium and electronic equipment - Google Patents
Sound box, sound box pairing method, sound box pairing device, medium and electronic equipment Download PDFInfo
- Publication number
- CN112291755B CN112291755B CN202010753613.8A CN202010753613A CN112291755B CN 112291755 B CN112291755 B CN 112291755B CN 202010753613 A CN202010753613 A CN 202010753613A CN 112291755 B CN112291755 B CN 112291755B
- Authority
- CN
- China
- Prior art keywords
- sound box
- pairing
- magnet
- signal
- hall device
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000004891 communication Methods 0.000 claims abstract description 46
- 230000008859 change Effects 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 9
- 230000006698 induction Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 7
- 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
- 238000013459 approach Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 241000238631 Hexapoda Species 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002708 enhancing effect 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
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 application provides a sound box, a method and a device for pairing the sound boxes, a medium and electronic equipment, wherein the sound box comprises the following components: a magnet; a hall device for detecting a change in a magnetic field when the magnet is close to the first sound box to generate a first pairing signal; the communication module is used for communicating with the first sound 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 application can facilitate the pairing of the sound boxes.
Description
Technical Field
The application relates to the technical field of computers, in particular to a loudspeaker box, a loudspeaker box pairing method, a loudspeaker box pairing device, a computer readable storage medium and electronic equipment.
Background
TWS (True Wireless Stereo ) changes the wired connection between the left and right channels of a conventional Bluetooth headset into a wireless connection to achieve true wireless separation of the left and right channels.
The wireless sound boxes can be used in pairs in the current marketing mode, and the mode of selling one independent sound box or the mode of selling two later sound boxes simultaneously after the marketing mode is matched. For a sales mode of a single sound box, if a user needs two sound boxes to experience the stereo effect after pairing, the user needs to purchase the two sound boxes independently and pair the sound boxes by himself. Or when the two paired sound boxes are mismatched, the paired sound boxes need to be paired again.
In the current common pairing mode, a main control chip of the sound box is notified by long-pressing a key or combining keys, 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 grasp the pairing mode; in addition, because pairing work is not performed frequently, a user can easily forget specific pairing operation steps, and the user experience is poor.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the application and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the application aims to provide a sound box, a sound box pairing method, a sound box pairing device, a computer-readable storage medium and electronic equipment, so that the sound box pairing is easier at least to a certain extent.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
According to a first aspect of an embodiment of the present application, there is provided a sound box including: 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 magnet is close to the first sound box so as to generate a first pairing signal; the communication module is used for communicating with the first sound 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 the same surface of the sound box, and the magnet and the hall device are symmetrically distributed relative to a central axis of the same surface.
In some embodiments, the sound box comprises a sound box body and two protruding parts connected with the sound box body and symmetrically arranged at the side of the sound box body, wherein the magnet and the hall device are respectively arranged on one of the protruding parts, and the hall device is connected with the controller through a wire.
In some embodiments, the two protrusions are flexible protrusions.
In some embodiments, the magnet is an electromagnet, and the electromagnet is connected with the controller through a wire, and is electrified to work under the control of the controller.
According to a second aspect of the embodiment of the present application, 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 sound box when a Hall device of the current sound box is close to a magnet of a first sound box; the first loudspeaker box is communicated with the first loudspeaker box, the first pairing signal is sent to the first loudspeaker box, and the communication signal sent by the first loudspeaker box is obtained; and when the communication signal comprises 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 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; the communication with the first sound box comprises: and carrying out wireless communication with the first sound box through Bluetooth.
In some embodiments, the magnet is an electromagnet, the method further comprising: and generating a power supply signal after the current sound box is started so as to supply power to the electromagnet in a set first time period.
According to a third aspect of the embodiment of the present application, there is provided a device for pairing sound boxes, the sound boxes being provided with magnets and hall devices, the device comprising: the acquisition unit is used for acquiring a first pairing signal generated when the Hall device of the current sound box is close to the magnet of the first sound box; the communication unit is used for communicating with the first sound box, sending the first pairing signal to the first sound box and obtaining a communication signal sent by the first sound box; and the pairing unit is used for generating a pairing instruction when the communication signal comprises 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 application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for pairing sound boxes as described in the second aspect of the embodiments above.
According to a fifth aspect of an embodiment of the present application, there is provided an electronic apparatus including: one or more processors; and 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 according to the second aspect of the embodiments.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
according to the technical scheme provided by the embodiments of the application, the magnet and the Hall device are arranged on the sound box, so that 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 can be generated according to the pairing signal of the current sound box and the pairing signal of the first sound box, so that the pairing of the sound boxes is simpler.
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 application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
fig. 1 schematically shows a schematic structure of a sound box according to an embodiment of the application;
FIG. 2 schematically illustrates a schematic diagram of inter-enclosure pairing according to one embodiment of the application;
fig. 3 schematically shows a schematic structural view of a sound box according to another embodiment of the present application;
FIG. 4 schematically illustrates a schematic diagram of the output level of a Hall device as a function of magnetic field, in accordance with one embodiment of the present application;
FIG. 5 schematically illustrates a flow chart of a method of speaker pairing according to one embodiment of the application;
FIG. 6 schematically illustrates a flow chart of a method of speaker pairing according to another embodiment of the application;
fig. 7 schematically shows a block diagram of an apparatus for pairing speakers according to one embodiment of the application;
fig. 8 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many 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 the 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 give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they 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 order of actual execution may be changed according to actual situations.
As shown in fig. 1, a sound box 100 provided in an embodiment of the present application includes:
and a magnet 101 provided on the surface of the sound box 100.
The hall device 102 is disposed on the surface of the sound box 100, and is configured to detect a change in 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.
A communication module (not shown in the figure) for communicating with the first sound box.
And the controller (not shown in the figure) is used for acquiring the first pairing signal and 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 100, and generating 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.
According to the technical scheme, the magnet and the Hall devices are arranged on the sound box, 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 side, the two sound boxes respectively generate the pairing signals, the two sound boxes can be determined to be in request of 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 simple and convenient.
According to the technical scheme, two sound boxes can enter a pairing state at the same time, and a shorter time window can be provided, so that mispairing with other sound boxes in complex environments such as the existence of a plurality of sound boxes is avoided. The method is simple and clear, and the user experience can be improved.
Among them, a Hall Element (Hall Element) is a solid-state electronic device that uses the Hall effect and can be used to detect the magnetic field strength.
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 surface of the sound box, and is not limited thereto. The center shaft 130 is a vertical center shaft when the sound box is horizontally placed according to a set direction. As shown in fig. 1, the distance between the magnet 110 and the hall device 120 and the center axis 130 is L1. The setting direction is the normal setting direction set during the design of the sound box.
As shown in fig. 2, the sound box 100 is taken as a current sound box, and the sound box 200 is taken as a 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 center axis 230 on the same surface. When the same surface of the sound box 200 is also the back surface, as shown by the arrow in fig. 2, when the sound box 100 and the first sound box 200 are closely attached back to back, the hall device 120 of the sound box 100 is closely attached to the magnet 210 of the first sound box 200, and the hall device 220 of the first sound box 200 is closely attached to the magnet 110 of the sound box 100, so that both hall devices can sense the magnetic field changes 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 application, the communication module may be a bluetooth communication module. Through this bluetooth communication module, can carry out radio communication through bluetooth between audio amplifier 100 and the audio amplifier 200.
As shown in fig. 3, in one embodiment of the present application, the speaker 300 includes a speaker body 301 and two protrusions 302 connected to the speaker body 301 and symmetrically disposed at sides of the speaker body 301, and the magnet 310 and the hall device 320 are respectively disposed on the two protrusions 302, and the hall device 320 is connected to a controller in the speaker body 301 through a wire. Preferably, the two protrusions 302 may be flexible protrusions, for example, the two protrusions 302 may be disposed at opposite sides of the cabinet body 301, be two flexible or non-flexible arm-like protrusions, and the ends of the arms may be designed as palm shapes or circular shapes as shown in fig. 3. As shown in fig. 3, the magnet 310 and the hall device 320 are the same distance L2 from the center axis 330. The magnet 310 and the hall device 320 are respectively arranged at the tail ends of the two arms, and the two sound boxes can be paired in a hand-in-hand manner by tightly attaching the tail ends of the arms of the two sound boxes.
Furthermore, the two protrusions may be provided on the same side of the enclosure body, as two flexible or non-flexible protrusions resembling the antenna of an insect. The magnet and the Hall device are respectively arranged at the tail ends of the two antenna, and the two sound boxes can be paired in a manner of collision of the antenna by tightly attaching the tail ends of the antenna of the two sound boxes.
In one embodiment of the application, the magnet may be an electromagnet, which is connected to a controller in the main body of the sound box through a wire, and is energized under the control of the controller. The electromagnet may be in operation only for a set short first period of time after the speaker is powered up, for example, the first period of time may be one minute. Thus, after the sound box is electrified, the two sound boxes can be closely matched. After the loudspeaker box is successfully paired, the electromagnet can be powered off, so that the power consumption is reduced. The electromagnet can be controlled by a set pulse signal, so that the magnetic field generated by the electromagnet is changed 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 may be provided that the pairing signal of the sound box can be generated only when the sound box detects that the sensing signal in the hall device changes according to a set rule.
In the embodiment of the application, the Hall device can be a switch type Hall device or a linear Hall device. Correspondingly, the first pairing signal and the second pairing signal may be generated according to a switched hall signal or a linear hall signal. As shown in fig. 4, which is a schematic diagram of a switching type hall device in which the output level changes with the change of the magnetic field intensity when the change of the magnetic field is induced, it can be seen that the output level of the hall device jumps to a high level when the change of the arrow 401 is shown, i.e. the hall device is far away from the magnet, and the output level of the hall device jumps to a low level when the change of the arrow 402 is shown, i.e. the hall device is close to the magnet. The controller can consider that the sensing signal of the Hall device is detected when detecting the jump of the output level of the Hall device.
According to the sound box provided by the embodiment of the application, 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 current sound box and the pairing signal of the first sound box, so that the pairing of the sound boxes is simpler.
As shown in fig. 5, in the method for pairing sound boxes provided in the second aspect of the embodiment of the present application, 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 a Hall device of a current sound box is close to a magnet of a first sound box is obtained.
Step S504, the first speaker is communicated with, a first pairing signal is sent to the first speaker, and a communication signal sent by the first speaker is obtained.
Step S506, when the communication signal comprises 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 to control the current sound box and the first sound box to enter a pairing state.
According to the technical scheme, the magnet and the Hall devices are arranged on the sound box, 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 side, the two sound boxes respectively generate the pairing signals, the two sound boxes can be determined to be in request of 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 simple and convenient.
In the embodiment of the present application, 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 application, the magnet may be an electromagnet, which is connected to a controller in the main body of the sound box through a wire, and is energized under the control of the controller. The electromagnet may be in operation only for a set short first period of time immediately after the sound box is powered up, for example, the first period of time may be one minute. For example, after the current sound box is started, a power supply signal may be generated to supply power to the electromagnet in a set first time period.
Thus, after the sound box is electrified, the two sound boxes can be closely matched. After the loudspeaker box is successfully paired, the electromagnet can be powered off, so that the power consumption is reduced. The electromagnet can be controlled by a set pulse signal, so that the magnetic field generated by the electromagnet is changed 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 may be provided that the pairing signal of the sound box can be generated only when the sound box detects that the sensing signal in the hall device changes according to a set rule.
In the embodiment of the application, the Hall device can be a switch type Hall device or a linear Hall device. Correspondingly, the first pairing signal and the second pairing signal may be generated according to a switched hall signal or a linear hall signal.
As shown in fig. 6, in a method for pairing sound boxes according to an embodiment of the present application, after the sound box a and the sound box B are turned on in step S601, the hall devices of the sound box a and the sound box B each sense a change in magnetic field generated by the proximity of the magnet, so that in step S602, the state of the hall devices changes. After the state of the Hall devices of the sound box A and the sound box B is changed, the controller detects the state change of the Hall devices in the process of detecting the interruption of the main control. In step S603, both the sound box a and the sound box B enter the pairing state correspondingly. In step S604, the sound box a and the sound box B that enter the pairing state communicate with each other, and after detecting that they are in the pairing state, pairing of the sound box a and the sound box B is performed.
Since the steps of the exemplary embodiment of the method for pairing speakers according to the exemplary embodiment of the present application correspond to the functional structures of the speakers, for details not disclosed in the embodiments of the present application, please refer to the embodiments of the speakers according to the present application.
In the method for pairing the sound boxes provided by the embodiment of the application, the magnet and the Hall device are arranged on the sound boxes, so that pairing signals can be generated when the Hall device of the current sound box senses the magnet of the first sound box, and pairing instructions can be generated according to the pairing signals of the magnet and the Hall device of the current sound box, so that the pairing of the sound boxes is simpler.
The following describes an embodiment of the apparatus of the present application, which may be used to perform the method for pairing speakers according to the present application. In the embodiment of the application, the sound box is provided with a magnet and a Hall device. Referring to fig. 7, an apparatus based on speaker pairing according to an embodiment of the present application includes:
the acquiring unit 702 is configured to acquire a first pairing signal generated when the hall device of the current speaker approaches the magnet of the first speaker.
And the communication unit 704 is configured to communicate with the first speaker, send a first pairing signal to the first speaker, and obtain a communication signal sent by the first speaker.
And 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 approaches 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.
Since each functional module of the device based on speaker pairing according to the exemplary embodiment of the present application corresponds to a step of the exemplary embodiment of the method for speaker pairing described above, for details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method for speaker pairing described above according to the present application.
In the device based on the pairing of the sound boxes, provided by the embodiment of the application, the magnet and the Hall device are arranged on the sound boxes, so that 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 can be generated according to the pairing signal of the device and the pairing signal of the first sound box, so that the pairing of the sound boxes is simpler.
Referring now to FIG. 8, there is illustrated a schematic diagram of a computer system 800 suitable for use in implementing an electronic device of an embodiment of the present application. The computer system 800 of the electronic device shown in fig. 8 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU) 801 that can perform various appropriate actions and processes according to 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 required for system operation are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, mouse, etc.; an output portion 807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 808 including a hard disk or 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. The drive 810 is also connected to the I/O interface 805 as needed. 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 needed so that a computer program read out therefrom is mounted into the storage section 808 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application 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 shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 801.
The computer readable storage medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this document, 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 application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 flowcharts 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 application. 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 involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable storage medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer-readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the method of speaker pairing as described in the above embodiments.
For example, the electronic device may implement the method as shown in fig. 5: step S502, a first pairing signal generated when a Hall device of a current sound box is close to a magnet of a first sound box is obtained. Step S504, the first speaker is communicated with, a first pairing signal is sent to the first speaker, and a communication signal sent by the first speaker is obtained. Step S506, when the communication signal comprises 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 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 a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (12)
1. A sound box, characterized in that the sound box comprises:
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 magnet is close to the first sound box so as to generate a first pairing signal;
the communication module is used for communicating with the first sound 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 magnet is an electromagnet, a magnetic field generated by the electromagnet changes according to a set rule, and the sound box detects that an induction signal in the Hall device changes according to the set rule to generate a first pairing signal of the sound box.
2. The loudspeaker of claim 1, wherein the communication module is a bluetooth communication module.
3. The loudspeaker of claim 1, wherein the magnet and the hall device are located on a same surface of the loudspeaker, and wherein the magnet and the hall device are symmetrically disposed about a central axis of the same surface.
4. The sound box according to claim 1, wherein the sound box comprises a sound box body and two protruding parts which are connected with the sound box body and symmetrically arranged at the side of the sound box body, a magnet and a hall device are respectively arranged on one of the protruding parts, and the hall device is connected with the controller through a wire.
5. The loudspeaker of claim 4, wherein the two protrusions are flexible protrusions.
6. A loudspeaker according to any one of claims 1 to 5, wherein the electromagnet is connected to the controller by a wire and is energised under the control of the controller.
7. A method of pairing speakers, wherein a magnet and a hall device are disposed on the speakers, the method comprising:
acquiring a first pairing signal generated by a current sound box when a Hall device of the current sound box is close to the magnet of a first sound box;
the first loudspeaker box is communicated with the first loudspeaker box, the first pairing signal is sent to the first loudspeaker box, and the communication signal sent by the first loudspeaker box is obtained;
when the communication signal comprises 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, a pairing instruction is generated so as to control the current sound box and the first sound box to enter a pairing state;
the magnet is an electromagnet, and a magnetic field generated by the electromagnet changes according to a set rule, so that the current loudspeaker box detects that an induction signal in the Hall device changes according to the set rule, and a first pairing signal of the current loudspeaker box is generated.
8. The method of claim 7, wherein the communication signal comprises a bluetooth communication signal; the communication with the first sound box comprises:
and carrying out wireless communication with the first sound box through Bluetooth.
9. The method of claim 7, wherein the magnet is an electromagnet, the method further comprising: and generating a power supply signal after the current sound box is started so as to supply power to the electromagnet in a set first time period.
10. An apparatus for pairing a sound box, wherein a magnet and a hall device are disposed on the sound box, the apparatus comprising:
the acquisition unit is used for acquiring a first pairing signal generated when the Hall device of the current sound box is close to the magnet of the first sound box;
the communication unit is used for communicating with the first sound box, sending the first pairing signal to the first sound box and obtaining a communication signal sent by the first sound box;
the pairing unit is used for generating a pairing instruction when the communication signal comprises 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;
the magnet is an electromagnet, and a magnetic field generated by the electromagnet changes according to a set rule, so that the current loudspeaker box detects that an induction signal in the Hall device changes according to the set rule, and a first pairing signal of the current loudspeaker box is generated.
11. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements a method of pairing sound boxes 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 that, 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-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 CN112291755A (en) | 2021-01-29 |
| CN112291755B true 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) |
Families Citing this family (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 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112291755A (en) | 2021-01-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10069540B2 (en) | Method and apparatus for controlling and powering an electronic accessory from a mobile digital device | |
| US20160094061A1 (en) | Cascading power for accessories | |
| TW201134237A (en) | System and method of providing three dimensional sound at a wireless device | |
| CN111866831A (en) | Connection control method, device, terminal equipment and system | |
| KR20160014991A (en) | Audio deivce | |
| EP3167377A1 (en) | Methods, systems, and media for controlling a bi-directional hdmi port | |
| CN112291755B (en) | Sound box, sound box pairing method, sound box pairing device, medium and electronic equipment | |
| KR20140029736A (en) | Apparatus and method for card payment using mobile terminal | |
| KR20190037834A (en) | Electronic device having a ground for an ear set | |
| CN106686519B (en) | Stereo pairing method and device for audio playing equipment and terminal | |
| KR20200045908A (en) | an electronic device for supporting short-range wireless transmission using inductance a first coil and a second coil positioned next to the first coil | |
| CN105691327B (en) | In-vehicle systems for smart devices, smart devices and car docks | |
| CN112954793B (en) | Positioning method, positioning device, terminal and storage medium | |
| US10340728B2 (en) | Electronic device and method for charging a battery of the electronic device | |
| KR20180024881A (en) | Content providing device and power source controlling method thereof | |
| CN111711942B (en) | Electronic device, control method of electronic device, and readable storage medium | |
| KR20200041720A (en) | electronic device and power control method for wireless charging | |
| CN111770415B (en) | Method and device for switching loudspeaker and earphone | |
| CN114356030A (en) | Keyboard stand kit, electronic device and control method and device thereof | |
| CN115225121A (en) | Bluetooth data output method, device, electronic device and storage medium | |
| CN114827804A (en) | Volume adjusting method and device of wireless earphone, wireless earphone and storage medium | |
| KR102396558B1 (en) | Earjack connection device for earphone antenna and electronic apparatus including the earjack connection device | |
| CN112134577A (en) | Voltage control method, device, equipment and storage medium | |
| KR200319960Y1 (en) | Mouse device having means for voice output | |
| 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 |