CN112614322B - Wireless sound box volume control method, computer readable storage medium and wireless sound box - Google Patents

Wireless sound box volume control method, computer readable storage medium and wireless sound box Download PDF

Info

Publication number
CN112614322B
CN112614322B CN202011330735.2A CN202011330735A CN112614322B CN 112614322 B CN112614322 B CN 112614322B CN 202011330735 A CN202011330735 A CN 202011330735A CN 112614322 B CN112614322 B CN 112614322B
Authority
CN
China
Prior art keywords
sound box
terminal
volume
mac address
item content
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
CN202011330735.2A
Other languages
Chinese (zh)
Other versions
CN112614322A (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.)
Cosonic Intelligent Technologies Co Ltd
Original Assignee
Cosonic Intelligent Technologies Co Ltd
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 Cosonic Intelligent Technologies Co Ltd filed Critical Cosonic Intelligent Technologies Co Ltd
Priority to CN202011330735.2A priority Critical patent/CN112614322B/en
Publication of CN112614322A publication Critical patent/CN112614322A/en
Application granted granted Critical
Publication of CN112614322B publication Critical patent/CN112614322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to a volume control method of a wireless sound box, a computer readable storage medium and the wireless sound box. The method comprises the following steps executed by a controller in the sound box: when the terminal is wirelessly connected, the MAC address of the terminal is acquired; according to the MAC address, inquiring historical tuning records of the terminal corresponding to the MAC address on the sound box from a connection list located in a local memory space of the sound box; and setting the current volume of the sound box according to the query result. According to the volume control method of the wireless sound box, any appearance or hardware modification of the sound box is not needed, the optimization of a software algorithm can be completed, different mobile phones can use the volume used in the last connection, repeated setting is not needed in the second connection, and bad experience caused by the fact that the last user adjusts the volume to the maximum or minimum can be avoided.

Description

