[go: up one dir, main page]

CN114430528B - Sound data playing method and device, electronic equipment and storage medium - Google Patents

Sound data playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114430528B
CN114430528B CN202111551643.1A CN202111551643A CN114430528B CN 114430528 B CN114430528 B CN 114430528B CN 202111551643 A CN202111551643 A CN 202111551643A CN 114430528 B CN114430528 B CN 114430528B
Authority
CN
China
Prior art keywords
intelligent
sound data
distance
bluetooth
determining
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
Application number
CN202111551643.1A
Other languages
Chinese (zh)
Other versions
CN114430528A (en
Inventor
张文轩
马颖江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111551643.1A priority Critical patent/CN114430528B/en
Publication of CN114430528A publication Critical patent/CN114430528A/en
Application granted granted Critical
Publication of CN114430528B publication Critical patent/CN114430528B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a playing method, a device, electronic equipment and a storage medium of sound data, wherein first position information of Bluetooth playing equipment is obtained; determining distance information between the Bluetooth playing device and intelligent devices in a preset range under the condition that the distance between the Bluetooth playing device and the electronic device is larger than a preset distance based on the first position information; determining a target intelligent device based on the distance information; and sending the sound data to the target intelligent device so that the target intelligent device sends the sound data to the Bluetooth playing device.

Description

Sound data playing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of home equipment control technologies, and in particular, to a method and apparatus for playing sound data, an electronic device, and a storage medium.
Background
With the continuous development of intelligent home appliances, each electric appliance in the home is basically provided with an intelligent system. The most basic function in the intelligent device has a Bluetooth function, so that people can use the Bluetooth function to enable the people to need to act more conveniently in daily life.
After the Bluetooth is connected with the wireless Bluetooth headset, a user can make homework and cook at home without being influenced by the headset wire while making calls, listening to music and other activities. However, bluetooth has a certain transmission distance, and when people wear bluetooth equipment and play equipment far away, bluetooth can disconnect or signal degradation, can cause inconvenience to the user again.
Disclosure of Invention
The present application provides a method, an apparatus, an electronic device, and a storage medium for playing sound data, which determine distance information between a bluetooth playing device and an intelligent device within a preset range by determining that a distance between the bluetooth playing device and the electronic device is greater than a preset distance based on the first location information; determining a target intelligent device based on the distance information; the sound data is sent to the target intelligent device, so that the target intelligent device sends the sound data to the Bluetooth playing device, the target intelligent device can be automatically switched through the position of the Bluetooth playing device, the Bluetooth playing device and the electronic device are kept in a connection state, and the problem that Bluetooth is disconnected or a signal becomes worse when the distance is far can be solved.
The application provides a playing method of sound data, which comprises the following steps:
acquiring first position information of Bluetooth playing equipment;
determining distance information between the Bluetooth playing device and intelligent devices in a preset range under the condition that the distance between the Bluetooth playing device and the electronic device is larger than a preset distance based on the first position information;
determining a target intelligent device based on the distance information;
and sending the sound data to the target intelligent device so that the target intelligent device sends the sound data to the Bluetooth playing device.
In some embodiments, the method further comprises:
judging whether sound data transmission exists between the Bluetooth playing device and the electronic device or not;
and under the condition that sound data transmission exists between the Bluetooth playing device and the electronic device, controlling the intelligent device to be in a state of standing by to receive the sound data.
In some embodiments, the determining the distance information between the bluetooth playback device and the smart device within the preset range includes:
acquiring second position information of each intelligent device in a preset range;
and determining distance information between the Bluetooth playing device and each intelligent device based on the first position information and the second position information.
In some embodiments, the determining the target smart device based on the distance information includes:
determining the size relation of the distance between the Bluetooth playing device and each intelligent device based on the distance information;
determining a distance minimum based on the magnitude relation;
and determining the intelligent device corresponding to the minimum distance as a target intelligent device.
In some embodiments, the electronic device includes any one of: mobile terminal, intelligent lock, intelligent cat eye and panel computer.
In some embodiments, the electronic device is connected to the smart device in a wireless communication manner, and the smart device is connected to the bluetooth playing device in a bluetooth communication manner.
The embodiment of the application provides a playing device of sound data, which comprises:
the first acquisition module is used for acquiring first position information of the Bluetooth playing device;
the first determining module is used for determining distance information between the Bluetooth playing device and the intelligent device in a preset range under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information;
the second determining module is used for determining the target intelligent equipment based on the distance information;
and the sending module is used for sending the sound data to the target intelligent equipment so that the target intelligent equipment can send the sound data to the Bluetooth playing equipment.
An embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the method for playing sound data according to any one of the above-mentioned embodiments is executed.
An embodiment of the present application provides a storage medium storing a computer program executable by one or more processors, and configured to implement a method for playing sound data according to any one of the foregoing embodiments.
According to the sound data playing method, the sound data playing device, the electronic equipment and the storage medium, when the distance between the Bluetooth playing equipment and the electronic equipment is determined to be larger than the preset distance based on the first position information, the distance information between the Bluetooth playing equipment and the intelligent equipment in the preset range is determined; determining a target intelligent device based on the distance information; the sound data is sent to the target intelligent device, so that the target intelligent device sends the sound data to the Bluetooth playing device, the target intelligent device can be automatically switched through the position of the Bluetooth playing device, the Bluetooth playing device and the electronic device are kept in a connection state, and the problem that Bluetooth is disconnected or a signal becomes worse when the distance is far can be solved.
Drawings
The application will be described in more detail hereinafter on the basis of embodiments and with reference to the accompanying drawings.
Fig. 1 is a schematic implementation flow chart of a method for playing sound data according to an embodiment of the present application;
fig. 2 is a schematic implementation flow chart of another method for playing sound data according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a sound data playing device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application.
In the drawings, like parts are given like reference numerals, and the drawings are not drawn to scale.
Detailed Description
The present application will be further described in detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present application more apparent, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
If a similar description of "first\second\third" appears in the application document, the following description is added, in which the terms "first\second\third" are merely distinguishing between similar objects and do not represent a particular ordering of the objects, it being understood that the "first\second\third" may be interchanged in a particular order or precedence, where allowed, to enable embodiments of the application described herein to be practiced in an order other than that illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
Based on the problems existing in the related art, the embodiment of the application provides a sound data playing method, which is applied to electronic equipment, wherein the electronic equipment can be a mobile terminal, a computer, a cat eye device, an intelligent door lock and the like. The functions realized by the sound data playing method provided by the embodiment of the application can be realized by calling the program codes by the processor of the electronic equipment, wherein the program codes can be stored in a computer storage medium.
An embodiment of the present application provides a method for playing sound data, and fig. 1 is a schematic implementation flow chart of the method for playing sound data provided in the embodiment of the present application, as shown in fig. 1, including:
step S1, first position information of Bluetooth playing equipment is obtained.
In the embodiment of the application, the Bluetooth playing device can be a wireless Bluetooth headset, and when the Bluetooth playing device is worn by a user to move, the Bluetooth playing device is enabled to move. In the embodiment of the application, the positioning system in the home can acquire the first position information of the Bluetooth playing device in real time and send the first position information to the electronic device, so that the electronic device acquires the first position information of the Bluetooth playing device. The Bluetooth playing device is connected with the electronic device, and sound data are played through the Bluetooth playing device.
Step S2, determining distance information between the Bluetooth playing device and intelligent devices in a preset range under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information;
in the embodiment of the application, the positioning system in the home can also acquire and position the electronic equipment to determine the self-position information of the electronic equipment, or the electronic equipment can position in real time to determine the self-position information. In the embodiment of the application, after the electronic device acquires the first position information, the distance between the Bluetooth playing device and the electronic device can be determined based on the first position information and the self position information.
In the embodiment of the application, the preset distance is stored in the electronic equipment, and when the preset distance is exceeded, the Bluetooth connection between the electronic equipment and the Bluetooth playing equipment has faults, such as disconnection or signal difference of the Bluetooth connection. The preset distance may be set according to bluetooth connection capability of the electronic device.
In the embodiment of the application, when the distance between the electronic device and the Bluetooth playing device is larger than the preset distance, the Bluetooth connection is disconnected or the signal is deteriorated.
In the embodiment of the application, the preset range can be a range corresponding to a house type diagram, and the intelligent equipment can be an intelligent air conditioner, a refrigerator, a washing machine and the like.
In the embodiment of the application, the second position information of each intelligent device in the preset range can be acquired; and determining distance information between the Bluetooth playing device and each intelligent device based on the first position information and the second position information.
And step S3, determining the target intelligent equipment based on the distance information.
In the embodiment of the application, the size relation of the distance between the Bluetooth playing device and each intelligent device is determined based on the distance information; determining a distance minimum based on the magnitude relation; and determining the intelligent device corresponding to the minimum distance as a target intelligent device. Of course, in some embodiments, the distance threshold may be set, and when the distance between the smart device and the bluetooth playing device is within the distance threshold, one smart device may be selected as the target smart device at random.
And S4, sending the sound data to the target intelligent device so that the target intelligent device sends the sound data to the Bluetooth playing device.
In the embodiment of the application, the sound data may be music data, call data, and sound reminding data of the cat eye device.
In the embodiment of the application, in order to avoid disconnection of a link or signal deterioration caused by a long distance between the Bluetooth playing device and the electronic device, the electronic device sends sound data to the target intelligent device, the target intelligent device and the Bluetooth playing device are matched with Bluetooth connection in real time, and then the sound data is sent to the Bluetooth playing device.
According to the sound data playing method, when the distance between the Bluetooth playing device and the electronic device is determined to be larger than the preset distance based on the first position information, the distance information between the Bluetooth playing device and the intelligent device in the preset range is determined; determining a target intelligent device based on the distance information; the sound data is sent to the target intelligent device, so that the target intelligent device sends the sound data to the Bluetooth playing device, the target intelligent device can be automatically switched through the position of the Bluetooth playing device, the Bluetooth playing device and the electronic device are kept in a connection state, and the problem that Bluetooth is disconnected or a signal becomes worse when the distance is far can be solved.
The sound data playing method provided by the embodiment of the application can be applied to the following scene, when the Bluetooth headset worn by a user is closer to a certain intelligent device and is farther from an electronic device, the Bluetooth headset can automatically switch Bluetooth pairing objects, and when the Bluetooth pairing objects are switched, the data of the last pairing object can be transmitted to a new pairing object by utilizing WiFi, so that the Bluetooth headset can be continuously used, and the problem that the Bluetooth headset is invalid due to the distance is solved.
The method for playing sound data provided by the embodiment of the application can be applied to another scene, when a customer wears a Bluetooth headset to listen to songs or make phone calls and other activities, if intelligent equipment such as an intelligent door lock or an intelligent cat eye needs to remind at this time, the reminding function of the intelligent equipment is influenced when the user receives the reminding function of the intelligent equipment because the user wears the headset to do other activities, the information needed to be reminded by the intelligent equipment is firstly transmitted to the intelligent equipment connected with the user through WiFi, and then the information is transmitted to equipment currently paired with the user through Bluetooth, so that the user can not miss the reminding information of the intelligent equipment.
In some embodiments, prior to step S1, the method further comprises:
step S11, judging whether sound data transmission exists between the Bluetooth playing device and the electronic device;
step S12, controlling the intelligent device to be in a state of standing by to receive the sound data under the condition that the sound data transmission exists between the bluetooth playing device and the electronic device.
In the embodiment of the application, the electronic equipment can maintain the connection with the intelligent equipment and transmit the sound data to the intelligent equipment at any time.
In some embodiments, the electronic device is connected to the smart device in a wireless communication manner, and the smart device is connected to the bluetooth playing device in a bluetooth communication manner.
In the embodiment of the present application, the wireless communication connection may be WIFI.
In the embodiment of the application, the electronic equipment can be a mobile terminal, an intelligent door lock, an intelligent cat eye, a tablet personal computer and the like.
Based on the foregoing embodiments, in the embodiments of the present application, a method for playing sound data is provided, and fig. 2 is a schematic implementation flow chart of another method for playing sound data provided in the embodiment of the present application, as shown in fig. 2, where the method includes:
step S101, the user moves.
Step S102, the intelligent system judges the position of the user.
Step S103, there is a smart device closer to the user.
Step S104, the data being played by the user is transmitted to the device with the closer distance through the WIFI.
Step S105, the connection with bluetooth is converted into a closer device.
In the embodiment of the application, if the intelligent doorbell or the cat eye has a prompt, the prompt is transmitted to the nearest equipment in the same way, and the message is transmitted to the earphone.
After the user connects the Bluetooth headset, the intelligent devices in the home are ready to receive the information when playing music or making a call, and when the positioning system determines that the intelligent device which is closest to the user is far away from the playing device connected with the user, for example, the intelligent refrigerator or the intelligent television, the playing device data which is originally connected with the user is transmitted to the device which is closest to the user at present by utilizing WiFi, so that the user can not be affected by activities such as listening to songs or making a call by using the Bluetooth headset even without carrying the mobile terminal to each room. The main that utilizes is the cooperation that positioning system and bluetooth pair, when the bluetooth headset that the user wore is nearer to a certain smart machine distance, can automatic switch over bluetooth pair object, and when bluetooth pair object switched over, utilize wiFi can come with the data transfer of last pair object to new pair object, just so can continue to use bluetooth headset, solved because the distance leads to bluetooth headset to pair the problem of inefficacy.
Another scenario is when the customer wears bluetooth headset and is listening to song or when activities such as making a telephone, when this time if intelligent equipment such as intelligent lock or intelligent cat eye is to carry out the warning, can influence the user and receive these intelligent equipment's warning function because the user is wearing the earphone and is carrying out other activities, the information that the intelligent equipment needs to remind is firstly transmitted to the intelligent equipment who is connected with the user through wiFi this time, then pass through bluetooth with information transfer to with the current paired equipment of user in, just so can let the user can not miss the message that intelligent equipment reminded.
According to the sound data playing method provided by the embodiment of the application, when a user wears the Bluetooth device to move in a home, the Bluetooth can always keep a connection state no matter which room is in, and activities such as song listening or phone call are not affected. When the user wears the earphone and presses the doorbell or the intelligent cat eye to start reminding, the user is not influenced to receive reminding.
Based on the foregoing embodiments, the embodiments of the present application provide a playing device for sound data, where each module included in the device and each unit included in each module may be implemented by a processor in a computer device; of course, the method can also be realized by a specific logic circuit; in practice, the processor may be a central processing unit (CPU, central Processing Unit), a microprocessor (MPU, microprocessor Unit), a digital signal processor (DSP, digital Signal Processing), or a field programmable gate array (FPGA, field Programmable Gate Array), or the like.
Fig. 3 is a schematic structural diagram of a sound data playing device according to an embodiment of the present application, and as shown in fig. 3, a sound data playing device 300 includes:
a first obtaining module 301, configured to obtain first location information of a bluetooth playing device;
a first determining module 302, configured to determine distance information between the bluetooth playing device and an intelligent device within a preset range when determining, based on the first location information, that a distance between the bluetooth playing device and the electronic device is greater than a preset distance;
a second determining module 303, configured to determine a target smart device based on the distance information;
and the sending module 304 is configured to send sound data to the target smart device, so that the target smart device sends the sound data to the bluetooth playing device.
In some embodiments, the playing device of sound data further includes:
the judging module is used for judging whether sound data transmission exists between the Bluetooth playing device and the electronic device or not;
and the first control module is used for controlling the intelligent device to be in a state of standing by to receive the sound data under the condition that the Bluetooth playing device and the electronic device have sound data transmission.
In some embodiments, the first determining module includes:
the acquisition unit is used for acquiring second position information of each intelligent device in a preset range;
and the first determining unit is used for determining the distance information between the Bluetooth playing device and each intelligent device based on the first position information and the second position information.
In some embodiments, the second determining module comprises:
a second determining unit, configured to determine a size relationship of a distance between the bluetooth playing device and each intelligent device based on the distance information;
a third determining unit configured to determine a distance minimum value based on the magnitude relation;
and the fourth determining unit is used for determining the intelligent device corresponding to the minimum distance value as a target intelligent device.
In some embodiments, the second determining unit comprises:
a fifth determining unit configured to determine a distance value smaller than a distance threshold value in the distance information;
and a sixth determining unit, configured to use one intelligent device from the intelligent devices corresponding to the distance value as a target intelligent device.
In some embodiments, the electronic device includes any one of: mobile terminal, intelligent lock, intelligent cat eye and panel computer.
In some embodiments, the electronic device is connected to the smart device in a wireless communication manner, and the smart device is connected to the bluetooth playing device in a bluetooth communication manner.
It should be noted that, in the embodiment of the present application, if the above-mentioned playing method of sound data is implemented in the form of a software function module, and sold or used as a separate product, the sound data may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present application provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the sound data playing method provided in the above embodiment.
The embodiment of the application provides electronic equipment; fig. 4 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application, as shown in fig. 4, the electronic device 400 includes: a processor 401, at least one communication bus 402, a user interface 403, at least one external communication interface 404, a memory 405. Wherein communication bus 402 is configured to enable connected communications between these components. The user interface 403 may include a display screen, and the external communication interface 404 may include a standard wired interface and a wireless interface, among others. The processor 401 is configured to execute a program of a playback method of sound data stored in a memory to implement the steps in the playback method of sound data provided in the above-described embodiment.
It should be noted here that: the description of the storage medium and the electronic device embodiments above is similar to that of the method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, please refer to the description of the method embodiments of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, object or apparatus comprising such element.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied essentially or in part in the form of a software product stored in a storage medium, including instructions for causing a controller to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The foregoing is merely an embodiment of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. A method for playing sound data, which is applied to an electronic device, the electronic device comprising: the intelligent door lock or the intelligent cat eye, the sound data is reminding information of the intelligent door lock or the intelligent cat eye, and the method comprises the following steps:
judging whether sound data transmission exists between the Bluetooth playing device and the electronic device or not; controlling the intelligent device to be in a state of standing by to receive the sound data under the condition that the Bluetooth playing device and the electronic device have sound data transmission;
acquiring first position information of Bluetooth playing equipment;
determining distance information between the bluetooth playing device and the intelligent device in a preset range under the condition that the distance between the bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information, wherein determining the distance information between the bluetooth playing device and the intelligent device in the preset range comprises the following steps: acquiring second position information of each intelligent device in a preset range; determining distance information between the Bluetooth playing device and each intelligent device based on the first position information and the second position information;
determining a target intelligent device based on the distance information;
and sending the sound data to the target intelligent device so that the target intelligent device sends the sound data to the Bluetooth playing device.
2. The method of claim 1, wherein the determining the target smart device based on the distance information comprises:
determining the size relation of the distance between the Bluetooth playing device and each intelligent device based on the distance information;
determining a distance minimum based on the magnitude relation;
and determining the intelligent device corresponding to the minimum distance as a target intelligent device.
3. The method of claim 1, wherein the determining the target smart device based on the distance information comprises:
determining a distance value smaller than a distance threshold in the distance information;
and taking one intelligent device in the intelligent devices corresponding to the distance value as a target intelligent device.
4. The method of claim 1, wherein the electronic device is in a wireless communication connection with the smart device and the smart device is in a bluetooth communication connection with the bluetooth playback device.
5. A playback apparatus of sound data, characterized by being applied to an electronic device, the electronic device comprising: the intelligent door lock or the intelligent cat eye, sound data is intelligent door lock or intelligent cat eye's warning message, include:
the judging module is used for judging whether sound data transmission exists between the Bluetooth playing equipment and the electronic equipment;
the first control module is used for controlling the intelligent device to be in a state of standing by to receive the sound data under the condition that the Bluetooth playing device and the electronic device have sound data transmission;
the first acquisition module is used for acquiring first position information of the Bluetooth playing device;
the first determining module is used for determining distance information between the Bluetooth playing device and the intelligent device in a preset range under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information;
the second determining module is used for determining the target intelligent equipment based on the distance information;
and the sending module is used for sending the sound data to the target intelligent equipment so that the target intelligent equipment can send the sound data to the Bluetooth playing equipment.
6. An electronic device, comprising:
a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, performs the method of playing sound data according to any one of claims 1 to 4.
7. A storage medium storing a computer program executable by one or more processors for implementing a method of playing sound data according to any one of claims 1 to 4.
CN202111551643.1A 2021-12-17 2021-12-17 Sound data playing method and device, electronic equipment and storage medium Active CN114430528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111551643.1A CN114430528B (en) 2021-12-17 2021-12-17 Sound data playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111551643.1A CN114430528B (en) 2021-12-17 2021-12-17 Sound data playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114430528A CN114430528A (en) 2022-05-03
CN114430528B true CN114430528B (en) 2023-08-11

Family

ID=81312035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111551643.1A Active CN114430528B (en) 2021-12-17 2021-12-17 Sound data playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114430528B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550505B (en) * 2022-09-22 2024-02-20 维沃移动通信有限公司 Incoming call processing method and device
CN115499818B (en) * 2022-11-16 2023-06-02 荣耀终端有限公司 Data processing method, system, electronic device, bluetooth peripheral and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488316A (en) * 2016-10-20 2017-03-08 北京小米移动软件有限公司 Media playing method and device, electronic equipment
CN106878920A (en) * 2016-12-29 2017-06-20 建荣半导体(深圳)有限公司 Data forwarding method, its device, bluetooth equipment and audio frequency transmission method
CN109298846A (en) * 2018-09-30 2019-02-01 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN109445739A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio playing method and device, electronic equipment and computer readable medium
CN110290443A (en) * 2018-07-16 2019-09-27 东莞育商智能科技有限公司 Device and method for increasing the sound distance of smart speakers
CN111131885A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Play control method and electronic equipment
CN111565355A (en) * 2020-04-02 2020-08-21 北京声智科技有限公司 Device control method, device, electronic device and computer-readable storage medium
WO2020253566A1 (en) * 2019-06-21 2020-12-24 展讯通信(上海)有限公司 Audio playing method, device and storage medium
CN112911566A (en) * 2019-12-25 2021-06-04 华为终端有限公司 Bluetooth communication method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070026793A1 (en) * 2005-08-01 2007-02-01 Motorola, Inc. Method and system for audio repeating among portable communication devices
TWI659638B (en) * 2018-04-13 2019-05-11 瑞昱半導體股份有限公司 Multi-member bluetooth device capable of maintaining bluetooth signal quality with remote bluetooth device and related main bluetooth circuit and auxiliary bluetooth circuit
CN109246672B (en) * 2018-09-30 2021-08-17 Oppo广东移动通信有限公司 Data transmission method, device and system and Bluetooth headset
US11438714B2 (en) * 2020-01-10 2022-09-06 Sonova Ag Method for ensuring symmetric audio quality for hands-free phoning

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488316A (en) * 2016-10-20 2017-03-08 北京小米移动软件有限公司 Media playing method and device, electronic equipment
CN106878920A (en) * 2016-12-29 2017-06-20 建荣半导体(深圳)有限公司 Data forwarding method, its device, bluetooth equipment and audio frequency transmission method
CN110290443A (en) * 2018-07-16 2019-09-27 东莞育商智能科技有限公司 Device and method for increasing the sound distance of smart speakers
CN109298846A (en) * 2018-09-30 2019-02-01 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN109445739A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio playing method and device, electronic equipment and computer readable medium
WO2020253566A1 (en) * 2019-06-21 2020-12-24 展讯通信(上海)有限公司 Audio playing method, device and storage medium
CN111131885A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Play control method and electronic equipment
CN112911566A (en) * 2019-12-25 2021-06-04 华为终端有限公司 Bluetooth communication method and device
CN111565355A (en) * 2020-04-02 2020-08-21 北京声智科技有限公司 Device control method, device, electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN114430528A (en) 2022-05-03

Similar Documents

Publication Publication Date Title
CN114430528B (en) Sound data playing method and device, electronic equipment and storage medium
CN107734487B (en) Method for controlling wearable electronic equipment, central device and equipment
CN102652424B (en) Adopt based on the dynamic declaration of operating condition and effective service declaration in the cycle of discovery in peer-to-peer networked environment and find
EP3537734B1 (en) Method and device for connecting a bluetooth device
CN108769431A (en) Audio play control method, device, storage medium and mobile terminal
US10681200B2 (en) Message processing method and system, and related device
CN109151212B (en) Equipment control method and device and electronic equipment
CN105915724B (en) A kind of method, apparatus and terminal of incoming call handling
CN107659987B (en) Method for adjusting terminal transmitting power, mobile terminal and storage device
CN111225320B (en) Earphone wearing state detection method, earphone and readable storage medium
CN102833679A (en) Play method and device of multimedia file and mobile terminal
CN106550101B (en) Event reminding method and device
CN106465072B (en) Call forwarding method and terminal
CN109379783A (en) Radio frequency resource distribution method and device
CN116193413A (en) Bluetooth connection method, system, storage medium and device
CN104811549A (en) Calling method and mobile terminal
CN108712280A (en) A kind of management method of network function, device, storage medium and intelligent terminal
US9438727B2 (en) System and method to track and log mobile communication device call status when the device is not in possession
CN105610719A (en) Method and device for processing setting of wireless router and setting wireless router
CN104735239A (en) Status switching method and device for mobile terminal
CN116074679A (en) Method, device, equipment and storage medium for determining left and right states of intelligent earphone
CN114173321B (en) Equipment communication connection establishment method and equipment communication system
CN103501381B (en) Separated mobile terminal and the communication means between main frame and handset thereof
CN113784251A (en) TWS earphone, charging box, charging method and charging system
CN104869549A (en) Communication transfer method, communication method, communication terminal and communication system

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