CN106851008A - A kind of lamp light control method and mobile terminal - Google Patents

A kind of lamp light control method and mobile terminal Download PDF

Info

Publication number
CN106851008A
CN106851008A CN201710116489.2A CN201710116489A CN106851008A CN 106851008 A CN106851008 A CN 106851008A CN 201710116489 A CN201710116489 A CN 201710116489A CN 106851008 A CN106851008 A CN 106851008A
Authority
CN
China
Prior art keywords
mobile terminal
light
audio
frequency fingerprint
predetermined manner
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710116489.2A
Other languages
Chinese (zh)
Other versions
CN106851008B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710116489.2A priority Critical patent/CN106851008B/en
Publication of CN106851008A publication Critical patent/CN106851008A/en
Application granted granted Critical
Publication of CN106851008B publication Critical patent/CN106851008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The present invention provides a kind of lamp light control method and mobile terminal, and the lamp light control method includes:Obtain the acceleration magnitude of acceleration transducer detection;If the acceleration magnitude meets pre-conditioned, audio signal is gathered;Extract the audio-frequency fingerprint in the audio signal;The audio-frequency fingerprint of extraction is compared with default database, determines whether the audio-frequency fingerprint meets musical features;If the audio-frequency fingerprint meets musical features, the light for triggering the mobile terminal according to predetermined manner is lighted.Due to judging user whether in the deduction activity with singing sow by rocking directly triggering, determine whether to open the control of light, and then without the manually opened signal light control to mobile terminal of user, therefore improve the intelligence degree of mobile terminal.

Description