Wireless sound box volume control method, computer readable storage medium and wireless sound box
Technical Field
The invention relates to the field of sound boxes, in particular to a volume control method of a wireless sound box, a computer readable storage medium and the wireless sound box.
Background
The sound box is used as an audio generating device and can be seen everywhere in daily life. With the rapid development of the Bluetooth technology in recent years, the Bluetooth sound box based on the Bluetooth technology is full of all aspects of our lives because the convenient connection mode of the Bluetooth greatly improves the user experience; such as portable bluetooth speaker for outdoor travel, high-power bluetooth speaker for shop and store, toy type bluetooth speaker for children, etc.
When using the audio amplifier, the volume control of audio amplifier is a key link, and after bluetooth terminal connection to audio amplifier, still need manual regulation if the volume has little the user, the audio amplifier has let the user receive the frightening very easily, very big influence user experience. When present audio amplifier product design, set up a default volume, generally be middle volume, when terminal equipment connects for the first time, the audio amplifier is the default of calling, the user can be according to the manual regulation of own hobby again, adjust the back, no matter be the audio amplifier restart, when still other terminal connections, all call the last setting value, if so after last bluetooth terminal A connects the setting volume to the maximum value, next bluetooth terminal B can postpone bluetooth terminal A's volume when reconnecting, the audio amplifier is started the broadcast and can be sent very big sound suddenly when leading to bluetooth terminal B to connect, brought very unfriendly experience for the user.
How to avoid the problems, optimize the product design and improve the use friendliness is a problem which needs to be solved urgently.
Disclosure of Invention
The invention provides a wireless sound box volume control method, a computer readable storage medium and a wireless sound box, aiming at overcoming the defects in the prior art.
Therefore, the method for controlling the volume of the wireless sound box comprises the following steps executed by a controller in the sound box:
when the terminal is wirelessly connected, the MAC address of the terminal is acquired;
according to the MAC address, inquiring historical tuning records of the terminal corresponding to the MAC address on the sound box from a connection list located in a local memory space of the sound box;
and setting the current volume of the sound box according to the query result.
Further, when the terminal is wirelessly connected, the MAC address of the terminal is stored in the connection list; and after the terminal is successfully connected with the sound box, recording the tuning condition of the terminal to the sound box to the item content corresponding to the MAC address in the connection list.
Furthermore, a flag bit for representing whether the terminal has the volume adjustment is written in the corresponding item content.
Further, the flag is a binary character, and/or the flag is located in a header of a data frame of the binary character.
Further, if the terminal has volume adjustment this time, writing a data format of 'flag bit a1+ MAC address + volume step number' into the corresponding item content; if the terminal does not adjust the volume at this time, the corresponding item content is inquired, if the zone bit in the item content is A1, data updating is not carried out, otherwise, a data format 'zone bit A2+ MAC address' is written in the item content.
Further, the method for setting the volume according to the query result further comprises:
if the MAC address of the terminal cannot be inquired, using default volume;
if the MAC address of the terminal has a record and the flag bit is A2, using default volume;
if the MAC address of the terminal has a record and the flag bit is A1, the volume step number of the corresponding item content in the connection list is read to set the volume.
Furthermore, when the record of the MAC address exists, the flag bit is directly inquired first.
Further, the timing of making the inquiry and making the volume setting occurs in a time period in which the wireless connection of the terminal has not been successful.
Still provide a wireless sound box, wherein, this wireless sound box includes:
a controller; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the controller to perform the method described above.
A computer-readable storage medium is also provided, wherein the computer-readable storage medium stores one or more programs which, when executed by a controller, implement the above-described method.
The volume control method of the wireless sound box has the following characteristics:
1) the sound box can be finished by optimizing a software algorithm without modifying any appearance or hardware of the sound box;
2) different mobile phones can use the volume used in the last connection, and the repeated setting is not needed in the second connection;
3) the bad experience caused by the fact that the last user adjusts the volume to the maximum or the minimum is avoided.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flow chart illustrating volume playback control of a wireless sound box according to the present invention;
FIG. 2 is a flow chart illustrating volume updating of the wireless sound box according to the present invention;
FIG. 3 is a schematic structural diagram of the wireless sound box of the present invention;
fig. 4 shows a schematic structural diagram of the computer-readable storage medium of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The wireless sound box of the present embodiment is specifically a bluetooth sound box, the bluetooth sound box is provided with a controller inside, and a memory arranged to store computer executable instructions, the memory has a computer readable storage medium therein, the computer readable storage medium stores one or more programs formed by a set of computer executable instructions, and when the one or more programs are executed by the controller, the following wireless sound box volume control methods as shown in fig. 1 and fig. 2 are implemented:
the mobile phone is connected with the loudspeaker box through SPE Bluetooth or BLE, when the mobile phone is connected with the loudspeaker box, the loudspeaker box identifies the Bluetooth MAC address of the mobile phone, the Bluetooth MAC address is stored in the preset address of the local flash of the loudspeaker box, and after the mobile phones are connected, a connection list can be formed in the preset address of the local flash of the loudspeaker box.
After the mobile phone is successfully connected with the upper sound box:
1) in the connection process, the mobile phone sends an instruction to control the sound box to implement a volume adjustment action, and the sound box updates the content corresponding to the mobile phone in the connection list to a flash data format of 'flag bit A1+ MAC address + volume step number' at the moment or after the sound box receives the instruction, wherein A1 is preferably a binary character '1';
2) if no command is sent by the mobile phone to perform a volume adjustment action in the connection process, at the moment of disconnection or after disconnection, the sound box queries the item content corresponding to the mobile phone in the connection list, if the flag bit in the item content is A1, the sound box history is subjected to volume adjustment by the mobile phone, data updating is not performed, if the flag bit in the item content is not A1, the item content corresponding to the mobile phone in the connection list is updated to a flash data format "flag bit A2+ MAC address", which indicates that the mobile phone is connected but has no volume adjustment, wherein A2 is preferably a binary character "0".
In the time period that the mobile phone is connected with the loudspeaker box every time and the connection is not successful, the loudspeaker box inquires and sets a connection list in a local flash space of the loudspeaker box:
1) if the Bluetooth MAC address of the current mobile phone is not inquired, the current mobile phone is not connected with the loudspeaker box, and default volume is used;
2) if the Bluetooth MAC address of the current mobile phone has a record in the connection list, directly inquiring a flag bit, and if the flag bit is A2, indicating that the volume of the current mobile phone is not adjusted before, using default volume;
3) if the Bluetooth MAC address of the current mobile phone is recorded in the connection list and the flag bit is found to be A1 through inquiry, which indicates that the volume of the current mobile phone is adjusted last time, the sound box directly reads the volume steps of the corresponding content in the connection list to set the volume of the sound box.
The volume control method of the wireless sound box has the following characteristics:
1) the sound box can be finished by optimizing a software algorithm without modifying any appearance or hardware of the sound box;
2) different mobile phones can use the volume used in the last connection, and the repeated setting is not needed in the second connection;
3) the bad experience caused by the fact that the last user adjusts the volume to the maximum or the minimum is avoided.
It should be noted that, because the mobile phone generally needs to broadcast immediately after being connected with the bluetooth, and during the bluetooth connection, the bluetooth handshake action needs to occupy a part of time, so the loudspeaker box is required to quickly read and judge whether the mobile phone has been connected and whether the volume of the data has been adjusted in a very short time, and the influence on the user experience caused by the overlong time of connecting the mobile phone to broadcast from the bluetooth is avoided. In order to meet the requirement of the sound box for fast reading and reading judgment of the data, in this embodiment, the following settings are made to ensure: 1) setting a connection list to be stored in a preset address of a local flash of the sound box, and ensuring that data transmission between the sound box and the flash is directly executed locally; 2) setting the time for reading data by the sound box to occur in the time period when the mobile phone is connected with the sound box and the connection is not successful; 3) setting a mark bit in a frame header of a flash data format, setting the mark bit as a binary character, and directly inquiring the mark bit to perform condition classification response when the sound box inquires that the MAC has a record, thereby shortening the operation flow.
The sound box of the embodiment can be replaced by other wireless sound boxes such as WIFI and the like, and is not necessarily limited to a Bluetooth sound box; in this embodiment, a computer, a tablet, or other terminal may be used instead of the mobile phone.
The method of the present embodiment may be implemented by a method that is converted into program steps and apparatuses that can be stored in a computer storage medium and invoked and executed by a controller.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 3 shows a schematic structural diagram of a wireless sound box according to an embodiment of the present invention. The wireless loudspeaker conventionally comprises a processor 61 and a memory 62 arranged to store computer executable instructions (program code). The memory 62 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 62 has a storage space 63 storing program code 64 for performing any of the method steps in the embodiments. For example, the storage space 63 for the program code may comprise respective program codes 64 for implementing respective steps in the above method. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a computer readable storage medium such as described in fig. 4. The computer readable storage medium may have a memory segment, memory space, etc. arranged similarly to the memory 62 in the wireless loudspeaker of fig. 3. The program code may be compressed, for example, in a suitable form. In general, the memory unit stores program code 71 for performing the steps of the method according to the invention, i.e. program code that can be read by a processor such as 61, which when run by the wireless loudspeaker causes the wireless loudspeaker to perform the steps of the method described above.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (7)

