CN106851008B - 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
CN106851008B
CN106851008B CN201710116489.2A CN201710116489A CN106851008B CN 106851008 B CN106851008 B CN 106851008B CN 201710116489 A CN201710116489 A CN 201710116489A CN 106851008 B CN106851008 B CN 106851008B
Authority
CN
China
Prior art keywords
mobile terminal
light
audio
preset
frequency fingerprint
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
CN201710116489.2A
Other languages
Chinese (zh)
Other versions
CN106851008A (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
Vivo Mobile Communication Co Ltd Beijing Branch
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, Vivo Mobile Communication Co Ltd Beijing Branch 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of lamp light control method and mobile terminal, which includes: the acceleration value for obtaining acceleration transducer detection;If the acceleration value meets preset condition, audio signal is acquired;Extract the audio-frequency fingerprint in the audio signal;The audio-frequency fingerprint of extraction is compared with preset database, determines whether the audio-frequency fingerprint meets musical features;If the audio-frequency fingerprint meets musical features, lighted according to the light that predetermined manner triggers the mobile terminal.Due to judging whether user is in the deduction activity with singing sow by rocking directly triggering, the control for opening light is determined whether, and then be not necessarily to 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 methods and mobile terminal.
Background technique
It is well known that in order to preferably create an atmosphere, usually being bought in existing amusement party (such as concert) The sparkling object such as glo-stick uses.Usually after a single use due to glo-stick, it will abandon, to cause a large amount of Rubbish, while causing a large amount of wasting of resources.For this purpose, certain customers generally use 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 manually opened, intelligence degree compared with It is low.
Summary of the invention
The embodiment of the present invention provides a kind of lamp light control method and mobile terminal, can not intelligent opening to solve mobile terminal The problem of light.
In a first aspect, being applied to mobile terminal the embodiment of the invention provides a kind of lamp light control method, comprising:
Obtain the acceleration value of acceleration transducer detection;
If the acceleration value meets preset condition, audio signal is acquired;
Extract the audio-frequency fingerprint in the audio signal;
The audio-frequency fingerprint of extraction is compared with preset database, determines whether the audio-frequency fingerprint meets music spy Sign;
If the audio-frequency fingerprint meets musical features, lighted according to the light that predetermined manner triggers the mobile terminal.
Second aspect, the embodiment of the invention also provides a kind of mobile terminals, comprising:
Acceleration obtains module, for obtaining the acceleration value of acceleration transducer detection;
Audio collection module acquires audio signal if meeting preset condition for the acceleration value;
Extraction module, for extracting the audio-frequency fingerprint in the audio signal;
Comparison module determines the audio-frequency fingerprint for the audio-frequency fingerprint of extraction to be compared with preset database Whether musical features are met;
Control module triggers the mobile terminal according to predetermined manner if meeting musical features for the audio-frequency fingerprint Light light.
In this way, obtaining the acceleration value of acceleration transducer detection in the embodiment of the present invention;If the acceleration value meets Preset condition acquires audio signal;Extract the audio-frequency fingerprint in the audio signal;By the audio-frequency fingerprint of extraction and preset number It is compared according to library, determines 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 whether user is in song by rocking directly triggering It sings in the deduction activity of performance, determines whether the control for opening light, and then manually opened to mobile terminal without user Signal light control, therefore improve the intelligence degree of mobile terminal.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart for the lamp light control method that first embodiment of the invention provides;
Fig. 2 is one of the flow chart of lamp light control method that second embodiment of the invention provides;
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 for the lamp light control method that second embodiment of the invention provides;
Fig. 5 is one of the structure chart of mobile terminal that third embodiment of the invention provides;
Fig. 6 is the structure chart of control module in the mobile terminal of third embodiment of the invention offer;
Fig. 7 is the two of the structure chart for the mobile terminal that third embodiment of the invention provides;
Fig. 8 is the structure chart for the mobile terminal that fourth embodiment of the invention provides;
Fig. 9 is the structure chart for the mobile terminal that fifth embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
First embodiment
It is the flow chart of lamp light control method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, which answers For mobile terminal, as shown in Figure 1, comprising the following steps:
Step 101, the acceleration value of acceleration transducer detection is obtained.
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, according to the variation feelings of 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 value, to know The situation of change of acceleration.
Step 102, if acceleration value meets preset condition, audio signal is acquired.
In the step, the content of above-mentioned preset condition can be configured according to actual needs, for example, preset condition can be with It include: that acceleration value is greater than the first preset value;Alternatively, it is default greater than second to determine that mobile terminal rocks number according to acceleration value Value;Alternatively, determining that mobile terminal rocks amplitude greater than third preset value according to acceleration value.
In the present embodiment, it can determine whether mobile terminal rocks according to the situation of change of above-mentioned acceleration value, rock In the process, meet acceleration value greater than the first preset value, rock number and be greater than the greater than the second preset value and the amplitude rocked Any one of three preset values or two Xiang Junke are with automatic trigger mobile terminal acquisition audio signal.Specifically, can control Mobile terminal opens the audio signal around voice acquisition module (such as microphone) acquisition.
Step 103, the audio-frequency fingerprint in audio signal is extracted.
The step can carry out the extraction of audio-frequency fingerprint, specifically using preset extracting mode to the audio signal of acquisition , the mode for extracting audio-frequency fingerprint can be configured according to actual needs, be not further limited herein.
Step 104, the audio-frequency fingerprint of extraction is compared with preset database, determines whether audio-frequency fingerprint meets sound Happy feature.
In the step, musical features are stored in above-mentioned database, whether audio-frequency fingerprint meets musical features for identification, If audio-frequency fingerprint meets musical features, it can determine that user is in default campaign item, which can wrap Include the art activities that concert, company's annual meeting, birthday party etc. have singing sow.Specifically, above-mentioned database can store On mobile terminals, it can also be stored on external server, determining sound is interacted by mobile terminal and external server Whether frequency fingerprint meets musical features.
Step 105, it if audio-frequency fingerprint meets musical features, is lighted according to the light of predetermined manner triggering mobile terminal.
It, can be according to predetermined manner automatic trigger mobile terminal if audio-frequency fingerprint meets musical features in the step Light is lighted, to reach the function of light prompting.Wherein, triggering mode that the light of mobile terminal is lighted can be according to reality It needs to be configured, is always on, can also be flashed according to certain frequency for example, can control light.Specifically, the controlling party of light Formula is not further herein to be limited.
In this way, obtaining the acceleration value of acceleration transducer detection in the embodiment of the present invention;If acceleration value meets default Condition acquires audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction and preset database are carried out It compares, determines whether audio-frequency fingerprint meets musical features;If audio-frequency fingerprint meets musical features, triggers and move according to predetermined manner The light of terminal is lighted.Due to judging whether user is in the deduction activity with singing sow by rocking directly triggering, It determines whether the control of unlatching light, and then is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve The intelligence degree of mobile terminal.
Second embodiment
Further, referring to Fig. 2, in the lamp light control method that second embodiment of the invention provides, with first embodiment Difference be in the present embodiment, whether mobile terminal further can have default campaign item to the position being presently in Further judged, so that the accuracy for whether being in default campaign item judgement to user improved, to avoid maloperation. As shown in Fig. 2, above-mentioned steps 105 include:
Step 1051, if the audio-frequency fingerprint meets musical features, the location information of mobile terminal is obtained.
The step can trigger mobile terminal and further obtain shifting after determining whether audio-frequency fingerprint meets musical features The current location information of dynamic terminal.The location information obtain mode can be configured according to actual needs, do not do herein into The restriction of one step, specifically, the location information that positioning function obtains mobile terminal can be opened.
Step 1052, inquiry request is sent to preset server according to location information, inquiry request is used for inquiring position Information whether there is default campaign item within a preset period of time.
In the step, above-mentioned preset server can be the platform dedicated for inquiring default campaign item, can also be with It is the service platform that third party provides, it is not further herein to be limited;Specifically, being stored in preset server above-mentioned Default campaign item.The preset server can be one at the same time, or multiple.The above-mentioned preset period can The front and back for thinking transmission inquiry request corresponding time point for a period of time, is also possible to the period (example carried in inquiry request As mobile terminal generates a period according to current time point).
Whether preset server is after receiving inquiry request, it will inquired in preset time period and deposited according to inquiry request In default campaign item, corresponding query result is then sent to mobile terminal.The content for wherein presetting campaign item can root It is configured according to actual needs, such as the default campaign item may include that concert, company's annual meeting, birthday party etc. have song Sing the art activities of performance.
Step 1053, the query result of server is received.
In the present embodiment, the query result that server is sent may include location information within a preset period of time in the presence of default Default campaign item is not present in campaign item and location information within a preset period of time.Specifically, when default campaign item includes When concert, if 00 30 dividing when dividing to 2016 2 months 15 days 21 when the time of concert is 2016 2 months 15 days 19, place is A.If user is with being located at B, 00 divides and rock at 2016 2 months 15 days 18 using mobile terminal, and acceleration meet it is above-mentioned default Condition, the query result that server returns at this time are that default campaign item is not present in location information within a preset period of time.If with Family with being located at A, using mobile terminal 00 is divided and is rocked at 2016 2 months 15 days 16, and acceleration meets above-mentioned preset condition, this When server return query result be location information default campaign item is not present within a preset period of time.If user is located at A Ground 00 is divided and is rocked at 2016 2 months 15 days 18 using mobile terminal, and acceleration meets above-mentioned preset condition, services at this time The query result that device returns is that default campaign item is not present in location information within a preset period of time.
Step 1054, if query result is that location information has default campaign item within a preset period of time, according to default The light that mode triggers mobile terminal is lighted.
Optionally, due to the light type that is arranged on mobile terminal can there are many, can to different light into Row control, Lai Shixian light prompting.For example, above-mentioned light may include flash lamp, screen and breath light.Specifically, above-mentioned press The step of being lighted according to the light that predetermined manner triggers mobile terminal, comprising:
Flash lamp or screen flicker according to predetermined manner triggering mobile terminal;
Alternatively, being flashed according to the breath light of predetermined manner triggering mobile terminal.
It should be noted that flash lamp, screen and breath light flashing can also be controlled simultaneously in other embodiments, or Alternately control flash lamp, screen and breath light flashing etc., will not enumerate herein.Wherein, above-mentioned flash lamp is usually postposition Flash lamp, and be arranged close to camera;In addition, partial movement terminal is additionally provided with preposition flash lamp, above-mentioned light may be The preposition flash lamp.The position of above-mentioned breath light can be configured according to actual needs, for example, can be set in mobile terminal The back side, as shown in figure 3, the back side of mobile terminal be equipped with LOGO breath light.
Specifically, the specific implementation of above-mentioned predetermined manner can be configured according to actual needs, it below will be with not The light of same type is arranged different predetermined manners and is described in detail:
For example, above-mentioned trigger according to predetermined manner is moved when being controlled using flash lamp or screen as above-mentioned light The step of flash lamp of dynamic terminal or screen flicker, comprising:
The size control flash lamp of amplitude or the brightness size of screen are rocked according to mobile terminal;
Alternatively, controlling the brightness size of flash lamp or screen according to the size of acceleration value.
In the present embodiment, when the amplitude that mobile terminal rocks is bigger, then the brighter display of light or screen can control;Together When be also possible to that acceleration value is bigger, the brightness for controlling flash lamp or screen is bigger.
When being controlled using breath light as above-mentioned light, if breath light includes two light groups, according to predetermined manner The step of triggering the breath light flashing of mobile terminal, comprising:
Direction, which is rocked, according to mobile terminal triggers corresponding light group flashing.
Specifically, first group of light is in illuminating state when rocking to the left, 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, since different display states can be entered according to the state control light that rocks of mobile terminal, Therefore the interest of signal light control is improved, to improve the Experience Degree of user.
Further, referring to Fig. 4, the different flicker frequency of light can be set for different music, so that lamp The flashing 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 being lighted according to the light of predetermined manner triggering mobile terminal, this method further include:
Step 106, it identifies musical designation, determines music style.
In the step, above-mentioned music style is mainly distinguished from music rhythm, such as may include the fast music of rhythm The slow music with rhythm, can also distinguish from other modes certainly, and multiple rhythm ranks also can be set, do not do herein It is further to limit.
Specifically, can be classified according to musical designation to music, the result of classification can be stored in mobile terminal It is local;It is also possible to be 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 mobile terminal local, can be improved mobile whole The response speed at end can reduce the demand to mobile terminal memory if the result of classification is stored in external server.
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, such as the music that rhythm is fast Corresponding flicker frequency is higher, and the corresponding flicker frequency of the slow music of rhythm is lower.It, can be to music due in the present embodiment Title is identified, and determines music style, selects the frequency of light flash, according to music style so as to enhance user's Experience, while can be with the music atmosphere at significantly more efficient active scene.It is understood that if the name of music can not be recognized Claim, then the frequency of light flash in predetermined manner can be set as to the frequency of default.
Fourth embodiment
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 5, Fig. 5, it is real can be realized the first to the second 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, comparison module 504 and control module 505, in which:
Acceleration obtains module 501, for obtaining the acceleration value of acceleration transducer detection;
Audio collection module 502 acquires audio signal if meeting preset condition for acceleration value;
Extraction module 503, for extracting the audio-frequency fingerprint in audio signal;
Comparison module 504 determines that audio-frequency fingerprint is for the audio-frequency fingerprint of extraction to be compared with preset database It is no to meet musical features;
Control module 505, if meeting musical features for audio-frequency fingerprint, according to the light of predetermined manner triggering mobile terminal It lights.
Optionally, referring to Fig. 6, control module 505 further include:
Position acquisition unit 5051, for obtaining the location information of mobile terminal;
Transmission unit 5052, for sending inquiry request to preset server according to location information, inquiry request is used for Inquiring position information whether there is default campaign item within a preset period of time;
Receiving unit 5053, for receiving the query result of server;
Control unit 5054, if being that the location information has default live within a preset period of time for the query result Dynamic project, is lighted according to the light that predetermined manner triggers the mobile terminal.
Optionally, preset condition includes:
Acceleration value is greater than the first preset value;
Alternatively, determining that mobile terminal rocks number greater than the second preset value according to acceleration value;
Alternatively, determining that mobile terminal rocks amplitude greater than third preset value according to acceleration value.
Optionally, control module 505 is specifically used for: dodging according to the flash lamp or screen of predetermined manner triggering mobile terminal It is bright;Alternatively, being flashed according to the breath light of predetermined manner triggering mobile terminal.
Optionally, control module 505 is specifically used for: the size control flash lamp or screen of amplitude are rocked according to mobile terminal Brightness size;Alternatively, controlling the brightness size of flash lamp or screen according to the size of acceleration value.
Optionally, breath light includes two light groups, and control module 505 is specifically used for: rocking direction touching according to mobile terminal Flashing of sending out light group corresponding.
Optionally, referring to Fig. 7, mobile terminal 500 further include:
Identification module 506, musical designation, determines music style for identification;
Setting module 507, for setting the frequency of light flash in predetermined manner according to music style.
In the embodiment of the present invention, the acceleration value of acceleration transducer detection is obtained;If acceleration value meets preset condition, Acquire audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with preset 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 whether user is in the deduction activity with singing sow by rocking directly triggering, thus Determine whether the control of unlatching light, and then is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve shifting The intelligence degree of dynamic terminal.
Fourth embodiment
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 8, Fig. 8, it is real can be realized the first to the second 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.Various components in mobile terminal 800 It is coupled by bus system 805.It is understood that bus system 805 is for realizing the connection communication between these components.Always Linear system system 805 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.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 may 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, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (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 is intended to include but is not limited to these and arbitrarily its It is suitble to the memory of type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 8022 includes 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 or instruction of calling memory 802 to store, specifically, can be application The program or instruction stored in program 8022, processor 801 are used for: obtaining the acceleration value of acceleration transducer detection;If plus Velocity amplitude meets preset condition, acquires audio signal;Extract the audio-frequency fingerprint in audio signal;By the audio-frequency fingerprint of extraction and in advance If database be compared, 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 disclose can be applied in processor 801, or be realized by processor 801. Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable GateArray, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 802, processor 801 reads the information in memory 802, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (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 executing the application function or combinations thereof.
For software implementations, the skill of this paper can be realized by executing the module (such as process, function etc.) of this paper function Art.Software code is storable in memory and is executed by processor.Memory can in the processor or outside the processor It realizes in portion.
Optionally, processor 801 is also used to: if the audio-frequency fingerprint meets musical features, obtaining the mobile terminal Location information;Inquiry request is sent to preset server according to the positional information, the inquiry request is described for inquiring Location information whether there is default campaign item within a preset period of time;Receive the query result of the server;If described look into It askes result and there is default campaign item within a preset period of time for the location information, it is described mobile whole according to predetermined manner triggering The light at end is lighted.
Optionally, preset condition includes: that acceleration value is greater than the first preset value;It is moved alternatively, being determined according to acceleration value Terminal rocks number greater than the second preset value;Alternatively, it is default greater than third to determine that mobile terminal rocks amplitude according to acceleration value Value.
Optionally, processor 801 is also used 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 also used to: according to mobile terminal rock amplitude size control flash lamp or screen it is bright Spend size;Alternatively, controlling the brightness size of flash lamp or screen according to the size of acceleration value.
Optionally, breath light includes two light groups, and processor 801 is also used to: rocking direction triggering pair according to mobile terminal The light group flashing answered.
Optionally, processor 801 is also used 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 value of acceleration transducer detection is obtained;If acceleration value meets preset condition, Acquire audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with preset 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 whether user is in the deduction activity with singing sow by rocking directly triggering, thus Determine whether the control of unlatching light, and then is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve shifting The intelligence degree of dynamic terminal.
5th embodiment
Referring to Fig. 9, Fig. 9 is the structure chart of mobile terminal provided in an embodiment of the present invention, the first to the second can be realized 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 unit 930, display unit 940, processor 950, audio Circuit 960, communication module 970 and power supply 980 further include camera (not shown).
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 931 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 931 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 950 is given again, and can be received order that processor 950 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit 930 can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 950 is sent to determine the type of touch event, is followed by subsequent processing device 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, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus 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 are used for: obtaining the acceleration value of acceleration transducer detection;If accelerating Angle value meets preset condition, acquires audio signal;Extract the audio-frequency fingerprint in audio signal;By the audio-frequency fingerprint of extraction and preset Database be compared, 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 also used to: if the audio-frequency fingerprint meets musical features, obtaining the mobile terminal Location information;Inquiry request is sent to preset server according to the positional information, the inquiry request is described for inquiring Location information whether there is default campaign item within a preset period of time;Receive the query result of the server;If described look into It askes result and there is default campaign item within a preset period of time for the location information, it is described mobile whole according to predetermined manner triggering The light at end is lighted.
Optionally, preset condition includes: that acceleration value is greater than the first preset value;It is moved alternatively, being determined according to acceleration value Terminal rocks number greater than the second preset value;Alternatively, it is default greater than third to determine that mobile terminal rocks amplitude according to acceleration value Value.
Optionally, processor 950 is also used 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 also used to: according to mobile terminal rock amplitude size control flash lamp or screen it is bright Spend size;Alternatively, controlling the brightness size of flash lamp or screen according to the size of acceleration value.
Optionally, breath light includes two light groups, and processor 950 is also used to: rocking direction triggering pair according to mobile terminal The light group flashing answered.
Optionally, processor 950 is also used 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 value of acceleration transducer detection is obtained;If acceleration value meets preset condition, Acquire audio signal;Extract the audio-frequency fingerprint in audio signal;The audio-frequency fingerprint of extraction is compared with preset 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 whether user is in the deduction activity with singing sow by rocking directly triggering, thus Determine whether the control of unlatching light, and then is not necessarily to 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 may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed 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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can select some or all of unit therein according to the actual needs to realize the mesh of the embodiment of the present invention 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
If function is realized in the form of SFU software functional unit and when sold or used as an independent product, can store In a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing Having the part for the part or the technical solution that technology contributes can be embodied in the form of software products, the computer Software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal meter Calculation machine, server or network equipment etc.) execute all or part of the steps of each embodiment method of the present invention.And it is above-mentioned Storage medium includes: the various media that can store program code such as USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk.
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all cover Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (14)

1. a kind of lamp light control method is applied to mobile terminal characterized by comprising
Obtain the acceleration value of acceleration transducer detection;
If the acceleration value meets preset condition, audio signal is acquired;
Extract the audio-frequency fingerprint in the audio signal;
The audio-frequency fingerprint of extraction is compared with preset database, determines whether the audio-frequency fingerprint meets musical features;
If the audio-frequency fingerprint meets musical features, lighted according to the light that predetermined manner triggers the mobile terminal.
If 2. the method according to claim 1, wherein the audio-frequency fingerprint meets musical features, according to The step of light that predetermined manner triggers the mobile terminal is lighted, comprising:
If the audio-frequency fingerprint meets musical features, the location information of the mobile terminal is obtained;
Inquiry request is sent to preset server according to the positional information, the inquiry request is for inquiring the position letter Breath is within a preset period of time with the presence or absence of default campaign item;
Receive the query result of the server;
If the query result is that the location information has default campaign item within a preset period of time, touched according to predetermined manner The light for sending out mobile terminal described is lighted.
3. the method according to claim 1, wherein the preset condition includes:
The acceleration value is greater than the first preset value;
Alternatively, determining that the mobile terminal rocks number greater than the second preset value according to the acceleration value;
Alternatively, determining that the mobile terminal rocks amplitude greater than third preset value according to the acceleration value.
4. according to the method described in claim 3, it is characterized in that, the lamp for triggering the mobile terminal according to predetermined manner The bright step of luminous point, comprising:
Flash lamp or the screen flicker of the mobile terminal are triggered according to predetermined manner;
Alternatively, being flashed according to the breath light that predetermined manner triggers the mobile terminal.
5. according to the method described in claim 4, it is characterized in that, the sudden strain of a muscle for triggering the mobile terminal according to predetermined manner The step of light lamp or screen flicker, comprising:
The brightness size of the flash lamp or screen is controlled according to the size that mobile terminal rocks amplitude;
Alternatively, controlling the brightness size of the flash lamp or screen according to the size of the acceleration value.
6. described according to default according to the method described in claim 4, it is characterized in that, the breath light includes two light groups Mode triggers the step of breath light flashing of the mobile terminal, comprising:
When rocking to the left, first group of light of control is in illuminating state, and second group of light is in OFF state;It is rocked when to the right When, it controls first group of light and is in OFF state, second group of light is in illuminating state.
7. the method according to claim 1, wherein the lamp for triggering the mobile terminal according to predetermined manner Before the bright step of luminous point, the method also includes:
It identifies 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 characterized by comprising
Acceleration obtains module, for obtaining the acceleration value of acceleration transducer detection;
Audio collection module acquires audio signal if meeting preset condition for the acceleration value;
Extraction module, for extracting the audio-frequency fingerprint in the audio signal;
Whether comparison module determines the audio-frequency fingerprint for the audio-frequency fingerprint of extraction to be compared with preset database Meet musical features;
Control module triggers the lamp of the mobile terminal according to predetermined manner if meeting musical features for the audio-frequency fingerprint Luminous point is bright.
9. mobile terminal according to claim 8, which is characterized in that the control module includes:
Position acquisition unit, for obtaining the location information of the mobile terminal;
Transmission unit, for sending inquiry request to preset server according to the positional information, the inquiry request is used for It inquires the location information within a preset period of time and whether there is default campaign item;
Receiving unit, for receiving the query result of the server;
Control unit, if being that the location information has default campaign item within a preset period of time for the query result, It is lighted according to the light that predetermined manner triggers the mobile terminal.
10. mobile terminal according to claim 8, which is characterized in that the preset condition includes:
The acceleration value is greater than the first preset value;
Alternatively, determining that the mobile terminal rocks number greater than the second preset value according to the acceleration value;
Alternatively, determining that the mobile terminal rocks amplitude greater than third preset value according to the acceleration value.
11. mobile terminal according to claim 10, which is characterized in that the control module is specifically used for: according to default Mode triggers flash lamp or the screen flicker of the mobile terminal;Alternatively, triggering exhaling for the mobile terminal according to predetermined manner Inhale lamp flashing.
12. mobile terminal according to claim 11, which is characterized in that the control module is specifically used for: according to movement The size that terminal rocks amplitude controls the brightness size of the flash lamp or screen;Alternatively, according to the size of the acceleration value Control the brightness size of the flash lamp or screen.
13. mobile terminal according to claim 11, which is characterized in that the breath light includes two light groups, the control Molding block is specifically used for: when rocking to the left, first group of light of control is in illuminating state, and second group of light, which is in, extinguishes shape State;When rocking to the right, controls first group of light and be in OFF state, second group of light is in illuminating state.
14. mobile terminal according to claim 8, which is characterized in that the mobile terminal further include:
Identification module, musical designation, determines music style for identification;
Setting module, for setting the frequency of 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 CN106851008A (en) 2017-06-13
CN106851008B true 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)

Families Citing this family (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 (5)

* 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
CN105915708A (en) * 2016-04-08 2016-08-31 广东欧珀移动通信有限公司 Breathing lamp control method and device and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102013209462A1 (en) * 2013-05-22 2014-11-27 Fraunhofer Portugal Research Self-calibrating infrastructure system for local position recognition

Patent Citations (5)

* 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
CN105915708A (en) * 2016-04-08 2016-08-31 广东欧珀移动通信有限公司 Breathing lamp control method and device and mobile terminal

Also Published As

Publication number Publication date
CN106851008A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN107145348B (en) A kind of application program split screen processing method and mobile terminal
CN106843739B (en) A kind of display control method and mobile terminal of mobile terminal
CN107660036B (en) Lamplight control method and device and storage medium
CN106803844B (en) A kind of lamp light control method and mobile terminal
CN106341538B (en) A kind of method for pushing and mobile terminal of lyrics poster
CN107291317B (en) The selection method and device of target in a kind of virtual scene
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN107329743A (en) Methods of exhibiting, device and the storage medium of five application page
CN106327185A (en) Starting method for payment application and mobile terminal
CN106020613A (en) Operation method and mobile terminal for unread messages
WO2021003673A1 (en) Content pushing method and related product
CN106973167B (en) A kind of income prompting method and mobile terminal
CN107678644A (en) A kind of image processing method and mobile terminal
CN107734142A (en) A kind of photographic method, mobile terminal and server
CN107831989A (en) A kind of Application Parameters method of adjustment and mobile terminal
CN106210106A (en) A kind of intelligent meeting implementation method and mobile terminal
CN106445326A (en) Operation control method and mobile terminal
CN108170342A (en) Application Program Interface display methods and device, terminal, readable storage medium storing program for executing
CN106371659A (en) Function entry enable method and mobile terminal
CN106383638A (en) Paying way displaying method and mobile terminal
CN106851008B (en) A kind of lamp light control method and mobile terminal
CN106959797B (en) A kind of setting method and mobile terminal notifying footmark
CN108549518A (en) A kind of method, apparatus that music information is shown and terminal device
CN110097895A (en) A kind of absolute music detection method, device and storage medium
CN107566769B (en) A kind of video recording method and mobile terminal

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

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
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.

TR01 Transfer of patent right