Bluetooth speaker startup and operation control method, electronic device and storage medium
By obtaining media audio and click distance data on the user's device, the speaker service unit adjusts the volume to match the user's adaptive playback volume, solving the problem that existing Bluetooth speakers cannot intelligently adjust the volume, and improving user experience and auditory effects.
Patent Information
- Application Number
- CN202410441388.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-04-12
AI Technical Summary
Existing Bluetooth speakers cannot intelligently adjust the volume during operation, causing users to frequently adjust the volume, which reduces the comfort of use, and cannot handle the volume independently, affecting the listening effect.
By obtaining the media audio and click distance data on the user's device, the speaker service unit adjusts the volume to match the user's adaptive playback volume, and optimizes the adjustment at certain intervals to avoid volume mismatch problems caused by disconnection, providing Smarter volume control.
It improves the user experience, reduces the frequency of users adjusting the volume, ensures that the volume adjustment is more suitable, avoids hearing damage caused by excessive volume, and improves the comfort and auditory effect of the Bluetooth speaker.
Smart Images

Figure CN118158648B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Bluetooth speaker control, and in particular to a Bluetooth speaker startup and operation control method, an electronic device and a storage medium. Background Art
[0002] A Bluetooth speaker refers to a speaker device with a built-in Bluetooth chip that uses Bluetooth connection instead of traditional wire connections. It is connected to Bluetooth playback devices such as mobile phones, tablets, and laptops to achieve convenience and speed. As people pay more and more attention to the quality of life, Bluetooth speakers, with their stylish appearance and portability, not only meet people's needs for both beauty and practicality, but also enrich people's entertainment life. Therefore, they have gradually entered people's homes. An existing Bluetooth speaker is used for home theaters, and people place it in a large room, which can provide a wider space for the Bluetooth speaker, allowing it to provide a better sound field effect to meet people's entertainment requirements.
[0003] At present, during operation, a Bluetooth speaker monitors the position of a mobile device that has established a Bluetooth connection with the Bluetooth speaker in real time, and often uses a standard volume corresponding to a preset position to intelligently adjust the volume of the Bluetooth speaker, thereby improving the auditory effect of the speaker and making the Bluetooth speaker more convenient to use to a certain extent; however, since each person has different levels of volume perception, the standard volume corresponding to a preset position cannot accurately meet the needs of each authorized user, and therefore requires the authorized user to constantly adjust the volume of the Bluetooth speaker, which reduces the comfort of the user using the Bluetooth speaker and makes it impossible to intelligently adjust the volume of the smart speaker.
[0004] For example, the Chinese invention patent with publication number CN107329727A and invention name “Volume control method, device and computer storage readable storage medium” is designed to solve the problem that when existing users adjust the volume of Bluetooth speakers, the Bluetooth speakers cannot support the parsing of volume adjustment instructions through the AVRCP protocol, and thus have to adjust the amplitude of the PCM audio stream on the terminal side, resulting in changes in the volume of the Bluetooth speakers, causing the volume of all other audio output ports to change accordingly, and the problem that the volume of the Bluetooth speakers cannot be processed separately. The PCM audio stream obtained by parsing the audio data to be played is copied to obtain two identical PCM audio streams. When adjusting the volume, if a Bluetooth speaker is connected, the PCM amplitude of one of the PCM audio streams can be adjusted, and the adjusted PCM audio stream can be sent to the Bluetooth speaker, so that the Bluetooth speaker can directly output sound based on the adjusted PCM audio stream without the need for AVRCP protocol support. At the same time, since the volume adjustment instruction only adjusts the PCM amplitude of one of the PCM audio streams, the terminal's own audio output device, such as a speaker, will adjust the volume based on the other PCM audio stream. Through the two PCM audio streams, the external Bluetooth speaker and its own audio output device can be distinguished and controlled, thereby realizing separate processing of the volume of the Bluetooth speaker.
[0005] Therefore, in order to solve the existing problem that "authorized users are required to constantly adjust the volume of the Bluetooth speaker, which reduces the comfort of the authorized users when using the Bluetooth speaker and makes it impossible to intelligently adjust the volume of the smart speaker", the present invention proposes a solution. Summary of the invention
[0006] In order to overcome the problems existing in the related art, the present application provides a method for starting and controlling a Bluetooth speaker, which can adjust the volume of the Bluetooth speaker to an adapted playback volume that best matches the distance data at the time of click based on the media audio pre-played by the current authorized user and the distance data at the time of click. In this way, it is possible to avoid a poor user experience for the authorized user caused by volume mismatch that may occur when the last connection is disconnected.
[0007] The first aspect of the present application provides a method for starting and operating a Bluetooth speaker, comprising the following steps:
[0008] Step 1: After the current authorized user reaches the Bluetooth connection range of the Bluetooth speaker, he turns on the Bluetooth function of his authorized device and sends a turn-on instruction to the speaker control terminal through his authorized device;
[0009] Step 2: The speaker control terminal turns on the Bluetooth speaker after receiving the turn-on instruction, and controls the Bluetooth speaker to automatically establish a Bluetooth connection with the authorized device of the current authorized user;
[0010] Step 3: After the Bluetooth connection is successfully established, the user-side module obtains the media audio that the current authorized user clicks on his authorized device to play and the distance data when clicking, and transmits them to the speaker service unit; the distance data is the straight-line distance between the authorized device and the Bluetooth speaker when the current authorized user clicks;
[0011] Step 4: After receiving the transmitted media audio and the distance data when clicking, the speaker service unit obtains the volume analysis table of the current authorized user stored therein, and obtains the adapted playback volume when the current authorized user clicks, and adjusts the volume of the Bluetooth speaker accordingly; wherein the adapted playback volume is the playback volume corresponding to the distance segment that matches the straight-line distance between the authorized device and the Bluetooth speaker.
[0012] In one implementation method, the user-end module obtains the pre-adjusted designated volume after the current authorized user inputs it on the authorized device, and also obtains the straight-line distance between the authorized device and the Bluetooth speaker when the pre-adjusted designated volume is input;
[0013] Based on the pre-adjusted designated volume input by the current authorized user on his / her authorized device and the straight-line distance between the authorized device and the Bluetooth speaker when inputting, the volume adjustment data of the current authorized user after successfully establishing the Bluetooth connection with the Bluetooth speaker is generated.
[0014] In one implementation method, after step 4, the method further includes:
[0015] The optimization and adjustment unit obtains the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker every P time, where P is a preset optimization and adjustment time threshold;
[0016] Among them, each time the straight-line distance is obtained, the adapted playback volume corresponding to the distance segment matching the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker obtained this time is obtained from the volume analysis table of the current authorized user, and the volume of the Bluetooth speaker is adjusted to the adapted playback volume based on it.
[0017] In one implementation method, after receiving the volume adjustment data transmitted by the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker, the speaker service unit obtains the pre-adjusted designated volume in the volume adjustment data carried therein;
[0018] Compare the pre-adjusted specified volume with the adapted risk volume of the current authorized user;
[0019] If the pre-adjusted specified volume is greater than the adapted risk volume of the current authorized user, it is determined that if the pre-adjusted specified volume is adjusted, the hearing of the current authorized user will be damaged, and a volume risk warning is issued to the current authorized user;
[0020] If the pre-adjusted specified volume is less than or equal to the adapted risk volume of the current authorized user, the volume of the Bluetooth speaker is adjusted according to the pre-adjusted specified volume, and the volume adjustment data of the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker is stored.
[0021] In an implementation method, after the speaker service unit receives the transmitted volume adjustment data within a P time, the optimization adjustment unit does not adjust the volume of the Bluetooth speaker within the P time.
[0022] In one implementation method, after generating the volume adjustment data of the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker, the method includes:
[0023] S11: Analyze the volume adjustment data, select a mobile device that has established a Bluetooth connection with the Bluetooth speaker as a device to be analyzed, and divide the device into distance segments according to the device to be analyzed;
[0024] S12: The straight-line distance between the device to be analyzed and the Bluetooth speaker is within 0~P1 meters, that is, 0~P1, which is calibrated as distance segment A1, and the straight-line distance between the device to be analyzed and the Bluetooth speaker is within P1+0.01~2P1 meters as distance segment A2, and so on, the distance segments A3, A4, ..., Aa are obtained, and the straight-line distances between the device to be analyzed and the Bluetooth speaker are 2P1+0.01~3P1, 3P1+0.01~4P1, ..., aP1+0.01~(a+1)P1, a≥1, and P1 is the preset distance adjustment standard threshold;
[0025] S13: Calculate and obtain the adapted playback volume D1 of the device to be analyzed in the distance segment A1 by using a preset calculation rule, and calculate and obtain the elastic difference volume E1 of the device to be analyzed in the distance segment A1 by using the formula E1=D1-PD1, where PD1 is the preset standard playback volume in the distance segment A1; calculate the adapted playback volumes D1, D2, ..., Da of the device to be analyzed in the distance segments A1, A2, ..., Aa in sequence;
[0026] S14: Calculate and obtain the elastic difference volume E1, E2, ..., Ea of the device to be analyzed in the distance segments A1, A2, ..., Aa in sequence and use the average formula to calculate and obtain their average values, and use the average value as the threshold volume adjustment value of the authorized user corresponding to the device to be analyzed, marked as F1;
[0027] S15: Calculate and obtain the adaptation risk volume G1 of the authorized user corresponding to the device to be analyzed by using the formula G1 = F1 + PF1, where PF1 is the preset risk volume of the Bluetooth speaker; the volume analysis unit generates a volume analysis table of the authorized user corresponding to the device to be analyzed based on the adaptation playback volumes D1, D2,..., Da of the device to be analyzed in distance segments A1, A2,..., Aa, and transmits it together with the adaptation risk volume to the speaker service unit for update and storage;
[0028] S16: Select in sequence all mobile devices that have established a Bluetooth connection with the Bluetooth speaker as the devices to be analyzed, calculate and obtain the volume analysis tables of the authorized users corresponding to all mobile devices that have established a Bluetooth connection with the Bluetooth speaker, and transmit them together with the adaptation risk volume to the speaker service unit for update and storage.
[0029] In an implementation method, the preset calculation rule includes:
[0030] Obtain the pre-adjustment specified volumes within the distance segment A1 of the speaker adjustment distance from the volume adjustment data after all previous successful Bluetooth connections between the device to be analyzed and the Bluetooth speaker, and mark them as B1, B2,..., Bb respectively, where b ≥ 1;
[0031] Calculate and obtain the deviation C1 of the pre-adjustment specified volumes B1, B2,..., Bb of the device to be analyzed within the distance segment A1 according to Formula 1, and compare the sizes of C1 and C;
[0032] If C1 ≥ C, then in the order from largest to smallest of |Bc - B|, delete the corresponding Bc in sequence and calculate the deviation C1 of the remaining Bc, and compare the sizes of C1 and C again until C1 < C. Mark the average value of all the pre-adjustment specified volumes of the device to be analyzed within the distance segment A1 that participate in the calculation of the remaining deviation C1 at this time as the adaptation playback volume of the device to be analyzed within the distance segment A1, and mark it as D1.
[0033] In an implementation method, Formula 1 is:
[0034] , 1 ≤ c ≤ b;
[0035] where C1 is the deviation of the pre-adjustment specified volumes within the distance segment A1, B is the mean value of Bc, C is the deviation threshold of the pre-adjustment specified volumes within the preset distance segment A1, and both c and b are constants.
[0036] The second aspect of the present application provides an electronic device, including:
[0037] A processor; and
[0038] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0039] A third aspect of the present application provides a storage medium having executable code stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0040] The technical solution provided by this application may have the following beneficial effects:
[0041] In the present technical solution, after the Bluetooth connection between the current user's authorized device and the Bluetooth speaker is successfully established, the speaker service unit adjusts the volume of the Bluetooth speaker to the adaptive playback volume that best matches the distance data at the time of click based on the media audio pre-played by the current authorized user and the distance data at the time of click. In this way, the poor user experience caused by the volume mismatch that may have occurred when the last connection was disconnected can be avoided.
[0042] In the technical solution of the present application, the optimization and adjustment unit can also obtain the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker once every P time interval. Each time the distance is obtained, the adaptive playback volume corresponding to the distance segment matching the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker obtained this time is obtained from the volume analysis table of the current authorized user, and the volume of the Bluetooth speaker is adjusted to the adaptive playback volume based on the distance segment. If the speaker service unit receives the transmitted volume adjustment data within a P time, the optimization and adjustment unit does not adjust the volume of the Bluetooth speaker within the P time. In this way, on the one hand, the occurrence of poor auditory effect of the Bluetooth speaker caused by the authorized user carrying the authorized device to move is avoided, and at the same time, the volume adjustment of the Bluetooth speaker is made more intelligent, reducing the frequency of the authorized user constantly adjusting the volume by himself. On the other hand, the volume adjustment of the Bluetooth speaker is analyzed based on the authorized user's volume adjustment data of the Bluetooth speaker, so that the volume adjustment of the Bluetooth speaker for the authorized user is more adapted to the authorized user, further improving the comfort of the authorized user.
[0043] Furthermore, the present invention obtains the pre-adjusted designated volume in the volume adjustment data carried therein, and compares it with the adaptation risk volume of the current authorized user. If it is larger than the adaptation risk volume of the current authorized user, it is determined that if the pre-adjusted designated volume is adjusted, the hearing of the current authorized user will be damaged, and a volume risk warning is issued to the current authorized user. In this way, it is avoided that the authorized user will suffer hearing damage due to adjusting the volume too high, thereby promoting the protection of the authorized user's hearing during use.
[0044] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0046] Figure 1 It is a flowchart of a method for starting and operating a Bluetooth speaker shown in an embodiment of the present application;
[0047] Figure 2 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0049] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0050] like Figure 1 As shown, a method for starting and operating a Bluetooth speaker is implemented by a Bluetooth speaker starting and operating control system, the system comprising a user end module and a speaker control terminal;
[0051] The user-side module is used to authorize users to play media audio services through Bluetooth speakers;
[0052] After the current authorized user reaches the Bluetooth connection range of the Bluetooth speaker, he turns on the Bluetooth function of his authorized device and sends a turn-on instruction to the speaker control terminal through his authorized device;
[0053] A speaker control terminal, used to control the Bluetooth speaker to provide Bluetooth speaker services for authorized users, the speaker control terminal includes a speaker service unit, an optimization adjustment unit and a volume analysis unit;
[0054] After receiving the transmitted start-up instruction, the speaker control terminal transmits it to the speaker service unit. After receiving the transmitted start-up instruction, the speaker service unit turns on the Bluetooth speaker. After the Bluetooth speaker is turned on, the Bluetooth speaker is controlled to automatically establish a Bluetooth connection with the authorized device of the current authorized user.
[0055] After the Bluetooth connection is successfully established, a waiting-for-work instruction is generated and transmitted to the user-end module; after receiving the transmitted waiting-for-work instruction, the user-end module obtains the media audio clicked by the current authorized user in his authorized device to play and obtains the distance data when the current authorized user clicks, and transmits it together to the speaker service unit;
[0056] The distance data when the current authorized user clicks refers to the straight-line distance between the authorized device and the Bluetooth speaker when the current authorized user clicks;
[0057] The speaker service unit updates and stores a volume analysis table of all authorized users;
[0058] After receiving the transmitted media audio and the distance data when the current authorized user clicks, the speaker service unit obtains the volume analysis table of the current authorized user stored therein, and obtains the adaptive playback volume corresponding to the distance segment that matches the straight-line distance between the authorized device and the Bluetooth speaker when the current authorized user clicks, and adjusts the volume of the Bluetooth speaker according to the adaptive playback volume;
[0059] The optimization and adjustment unit obtains the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker once at an interval of P1, and obtains the adapted playback volume corresponding to the distance segment that matches the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker obtained this time from the volume analysis table of the current authorized user each time, and adjusts the volume of the Bluetooth speaker to the adapted playback volume based on the distance segment;
[0060] It should be noted here that if the speaker service unit receives the transmitted volume adjustment data within a P1 time, the optimization adjustment unit does not adjust the volume of the Bluetooth speaker within the P1 time;
[0061] The current authorized user inputs the pre-adjusted specified volume on his authorized device, and the user-side module obtains it. At the same time, the straight-line distance between the authorized device and the Bluetooth speaker when the pre-adjusted specified volume is input is also obtained;
[0062] Generate the volume adjustment data of the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker this time according to the pre-adjusted designated volume input by the current authorized user on his authorized device and the straight-line distance between the authorized device and the Bluetooth speaker when inputting, and transmit it to the speaker service unit;
[0063] After receiving the volume adjustment data transmitted by the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker, the speaker service unit first obtains the pre-adjusted designated volume in the speaker adjustment data carried therein, and compares it with the adaptation risk volume of the current authorized user. If it is greater than the adaptation risk volume of the current authorized user, it is determined that if the pre-adjusted designated volume is adjusted, the hearing of the current authorized user will be damaged, and a volume risk warning is issued to the current authorized user;
[0064] Otherwise, the volume of the Bluetooth speaker is adjusted according to the pre-adjusted specified volume, and the volume adjustment data of the current authorized user after the Bluetooth connection with the Bluetooth speaker is successfully established is stored;
[0065] A volume analysis unit, used for periodically acquiring and analyzing all volume adjustment data after the authorized device of the current authorized user successfully establishes a Bluetooth connection with the Bluetooth speaker each time, wherein the volume analysis unit stores preset standard playback volumes of preset distance segments A1, A2, ..., Aa, and the preset standard playback volumes are set for reference by ordinary people;
[0066] The specific analysis steps are as follows:
[0067] S11: First, a mobile device that has established a Bluetooth connection with the Bluetooth speaker is selected as a device to be analyzed;
[0068] S12: Divide the distance into segments, and mark the straight-line distance between the device to be analyzed and the Bluetooth speaker within 0~P1 meters, that is, 0~P1, as distance segment A1, and the straight-line distance between the device to be analyzed and the Bluetooth speaker within P1+0.01~2P1 meters as distance segment A2, and so on, to obtain distance segments A3, A4, ..., Aa, and the straight-line distances between the distance segments A2, A3, ..., Aa and the Bluetooth speaker are respectively 2P1+0.01~3P1, 3P1+0.01~4P1, ..., aP1+0.01~(a+1)P1, a≥1, and P1 is the preset distance adjustment standard threshold;
[0069] S13: Calculate and obtain the adapted playback volume D1 of the device to be analyzed in the distance segment A1 according to a preset calculation rule. The specific calculation rule is as follows:
[0070] S131: obtaining the pre-adjusted designated volume of the speaker adjustment distance within the distance segment A1 from the volume adjustment data of all the past times after the device to be analyzed successfully established a Bluetooth connection with the Bluetooth speaker, and marking them as B1, B2, ..., Bb, where b≥1;
[0071] S132: Using formula , where \(1\leq c\leq b\), calculate the deviation \(C1\) of the pre-adjusted specified volumes \(B1, B2, \cdots, Bb\) of the device to be analyzed within the distance segment \(A1\), and compare the magnitudes of \(C1\) and \(C\). Here, \(B\) is the mean value of \(Bc\), and \(C\) is the deviation threshold of the pre-adjusted specified volumes within the preset distance segment \(A1\).
[0072] If \(C1\geq C\), then in the order from largest to smallest of \(|Bc - B|\), delete the corresponding \(Bc\) in sequence and calculate the deviation \(C1\) of the remaining \(Bc\). Again, compare the magnitudes of \(C1\) and \(C\) until \(C1 < C\). Then, calibrate the average value of all the pre-adjusted specified volumes of the device to be analyzed within the distance segment \(A1\) that participate in the calculation of the remaining deviation \(C1\) as the adapted playback volume of the device to be analyzed within the distance segment \(A1\), denoted as \(D1\).
[0073] S14: Calculate and obtain the elastic difference volume \(E1\) of the device to be analyzed within the distance segment \(A1\) using the formula \(E1 = D1 - PD1\), where \(PD1\) is the preset standard playback volume within the distance segment \(A1\).
[0074] S15: Calculate the adapted playback volumes \(D1, D2, \cdots, Da\) of the device to be analyzed within the distance segments \(A1, A2, \cdots, Aa\) in sequence according to S12 to S13.
[0075] According to S14, calculate and obtain the elastic difference volumes \(E1, E2, \cdots, Ea\) of the device to be analyzed within the distance segments \(A1, A2, \cdots, Aa\) in sequence, and calculate and obtain their mean value using the sum and average formula. Take this mean value as the threshold volume adjustment value for the corresponding authorized user of the device to be analyzed, denoted as \(F1\).
[0076] S16: Calculate and obtain the adapted risk volume \(G1\) of the device to be analyzed for the corresponding authorized user using the formula \(G1 = F1+PF1\), where \(PF1\) is the preset risk volume of the Bluetooth speaker. Exceeding the preset risk volume may damage the user's hearing.
[0077] The volume analysis unit generates a volume analysis table for the corresponding authorized user of the device to be analyzed based on the adapted playback volumes \(D1, D2, \cdots, Da\) of the device to be analyzed within the distance segments \(A1, A2, \cdots, Aa\), and transmits it together with the adapted risk volume to the speaker service unit for update and storage.
[0078] S17: Select all the mobile devices that have established a Bluetooth connection with the Bluetooth speaker as the devices to be analyzed in sequence, calculate and obtain the volume analysis tables and adapted risk volumes for the corresponding authorized users of all the mobile devices that have established a Bluetooth connection with the Bluetooth speaker, and transmit them together to the speaker service unit for update and storage.
[0079] Corresponding to the foregoing application function implementation method embodiments, the present application also provides an electronic device and corresponding embodiments.
[0080] See also Figure 2 , the electronic device 1000 includes a memory 1010 and a processor 1020 .
[0081] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0082] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at runtime. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0083] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0084] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for starting and operating a Bluetooth speaker, It is characterized in that Applied to the Bluetooth speaker startup and operation control system, the system includes a user-end module and a speaker control terminal, the user-end module is used to authorize users to perform media audio playback services through the Bluetooth speaker, the speaker control terminal is used to control the Bluetooth speaker to provide Bluetooth speaker services for authorized users, and the speaker control terminal includes a speaker service unit, an optimization adjustment unit and a volume analysis unit; The speaker control terminal is used to transmit the received start-up instruction to the speaker service unit, and the speaker service unit is used to turn on the Bluetooth speaker after receiving the transmitted start-up instruction; the speaker service unit updates and stores a volume analysis table of all authorized users; the optimization adjustment unit is used to obtain the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker once every P time interval; the method includes the following steps: Step 1: After the current authorized user reaches the Bluetooth connection range of the Bluetooth speaker, he turns on the Bluetooth function of his authorized device and sends a turn-on instruction to the speaker control terminal through his authorized device; Step 2: The speaker control terminal turns on the Bluetooth speaker after receiving the turn-on instruction, and controls the Bluetooth speaker to automatically establish a Bluetooth connection with the authorized device of the current authorized user; Step 3: After the Bluetooth connection is successfully established, the media audio that the current authorized user clicks on his authorized device to play and the distance data when clicking are respectively obtained through the user-side module, and transmitted to the speaker service unit; the distance data is the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker when the user clicks; The current authorized user inputs the pre-adjusted specified volume on his authorized device, and the user-side module obtains it. At the same time, the straight-line distance between the authorized device and the Bluetooth speaker when the pre-adjusted specified volume is input is also obtained; According to the pre-adjusted designated volume input by the current authorized user on his authorized device and the straight-line distance between the authorized device and the Bluetooth speaker when inputting, the volume adjustment data of the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker is generated; and after the volume adjustment data of the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker is generated, it includes: S11: Analyze the volume adjustment data, select a mobile device that has established a Bluetooth connection with the Bluetooth speaker as a device to be analyzed, and divide the device into distance segments according to the device to be analyzed; S12: The straight-line distance between the device to be analyzed and the Bluetooth speaker is within 0~P1 meters, that is, 0~P1, which is calibrated as distance segment A1, and the straight-line distance between the device to be analyzed and the Bluetooth speaker is within P1+0.01~2P1 meters as distance segment A2, and so on, the distance segments A3, A4, ..., Aa are obtained, and the straight-line distances between the distance segments A2, A3, ..., Aa and the Bluetooth speaker are respectively 2P1+0.01~3P1, 3P1+0.01~4P1, ..., aP1+0.01~(a+1)P1, a≥1, and P1 is the preset distance adjustment standard threshold; S13: Calculate and obtain the adapted playback volume D1 of the device to be analyzed in distance segment A1 through a pre-designed calculation rule, and calculate and obtain the elastic difference volume E1 of the device to be analyzed in distance segment A1 using the formula E1 = D1 - PD1, where PD1 is the preset standard playback volume in distance segment A1; successively calculate the adapted playback volumes D1, D2,..., Da of the device to be analyzed in distance segments A1, A2,..., Aa; the pre-designed calculation rule includes: Obtain the pre-adjusted specified volumes within distance segment A1 of the speaker adjustment distance from the volume adjustment data after the device to be analyzed successfully established a Bluetooth connection with the Bluetooth speaker in all previous times, and mark them as B1, B2,..., Bb respectively, where b ≥ 1; Calculate and obtain the deviation C1 of the pre-adjusted specified volumes B1, B2,..., Bb of the device to be analyzed within distance segment A1 according to Formula 1, and compare the magnitudes of C1 and C; If C1 ≥ C, then delete the corresponding Bc in descending order of |Bc - B| successively, calculate the deviation C1 of the remaining Bc, and compare C1 and C again until C1 < C. Mark the average value of all the pre-adjusted specified volumes of the device to be analyzed within distance segment A1 that participate in the calculation of the remaining deviation C1 at this time as the adapted playback volume of the device to be analyzed in distance segment A1, and mark it as D1; S14: Successively calculate and obtain the elastic difference volumes E1, E2,..., Ea of the device to be analyzed in distance segments A1, A2,..., Aa, and calculate and obtain their average value using the sum and average formula. Take their average value as the threshold volume adjustment value of the corresponding authorized user of the device to be analyzed, and mark it as F1; S15: Calculate and obtain the adapted risk volume G1 of the corresponding authorized user of the device to be analyzed using the formula G1 = F1 + PF1, where PF1 is the preset risk volume of the Bluetooth speaker; the volume analysis unit generates a volume analysis table of the corresponding authorized user of the device to be analyzed based on the adapted playback volumes D1, D2,..., Da of the device to be analyzed in distance segments A1, A2,..., Aa, and transmits it together with the adapted risk volume to the speaker service unit for update and storage; S16: Successively select all mobile devices that have established a Bluetooth connection with the Bluetooth speaker as the devices to be analyzed, calculate and obtain the volume analysis tables and adapted risk volumes of the corresponding authorized users of all mobile devices that have established a Bluetooth connection with the Bluetooth speaker, and transmit them together to the speaker service unit for update and storage; Among them, Formula 1 is: ,1≤c≤b; Among them, C1 is the deviation of the pre-adjusted specified volume within distance segment A1, B is the average value of Bc, C is the deviation threshold of the pre-adjusted specified volume within the preset distance segment A1, and both c and b are constants; Step Four: After receiving the transmitted media audio and the distance data at the time of clicking, the speaker service unit obtains the volume analysis table of the current authorized user stored therein, and obtains the adapted playback volume at the time of clicking of the current authorized user, and adjusts the volume of the Bluetooth speaker based on it; among them, the adapted playback volume is the playback volume corresponding to the distance segment that matches the straight-line distance between the authorized device and the Bluetooth speaker.
2. A method for starting and operating a Bluetooth speaker according to claim 1, It is characterized in that After step 4, it also includes: The optimization and adjustment unit obtains the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker every P time, where P is a preset optimization and adjustment time threshold; Among them, each time the straight-line distance is obtained, the adapted playback volume corresponding to the distance segment matching the straight-line distance between the authorized device of the current authorized user and the Bluetooth speaker obtained this time is obtained from the volume analysis table of the current authorized user, and the volume of the Bluetooth speaker is adjusted to the adapted playback volume based on it.
3. A method for starting and operating a Bluetooth speaker according to claim 2, It is characterized in that After receiving the volume adjustment data transmitted by the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker, the speaker service unit obtains the pre-adjusted designated volume in the volume adjustment data carried therein; Comparing the pre-adjusted designated volume with the adapted risk volume of the current authorized user; If the pre-adjusted specified volume is greater than the adaptation risk volume of the current authorized user, it is determined that if the pre-adjusted specified volume is adjusted, the hearing of the current authorized user will be damaged, and a volume risk warning is issued to the current authorized user; If the pre-adjusted specified volume is less than or equal to the adapted risk volume of the current authorized user, the volume of the Bluetooth speaker is adjusted according to the pre-adjusted specified volume, and the volume adjustment data of the current authorized user after successfully establishing a Bluetooth connection with the Bluetooth speaker is stored.
4. A method for starting and operating a Bluetooth speaker according to claim 3, It is characterized in that After the speaker service unit receives the transmitted volume adjustment data within a P time, the optimization adjustment unit does not adjust the volume of the Bluetooth speaker within the P time.
5. An electronic device, It is characterized in that include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 4.
6. A storage medium having executable codes stored thereon, wherein when the executable codes are executed by a processor of an electronic device, the processor is caused to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method and apparatus for adjusting the sound volume of push notifications of intelligent device
CN106656744A
Volume controlling method, device and computer storage readable storage media
CN107329727A