1. The volume control method of the wireless sound box is characterized by comprising the following steps executed by a controller in the sound box:
when the terminal is connected wirelessly, the MAC address of the terminal is obtained and is stored in a connection list;
after the terminal is successfully connected with the sound box, recording the current tuning condition of the sound box by the terminal into item content corresponding to the MAC address in the connection list, and writing a flag bit for representing whether the terminal has volume adjustment or not into the corresponding item content, wherein if the terminal has volume adjustment at this time, a flag bit A1 and the volume step number are written into the corresponding item content, if the terminal does not have volume adjustment at this time, the corresponding item content is inquired, if the flag bit in the item content is A1, data updating is not performed, and otherwise, a flag bit A2 is written into the item content;
according to the MAC address, inquiring historical tuning records of the terminal corresponding to the MAC address on the sound box from a connection list located in a local memory space of the sound box;
setting the current volume of the sound box according to the query result, wherein if the MAC address of the terminal cannot be queried, the default volume is used; if the MAC address of the terminal has a record and the flag bit is A2, using default volume; if the MAC address of the terminal has a record and the flag bit is A1, the volume step number of the corresponding item content in the connection list is read to set the volume.
2. The method of claim 1, wherein the flag bit is a binary character and/or the flag bit is located in a header of a data frame of the binary character.
3. The method of claim 2, wherein:
if the terminal has the volume adjustment at this time, writing a data format of 'flag bit A1+ MAC address + volume step number' into the corresponding item content;
if the terminal does not adjust the volume at this time, the corresponding item content is inquired, if the zone bit in the item content is A1, data updating is not carried out, otherwise, a data format 'zone bit A2+ MAC address' is written in the item content.
4. The method of claim 1, wherein in the case of finding a record in the MAC address, the flag is directly queried first.
5. The method according to any of claims 1-4, characterized in that the timing of making the query and making the volume setting occurs in a time period when the wireless connection of the terminal has not been successful.
6. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a controller, implement the method of any of claims 1-4.
7. A wireless sound box, wherein the wireless sound box comprises:
a controller; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the controller to perform the method of any one of claims 1-4.
CN202011330735.2A 2020-11-24 2020-11-24 Wireless sound box volume control method, computer readable storage medium and wireless sound box Active CN112614322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011330735.2A CN112614322B (en) 2020-11-24 2020-11-24 Wireless sound box volume control method, computer readable storage medium and wireless sound box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011330735.2A CN112614322B (en) 2020-11-24 2020-11-24 Wireless sound box volume control method, computer readable storage medium and wireless sound box