A kind of lamp light control method and mobile terminal
Technical field
The present invention relates to terminal applies technical field, more particularly to a kind of lamp light control method and mobile terminal.
Background technology
It is well known that in existing amusement party (such as concert), in order to preferably build atmosphere, generally purchase The sparkling object such as glo-stick is used.Due to glo-stick generally after a single use, will abandon, it is a large amount of so as to cause Rubbish, while causing the substantial amounts of wasting of resources.Therefore, certain customers are generally using the screen or flash lamp of mobile terminal Substitute glo-stick.But in the prior art, the screen of mobile terminal or flash lamp need it is manually opened, its intelligence degree compared with It is low.
The content of the invention
The embodiment of the present invention provides a kind of lamp light control method and mobile terminal, cannot intelligent opening to solve mobile terminal The problem of light.
In a first aspect, the embodiment of the invention provides a kind of lamp light control method, mobile terminal is applied to, including:
Obtain the acceleration magnitude of acceleration transducer detection;
If the acceleration magnitude meets pre-conditioned, audio signal is gathered;
Extract the audio-frequency fingerprint in the audio signal;
The audio-frequency fingerprint of extraction is compared with default database, determines whether the audio-frequency fingerprint meets music special Levy;
If the audio-frequency fingerprint meets musical features, the light for triggering the mobile terminal according to predetermined manner is lighted.
Second aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, including:
Acceleration acquisition module, the acceleration magnitude for obtaining acceleration transducer detection;
Audio collection module, if meeting pre-conditioned for the acceleration magnitude, gathers audio signal;
Extraction module, for extracting the audio-frequency fingerprint in the audio signal;
Comparing module, for the audio-frequency fingerprint of extraction to be compared with default database, determines the audio-frequency fingerprint Whether musical features are met;
Control module, if meeting musical features for the audio-frequency fingerprint, the mobile terminal is triggered according to predetermined manner Light light.
So, in the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If the acceleration magnitude meets It is pre-conditioned, gather audio signal;Extract the audio-frequency fingerprint in the audio signal;The audio-frequency fingerprint and default number that will be extracted Compare according to storehouse, determine whether the audio-frequency fingerprint meets musical features;If the audio-frequency fingerprint meets musical features, according to The light that predetermined manner triggers the mobile terminal is lighted.Due to judging user whether in song by rocking directly triggering Sing in the deduction activity of performance, determine whether to open the control of light, so it is manually opened to mobile terminal without user Signal light control, therefore improve the intelligence degree of mobile terminal.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to needed for embodiment of the present invention description The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of the lamp light control method that first embodiment of the invention is provided;
Fig. 2 is one of flow chart of lamp light control method that second embodiment of the invention is provided;
Fig. 3 is the structure chart of mobile terminal in lamp light control method provided in an embodiment of the present invention;
Fig. 4 is the two of the flow chart of the lamp light control method that second embodiment of the invention is provided;
Fig. 5 is one of structure chart of mobile terminal that third embodiment of the invention is provided;
Fig. 6 is the structure chart of control module in the mobile terminal that third embodiment of the invention is provided;
Fig. 7 is the two of the structure chart of the mobile terminal that third embodiment of the invention is provided;
Fig. 8 is the structure chart of the mobile terminal that fourth embodiment of the invention is provided;
Fig. 9 is the structure chart of the mobile terminal that fifth embodiment of the invention is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
First embodiment
Referring to Fig. 1, Fig. 1 is the flow chart of lamp light control method provided in an embodiment of the present invention, and the lamp light control method should For mobile terminal, as shown in figure 1, comprising the following steps:
Step 101, obtains the acceleration magnitude of acceleration transducer detection.
The step, above-mentioned mobile terminal can be the intelligent electronic devices such as mobile phone, pad, be built-in with add in the terminal Velocity sensor.The acceleration transducer is used to obtain the acceleration of gravity of mobile terminal, the change feelings according to acceleration of gravity Condition can know whether mobile terminal rocks.In the present embodiment, acceleration transducer can be with the current acceleration of gravity of real-time detection Value, therefore can in real time or every Preset Time gap obtain acceleration transducer detection acceleration magnitude, so as to know The situation of change of acceleration.
Step 102, if acceleration magnitude meets pre-conditioned, gathers audio signal.
In the step, above-mentioned pre-conditioned content can be configured according to actual needs, for example, pre-conditioned can be with Including:Acceleration magnitude is more than the first preset value;Or, determine that mobile terminal rocks number of times and preset more than second according to acceleration magnitude Value;Or, determine that mobile terminal rocks amplitude more than the 3rd preset value according to acceleration magnitude.
In the present embodiment, can determine whether mobile terminal rocks according to the situation of change of above-mentioned acceleration magnitude, rock During, meet acceleration magnitude more than the first preset value, rock number of times more than the second preset value and the amplitude rocked more than the Any one of three preset values or two can automatically trigger mobile terminal collection audio signal.Specifically, can control Mobile terminal opens the audio signal around voice acquisition module (such as microphone) collection.
Step 103, extracts the audio-frequency fingerprint in audio signal.
The step, can carry out the extraction of audio-frequency fingerprint, specifically using default extracting mode to the audio signal for gathering , the mode for extracting audio-frequency fingerprint can be configured according to actual needs, not be further limited herein.
Step 104, the audio-frequency fingerprint of extraction is compared with default database, determines whether audio-frequency fingerprint meets sound Happy feature.
In the step, musical features are stored in above-mentioned database, for recognizing whether audio-frequency fingerprint meets musical features, If audio-frequency fingerprint meets musical features, can determine that user is in default campaign item, the default campaign item can be wrapped Include the art activities with singing sow such as concert, company's annual meeting, birthday party.Specifically, above-mentioned database can be stored On mobile terminals, it is also possible to be stored on external server, determination sound is interacted by mobile terminal and external server Whether frequency fingerprint meets musical features.
Step 105, if audio-frequency fingerprint meets musical features, lights according to the light of predetermined manner triggering mobile terminal.
In the step, if audio-frequency fingerprint meets musical features, mobile terminal can be automatically triggered according to predetermined manner Light is lighted, so as to reach the function of light prompting.Wherein, the mode that the light of triggering mobile terminal is lighted can be according to reality Needs are configured, for example, can control light Chang Liang, can also be flashed according to certain frequency.Specifically, the controlling party of light Formula is not limited further herein.
So, in the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If acceleration magnitude meets default Condition, gathers audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is carried out with default database Compare, determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, triggered according to predetermined manner and moved The light of terminal is lighted.Due to judging whether user is in the deduction activity with singing sow by rocking directly triggering, The control of unlatching light is determined whether, and then without the manually opened signal light control to mobile terminal of user, therefore improve The intelligence degree of mobile terminal.
Second embodiment
Further, reference picture 2, in the lamp light control method that second embodiment of the invention is provided, with first embodiment Difference be that in the present embodiment, whether mobile terminal further can have default campaign item to the position that is presently in Further judged, so that whether improve to user in the accuracy that campaign item judges is preset, to avoid maloperation. As shown in Fig. 2 above-mentioned steps 105 include:
Step 1051, if the audio-frequency fingerprint meets musical features, obtains the positional information of mobile terminal.
The step, after it is determined that whether audio-frequency fingerprint meets musical features, can trigger mobile terminal and further obtain shifting The current positional information of dynamic terminal.The positional information obtain mode can be configured according to actual needs, do not do herein into The restriction of one step, specifically, the positional information that positioning function obtains mobile terminal can be opened.
Step 1052, inquiry request is sent according to positional information to default server, and inquiry request is used for inquiring position Information is in preset time period with the presence or absence of default campaign item.
In the step, above-mentioned default server can be dedicated for the platform of the default campaign item of inquiry, it is also possible to It is the service platform of third party's offer, is not limited further herein;Specifically, being stored in default server above-mentioned Default campaign item.At the same time the default server can be one, or multiple.The above-mentioned default time period can Think the time period (example carried in the front and rear a period of time, or inquiry request for sending inquiry request corresponding time point As mobile terminal generates a time period according to current time point).
Whether default server is after inquiry request is received, it will inquired about according to inquiry request and deposited in preset time period In default campaign item, corresponding Query Result is then sent to mobile terminal.The content for wherein presetting campaign item can be with root It is configured according to being actually needed, for example the default campaign item there can be song including concert, company's annual meeting, birthday party etc. Sing the art activities of performance.
Step 1053, the Query Result of the reception server.
In the present embodiment, it is default that the Query Result that server sends can include that positional information exists in preset time period Campaign item and positional information are in preset time period in the absence of default campaign item.Specifically, when default campaign item includes During concert, if the time of concert be 2016 2 months 15 days 19 when 00 point to 2016 2 months 15 days 21 when 30 points, place is A.If user is located at B ground, rocked for 00 point at 2016 2 months 15 days 18 using mobile terminal, and acceleration meets above-mentioned default Condition, the Query Result that now server is returned does not exist default campaign item for positional information in preset time period.If with Family is located at A ground, is rocked for 00 point at 2016 2 months 15 days 16 using mobile terminal, and acceleration meets above-mentioned pre-conditioned, this When the Query Result that returns of server for positional information in preset time period in the absence of default campaign item.If user is located at A Ground, is rocked for 00 point at 2016 2 months 15 days 18 using mobile terminal, and acceleration meets above-mentioned pre-conditioned, now services The Query Result that device is returned does not exist default campaign item for positional information in preset time period.
Step 1054, if Query Result is positional information has default campaign item in preset time period, according to default The light that mode triggers mobile terminal is lighted.
Optionally, because the light type set on mobile terminal can have various, therefore different light can be entered Row controls to realize light prompting.For example, above-mentioned light can include flash lamp, screen and breath light.Specifically, above-mentioned press The step of light according to predetermined manner triggering mobile terminal is lighted, including:
Flash lamp or screen flicker according to predetermined manner triggering mobile terminal;
Or, flashed according to the breath light of predetermined manner triggering mobile terminal.
It should be noted that can also simultaneously control flash lamp, screen and breath light to flash in other embodiments, or Alternately control flash lamp, screen and breath light flicker etc., will not enumerate herein.Wherein, above-mentioned flash lamp is usually rearmounted Flash lamp, and set near camera;Additionally, part mobile terminal is additionally provided with preposition flash lamp, above-mentioned light can also be The preposition flash lamp.The position of above-mentioned breath light can be configured according to actual needs, for example, mobile terminal can be arranged on The back side, as shown in figure 3, being provided with LOGO breath lights at the back side of mobile terminal.
Specifically, the specific implementation of above-mentioned predetermined manner can be configured according to actual needs, below will be with not The light of same type sets different predetermined manners and is described in detail:
For example, when being controlled as above-mentioned light using flash lamp or screen, above-mentioned triggering according to predetermined manner is moved The step of flash lamp of dynamic terminal or screen flicker, including:
The size control flash lamp of amplitude or the brightness size of screen are rocked according to mobile terminal;
Or, the brightness size of size control flash lamp or screen according to acceleration magnitude.
In the present embodiment, when the amplitude that mobile terminal rocks is bigger, then the brighter display of light or screen can be controlled;Together When can also be that acceleration magnitude is bigger, control flash lamp or screen brightness it is bigger.
When being controlled as above-mentioned light using breath light, if breath light includes two light groups, according to predetermined manner The step of breath light for triggering mobile terminal flashes, including:
Direction is rocked according to mobile terminal and triggers corresponding light group flicker.
Specifically, when rocking to the left, first group of light is in illuminating state, second group of light is in OFF state;When When rocking to the right, first group of light is in OFF state, and second group of light is in illuminating state.For example, the LOGO of mobile terminal Breath light includes four letters, and first group of light is two letters on the left side, and second group of light is two letters on the right.
In the present embodiment, due to different dispaly states can be entered according to the state control light that rocks of mobile terminal, Therefore the interest of signal light control is improve, so as to improve the Experience Degree of user.
Further, reference picture 4, can set the different flicker frequency of light, so that lamp for different music The flicker rhythm of light is consistent with the rhythm of music, improves the intelligence degree of mobile terminal.Specifically, as shown in figure 4, above-mentioned Before the step of light according to predetermined manner triggering mobile terminal is lighted, the method also includes:
Step 106, recognizes musical designation, determines music style.
In the step, above-mentioned music style mainly makes a distinction from music rhythm, for example, can include the fast music of rhythm The music slow with rhythm, can also make a distinction from other modes certainly, it is also possible to set multiple rhythm ranks, do not do herein It is further to limit.
Specifically, can be classified to music according to musical designation, the result of classification can be stored in mobile terminal Locally;Can also be previously stored in external server, mobile terminal can be interacted with external server so that it is determined that the sound What the corresponding music style of happy title is.If the result of classification is stored in into mobile terminal locally, can improve mobile whole The response speed at end, if the result of classification is stored in external server, can reduce the demand to mobile terminal internal memory.
Step 107, the frequency of light flash in predetermined manner is set according to music style.
In the present embodiment, the frequency of the corresponding light flash of different music styles is also different, the fast music of such as rhythm Corresponding flicker frequency is higher, and the corresponding flicker frequency of the slow music of rhythm is relatively low.Due in the present embodiment, can be to music Title is identified, and determines music style, the frequency of light flash is selected according to music style, such that it is able to strengthen user's Experience, while can be with the music atmosphere at significantly more efficient active scene.If it is understood that name of the None- identified to music Claim, then can by the frequency setting of light flash in predetermined manner be acquiescence frequency.
Fourth embodiment
Referring to Fig. 5, Fig. 5 is the structure chart of mobile terminal provided in an embodiment of the present invention, can realize that the first to the second is real The details of lamp light control method in example is applied, and reaches identical effect.As shown in figure 5, mobile terminal 500 is obtained including acceleration Module 501, audio collection module 502, extraction module 503, comparing module 504 and control module 505, wherein:
Acceleration acquisition module 501, the acceleration magnitude for obtaining acceleration transducer detection;
Audio collection module 502, if meeting pre-conditioned for acceleration magnitude, gathers audio signal;
Extraction module 503, for extracting the audio-frequency fingerprint in audio signal;
Comparing module 504, for the audio-frequency fingerprint of extraction to be compared with default database, determines that audio-frequency fingerprint is It is no to meet musical features;
Control module 505, if meeting musical features for audio-frequency fingerprint, the light of mobile terminal is triggered according to predetermined manner Light.
Optionally, reference picture 6, control module 505 also includes:
Position acquisition unit 5051, the positional information for obtaining mobile terminal;
Transmitting element 5052, for sending inquiry request to default server according to positional information, inquiry request is used for Inquiring position information is in preset time period with the presence or absence of default campaign item;
Receiving unit 5053, for the Query Result of the reception server;
Control unit 5054, if being that the positional information has default work in preset time period for the Query Result Dynamic project, the light for triggering the mobile terminal according to predetermined manner is lighted.
Optionally, it is pre-conditioned including:
Acceleration magnitude is more than the first preset value;
Or, determine that mobile terminal rocks number of times more than the second preset value according to acceleration magnitude;
Or, determine that mobile terminal rocks amplitude more than the 3rd preset value according to acceleration magnitude.
Optionally, control module 505 specifically for:Flash lamp or screen according to predetermined manner triggering mobile terminal dodge It is bright;Or, flashed according to the breath light of predetermined manner triggering mobile terminal.
Optionally, control module 505 specifically for:Flash lamp or screen are controlled according to the size that mobile terminal rocks amplitude Brightness size;Or, the brightness size of size control flash lamp or screen according to acceleration magnitude.
Optionally, breath light include two light groups, control module 505 specifically for:Direction is rocked according to mobile terminal to touch Flicker of sending out light group corresponding.
Optionally, reference picture 7, mobile terminal 500 also includes:
Identification module 506, for recognizing musical designation, determines music style;
Setting module 507, the frequency for setting light flash in predetermined manner according to music style.
In the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If acceleration magnitude meets pre-conditioned, Collection audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with default database, Determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, mobile terminal is triggered according to predetermined manner Light light.Due to judging user whether in the deduction activity with singing sow by rocking directly triggering, so that Determine whether the control of unlatching light, and then without the manually opened signal light control to mobile terminal of user, therefore improve shifting The intelligence degree of dynamic terminal.
Fourth embodiment
Referring to Fig. 8, Fig. 8 is the structure chart of mobile terminal provided in an embodiment of the present invention, can realize that the first to the second is real The details of lamp light control method in example is applied, and reaches identical effect.As shown in figure 8, mobile terminal 800 includes:At least one Processor 801, memory 802, at least one network interface 804 and user interface 803.Each component in mobile terminal 800 It is coupled by bus system 805.It is understood that bus system 805 is used to realize the connection communication between these components.Always Linear system unites 805 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But in order to clear For the sake of Chu's explanation, various buses are all designated as bus system 805 in fig. 8.
Wherein, user interface 803 can include display, keyboard or pointing device (for example, mouse, trace ball (track ball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or Person their subset, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for Realize various basic businesses and process hardware based task.Application program 8022, comprising various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.
In embodiments of the present invention, by the program for calling memory 802 to store or instruction, specifically, can be application The program stored in program 8022 or instruction, processor 801 are used for:Obtain the acceleration magnitude of acceleration transducer detection;If plus Velocity amplitude meets pre-conditioned, gathers audio signal;Extract the audio-frequency fingerprint in audio signal;Will extract audio-frequency fingerprint with it is pre- If database compare, determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, according to pre- If the light that mode triggers mobile terminal is lighted.
The method that the embodiments of the present invention are disclosed can apply in processor 801, or be realized by processor 801. Processor 801 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 801 or software form.Above-mentioned treatment Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable GateArray, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 802, processor 801 reads the information in memory 802, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing the application function or its combination.
Realized for software, can be by the skill that performs the module (such as process, function etc.) of this paper functions to realize this paper Art.Software code is storable in memory and by computing device.Memory can be within a processor or outside processor Realize in portion.
Optionally, processor 801 is additionally operable to:If the audio-frequency fingerprint meets musical features, the mobile terminal is obtained Positional information;Inquiry request is sent to default server according to the positional information, the inquiry request is used to inquire about described Positional information is in preset time period with the presence or absence of default campaign item;Receive the Query Result of the server;If described look into Ask result and there is default campaign item in preset time period for the positional information, it is described mobile whole according to predetermined manner triggering The light at end is lighted.
Optionally, it is pre-conditioned including:Acceleration magnitude is more than the first preset value;Or, determined to move according to acceleration magnitude Terminal rocks number of times more than the second preset value;Or, determine that mobile terminal rocks amplitude and preset more than the 3rd according to acceleration magnitude Value.
Optionally, processor 801 is additionally operable to:Flash lamp or screen flicker according to predetermined manner triggering mobile terminal;Or Person, flashes according to the breath light of predetermined manner triggering mobile terminal.
Optionally, processor 801 is additionally operable to:According to mobile terminal rock amplitude size control flash lamp or screen it is bright Degree size;Or, the brightness size of size control flash lamp or screen according to acceleration magnitude.
Optionally, breath light includes two light groups, and processor 801 is additionally operable to:Direction triggering is rocked according to mobile terminal right The light group answered flashes.
Optionally, processor 801 is additionally operable to:Identification musical designation, determines music style;It is default according to music style setting The frequency of light flash in mode.
In the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If acceleration magnitude meets pre-conditioned, Collection audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with default database, Determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, mobile terminal is triggered according to predetermined manner Light light.Due to judging user whether in the deduction activity with singing sow by rocking directly triggering, so that Determine whether the control of unlatching light, and then without the manually opened signal light control to mobile terminal of user, therefore improve shifting The intelligence degree of dynamic terminal.
5th embodiment
Fig. 9 is referred to, Fig. 9 is the structure chart of mobile terminal provided in an embodiment of the present invention, can realize the first to the second The details of lamp light control method in embodiment, and reach identical effect.As shown in figure 9, mobile terminal 900 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940, processor 950, audio Circuit 960, communication module 970 and power supply 980, also including camera (not shown).
Wherein, input block 930 can be used to receive the numeral or character information of user input, and produce and mobile terminal 900 user is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 930 can With including contact panel 931.Contact panel 931, also referred to as touch-screen, can collect user thereon or neighbouring touch operation (such as user uses the operations of any suitable object or annex on contact panel 931 such as finger, stylus), and according to advance The formula of setting drives corresponding attachment means.Optionally, contact panel 931 may include touch detecting apparatus and touch controller Two parts.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, Give the processor 950 again, and the order sent of receiving processor 950 and can be performed.Furthermore, it is possible to using resistance-type, The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input block 930 can also include other input equipments 932, and other input equipments 932 can include but is not limited to physical keyboard, function key One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 940 can be used for display by the information of user input or be supplied to information and the movement of user The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hairs The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when touch display screen inspection Measure thereon or after neighbouring touch operation, processor 950 is sent to determine the type of touch event, with preprocessor 950 provide corresponding visual output according to the type of touch event in touch display screen.
Wherein processor 950 is the control centre of mobile terminal 900, using various interfaces and connection whole mobile phone Various pieces, by running or performing software program and/or module of the storage in first memory 921, and call storage Data in second memory 922, perform the various functions and processing data of mobile terminal 900, so as to mobile terminal 900 Carry out integral monitoring.Optionally, processor 950 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/ Or the data in the second memory 922, processor 950 is used for:Obtain the acceleration magnitude of acceleration transducer detection;If accelerating Angle value meets pre-conditioned, gathers audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint that will be extracted with it is default Database compare, determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, according to default The light that mode triggers mobile terminal is lighted.
Optionally, processor 950 is additionally operable to:If the audio-frequency fingerprint meets musical features, the mobile terminal is obtained Positional information;Inquiry request is sent to default server according to the positional information, the inquiry request is used to inquire about described Positional information is in preset time period with the presence or absence of default campaign item;Receive the Query Result of the server;If described look into Ask result and there is default campaign item in preset time period for the positional information, it is described mobile whole according to predetermined manner triggering The light at end is lighted.
Optionally, it is pre-conditioned including:Acceleration magnitude is more than the first preset value;Or, determined to move according to acceleration magnitude Terminal rocks number of times more than the second preset value;Or, determine that mobile terminal rocks amplitude and preset more than the 3rd according to acceleration magnitude Value.
Optionally, processor 950 is additionally operable to:Flash lamp or screen flicker according to predetermined manner triggering mobile terminal;Or Person, flashes according to the breath light of predetermined manner triggering mobile terminal.
Optionally, processor 950 is additionally operable to:According to mobile terminal rock amplitude size control flash lamp or screen it is bright Degree size;Or, the brightness size of size control flash lamp or screen according to acceleration magnitude.
Optionally, breath light includes two light groups, and processor 950 is additionally operable to:Direction triggering is rocked according to mobile terminal right The light group answered flashes.
Optionally, processor 950 is additionally operable to:Identification musical designation, determines music style;It is default according to music style setting The frequency of light flash in mode.
In the embodiment of the present invention, the acceleration magnitude of acceleration transducer detection is obtained;If acceleration magnitude meets pre-conditioned, Collection audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with default database, Determine whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, mobile terminal is triggered according to predetermined manner Light light.Due to judging user whether in the deduction activity with singing sow by rocking directly triggering, so that Determine whether the control of unlatching light, and then without the manually opened signal light control to mobile terminal of user, therefore improve shifting The intelligence degree of dynamic terminal.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other Mode is realized.For example, device embodiment described above is only schematical, for example, the division of unit, is only one kind Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication connection of device or unit by some interfaces, Can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks On unit.Some or all of unit therein can be according to the actual needs selected to realize the mesh of embodiment of the present invention scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can store In a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words to existing Having part that technology contributes or the part of the technical scheme can be embodied in the form of software product, the computer Software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be personal meter Calculation machine, server, or network equipment etc.) perform all or part of step of each embodiment method of the invention.And it is foregoing Storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
More than, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all cover Within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (14)

1. a kind of lamp light control method, is applied to mobile terminal, it is characterised in that including:
Obtain the acceleration magnitude of acceleration transducer detection;
If the acceleration magnitude meets pre-conditioned, audio signal is gathered;
Extract the audio-frequency fingerprint in the audio signal;
The audio-frequency fingerprint of extraction is compared with default database, determines whether the audio-frequency fingerprint meets musical features;
If the audio-frequency fingerprint meets musical features, the light for triggering the mobile terminal according to predetermined manner is lighted.
2. method according to claim 1, it is characterised in that if the audio-frequency fingerprint meets musical features, according to The step of light that predetermined manner triggers the mobile terminal is lighted, including:
If the audio-frequency fingerprint meets musical features, the positional information of the mobile terminal is obtained;
Inquiry request is sent to default server according to the positional information, the inquiry request is used to inquire about the position letter Breath is in preset time period with the presence or absence of default campaign item;
Receive the Query Result of the server;
If the Query Result is the positional information has default campaign item in preset time period, touched according to predetermined manner The light for sending out mobile terminal described is lighted.
3. method according to claim 1, it is characterised in that it is described it is pre-conditioned including:
The acceleration magnitude is more than the first preset value;
Or, determine that the mobile terminal rocks number of times more than the second preset value according to the acceleration magnitude;
Or, determine that the mobile terminal rocks amplitude more than the 3rd preset value according to the acceleration magnitude.
4. method according to claim 3, it is characterised in that the lamp that the mobile terminal is triggered according to predetermined manner The step of light is lighted, including:
Flash lamp or the screen flicker of the mobile terminal are triggered according to predetermined manner;
Or, the breath light for triggering the mobile terminal according to predetermined manner flashes.
5. method according to claim 4, it is characterised in that the sudden strain of a muscle that the mobile terminal is triggered according to predetermined manner The step of light lamp or screen flicker, including:
The size for rocking amplitude according to mobile terminal controls the brightness size of the flash lamp or screen;
Or, the size according to the acceleration magnitude controls the brightness size of the flash lamp or screen.
6. method according to claim 4, it is characterised in that the breath light includes two light groups, described according to default The step of breath light that mode triggers the mobile terminal flashes, including:
Direction is rocked according to the mobile terminal and triggers corresponding light group flicker.
7. method according to claim 1, it is characterised in that the lamp that the mobile terminal is triggered according to predetermined manner Before the step of light is lighted, methods described also includes:
Identification musical designation, determines music style;
The frequency of light flash in the predetermined manner is set according to the music style.
8. a kind of mobile terminal, it is characterised in that including:
Acceleration acquisition module, the acceleration magnitude for obtaining acceleration transducer detection;
Audio collection module, if meeting pre-conditioned for the acceleration magnitude, gathers audio signal;
Extraction module, for extracting the audio-frequency fingerprint in the audio signal;
Whether comparing module, for the audio-frequency fingerprint of extraction to be compared with default database, determine the audio-frequency fingerprint Meet musical features;
Control module, if meeting musical features for the audio-frequency fingerprint, the lamp of the mobile terminal is triggered according to predetermined manner Light is lighted.
9. mobile terminal according to claim 8, it is characterised in that the control module includes:
Position acquisition unit, the positional information for obtaining the mobile terminal;
Transmitting element, for sending inquiry request to default server according to the positional information, the inquiry request is used for The positional information is inquired about in preset time period with the presence or absence of default campaign item;
Receiving unit, the Query Result for receiving the server;
Control unit, if being that the positional information has default campaign item in preset time period for the Query Result, The light for triggering the mobile terminal according to predetermined manner is lighted.
10. mobile terminal according to claim 8, it is characterised in that it is described it is pre-conditioned including:
The acceleration magnitude is more than the first preset value;
Or, determine that the mobile terminal rocks number of times more than the second preset value according to the acceleration magnitude;
Or, determine that the mobile terminal rocks amplitude more than the 3rd preset value according to the acceleration magnitude.
11. mobile terminals according to claim 10, it is characterised in that the control module specifically for:According to default Mode triggers flash lamp or the screen flicker of the mobile terminal;Or, trigger exhaling for the mobile terminal according to predetermined manner Inhale lamp flicker.
12. mobile terminals according to claim 11, it is characterised in that the control module specifically for:According to movement Terminal rocks the size control flash lamp of amplitude or the brightness size of screen;Or, according to the size of the acceleration magnitude Control the brightness size of the flash lamp or screen.
13. mobile terminals according to claim 11, it is characterised in that the breath light includes two light groups, the control Molding block specifically for:Direction is rocked according to the mobile terminal and triggers corresponding light group flicker.
14. mobile terminals according to claim 8, it is characterised in that the mobile terminal also includes:
Identification module, for recognizing musical designation, determines music style;
Setting module, the frequency for setting light flash in the predetermined manner according to the music style.
CN201710116489.2A 2017-03-01 2017-03-01 A kind of lamp light control method and mobile terminal Active CN106851008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710116489.2A CN106851008B (en) 2017-03-01 2017-03-01 A kind of lamp light control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710116489.2A CN106851008B (en) 2017-03-01 2017-03-01 A kind of lamp light control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106851008A true CN106851008A (en) 2017-06-13
CN106851008B CN106851008B (en) 2019-07-26

Family

ID=59138457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710116489.2A Active CN106851008B (en) 2017-03-01 2017-03-01 A kind of lamp light control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106851008B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222631A (en) * 2017-06-22 2017-09-29 宇龙计算机通信科技(深圳)有限公司 A kind of information cuing method, device and terminal device
CN114422846A (en) * 2021-12-31 2022-04-29 深圳市智岩科技有限公司 Lamp effect control method, system, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707644A (en) * 2009-08-13 2010-05-12 上海酷吧信息技术有限公司 Device and method for linkage of music and flash light of mobile terminal
CN201509236U (en) * 2009-08-27 2010-06-16 惠州Tcl移动通信有限公司 Mobile phone device for realizing shaking rod
CN104053280A (en) * 2014-06-12 2014-09-17 苏州乐聚一堂电子科技有限公司 Song automatic identification lamplight special effect system
CN104410741A (en) * 2014-11-16 2015-03-11 贾立进 Acousto-optic music mobile phone
US20160077189A1 (en) * 2013-05-22 2016-03-17 Fraunhofer Portugal Research Mobile portable device and positioning
CN105915708A (en) * 2016-04-08 2016-08-31 广东欧珀移动通信有限公司 Breathing lamp control method and device and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707644A (en) * 2009-08-13 2010-05-12 上海酷吧信息技术有限公司 Device and method for linkage of music and flash light of mobile terminal
CN201509236U (en) * 2009-08-27 2010-06-16 惠州Tcl移动通信有限公司 Mobile phone device for realizing shaking rod
US20160077189A1 (en) * 2013-05-22 2016-03-17 Fraunhofer Portugal Research Mobile portable device and positioning
CN104053280A (en) * 2014-06-12 2014-09-17 苏州乐聚一堂电子科技有限公司 Song automatic identification lamplight special effect system
CN104410741A (en) * 2014-11-16 2015-03-11 贾立进 Acousto-optic music mobile phone
CN105915708A (en) * 2016-04-08 2016-08-31 广东欧珀移动通信有限公司 Breathing lamp control method and device and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222631A (en) * 2017-06-22 2017-09-29 宇龙计算机通信科技(深圳)有限公司 A kind of information cuing method, device and terminal device
CN114422846A (en) * 2021-12-31 2022-04-29 深圳市智岩科技有限公司 Lamp effect control method, system, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106851008B (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN106020613A (en) Operation method and mobile terminal for unread messages
CN107918563A (en) A kind of method, data processing equipment and user equipment replicated and paste
CN106775424A (en) A kind of screenshotss processing method and mobile terminal
CN107145348A (en) A kind of application program split screen processing method and mobile terminal
CN106341538B (en) A kind of method for pushing and mobile terminal of lyrics poster
CN107526492A (en) The interface display method and mobile terminal of a kind of application program
CN104469717B (en) Note transmission method and device
CN106803844A (en) A kind of lamp light control method and mobile terminal
CN107741820A (en) A kind of entering method keyboard display methods and mobile terminal
WO2021003673A1 (en) Content pushing method and related product
CN106651338A (en) Method for payment processing and terminal
CN107292235A (en) The acquisition method and Related product of fingerprint
CN108322523A (en) Method, server and mobile terminal are recommended in a kind of application
CN106383638A (en) Paying way displaying method and mobile terminal
CN107221347A (en) Method and terminal that a kind of audio is played
CN106503501A (en) A kind of startup method of user model and mobile terminal
CN106371659A (en) Function entry enable method and mobile terminal
CN106484301A (en) A kind of method of hiden application and terminal
CN106210106A (en) A kind of intelligent meeting implementation method and mobile terminal
CN106446180A (en) Song recognition method and mobile terminal
CN108509204A (en) A kind of application program login method and mobile terminal
CN107369017A (en) Quick payment implementation method and Related product
CN106959797A (en) The method to set up and mobile terminal of a kind of notice footmark
CN106851008A (en) A kind of lamp light control method and mobile terminal
CN107045418A (en) A kind of method, device, computer installation and the storage medium of information input

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171107

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant after: VIVO MOBILE COMMUNICATION CO., LTD.

Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant before: VIVO MOBILE COMMUNICATION CO., LTD.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200521

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd.

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Co-patentee before: Wewo Mobile Communication Co. Ltd. Beijing branch

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.