Publications (2)

Publication Number Publication Date
CN112614322A CN112614322A (en) 2021-04-06
CN112614322B true CN112614322B (en) 2021-12-07

Family

ID=75225118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011330735.2A Active CN112614322B (en) 2020-11-24 2020-11-24 Wireless sound box volume control method, computer readable storage medium and wireless sound box

Country Status (1)

Country Link
CN (1) CN112614322B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438356B (en) * 2021-05-18 2022-04-08 荣耀终端有限公司 Volume adjusting method, terminal equipment and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013197764A (en) * 2012-03-17 2013-09-30 Tamura Seisakusho Co Ltd Sound signal control system and sound signal control method
CN105611441B (en) * 2015-10-30 2019-01-15 东莞酷派软件技术有限公司 Headset control method, earphone control device and earphone
CN105427874B (en) * 2015-11-11 2018-06-29 广东欧珀移动通信有限公司 A kind of method, system and mobile terminal that Baffle Box of Bluetooth play parameter is configured
CN106407018B (en) * 2016-09-29 2020-01-14 Oppo广东移动通信有限公司 Method and device for synchronizing personalized data and mobile terminal
CN107623776A (en) * 2017-08-24 2018-01-23 维沃移动通信有限公司 A kind of method for controlling volume, system and mobile terminal
CN109982136B (en) * 2017-12-28 2020-09-04 Tcl科技集团股份有限公司 Volume adjusting method and device

Also Published As

Publication number Publication date
CN112614322A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
KR100597670B1 (en) mobile communication terminal capable of reproducing and updating multimedia content, and method for reproducing the same
CN108831469B (en) Voice command customizing method, device and equipment and computer storage medium
EP2503827A1 (en) Method and device for selecting access point name
KR20140106715A (en) An apparatus and method for multiple device voice control
US20080070616A1 (en) Mobile Communication Terminal with Improved User Interface
CN103618514A (en) Volume adjustment method, device and electronic equipment
CN105682191A (en) Mobile terminal and Wi-Fi control method
CN112614322B (en) Wireless sound box volume control method, computer readable storage medium and wireless sound box
CN104158506A (en) Method, device and terminal for adjusting volume
US11785092B2 (en) Multimedia resource playing method, apparatus, terminal, and system
KR20170045298A (en) Method for improving performance of speaker, and terminal device
CN106170757A (en) A kind of date storage method and device
CN112172978A (en) Method, device and equipment for controlling balance car light and storage medium
CN101098528A (en) Mobile communication terminal and text-to-speech method
CN104199633A (en) Multimedia playing device and player automatic identifying device and method
US9043006B2 (en) Acoustic characteristics setting support system and acoustic characteristics setting apparatus
CN102508680A (en) Mobile-terminal-based automatic audio parameter updating method and system
US20080014986A1 (en) Mobile Communication Terminal Capable Of Playing And Updating Multimedia Content And Method Of Playing The Same
CN112181580A (en) Application theme switching method, device and system
US9230529B2 (en) Music reproducing apparatus
CN105280203A (en) Audio playing method and user equipment
US20080076469A1 (en) Method and Mobile Communication Terminal for Playing Multimedia Content
CN105518774A (en) Apparatus and method for acquiring configuration data
US20110295394A1 (en) Method for outputting audio data having specific audio format to audio output device and associated circuit and multimedia player
US9491549B2 (en) Equalizer apparatus

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