CN106803844B - 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
CN106803844B
CN106803844B CN201710116268.5A CN201710116268A CN106803844B CN 106803844 B CN106803844 B CN 106803844B CN 201710116268 A CN201710116268 A CN 201710116268A CN 106803844 B CN106803844 B CN 106803844B
Authority
CN
China
Prior art keywords
mobile terminal
light
preset
default
value
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
CN201710116268.5A
Other languages
Chinese (zh)
Other versions
CN106803844A (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 CN201710116268.5A priority Critical patent/CN106803844B/en
Publication of CN106803844A publication Critical patent/CN106803844A/en
Application granted granted Critical
Publication of CN106803844B publication Critical patent/CN106803844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/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
    • 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)
  • Telephone Function (AREA)
  • Telephonic Communication Services (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, the location information of the mobile terminal is obtained;Inquiry request is sent to preset server according to the positional information, the inquiry request whether there is default campaign item for inquiring the location information within a preset period of time;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, lighted according to the light that predetermined manner triggers the mobile terminal.Due to judging whether user is in default campaign item 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, 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 institute's rheme Confidence 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, according to default side The light that formula triggers the mobile terminal is lighted.
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;
Position acquisition module obtains the position letter of the mobile terminal if meeting preset condition for the acceleration value Breath;
Sending module, for sending inquiry request, the inquiry request to preset server according to the positional information It whether there is default campaign item for inquiring the location information within a preset period of time;
Receiving module, for receiving the query result of the server;
Control module, if being that the location information has default active entry within a preset period of time for the query result Mesh is lighted according to the light that predetermined manner triggers the mobile terminal.
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 obtains the location information of the mobile terminal;Inquiry is sent to preset server according to the positional information to ask It asks, the inquiry request whether there is default campaign item for inquiring the location information within a preset period of time;Receive institute State the query result of server;If the query result is that the location information has default active entry within a preset period of time Mesh is lighted according to the light that predetermined manner triggers the mobile terminal.Due to judging whether user locates by rocking directly triggering In default campaign item, to automatically determine whether the control of unlatching light, and then manually opened to mobile whole without user The signal light control at end, 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 the flow chart for the 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 structure chart for the mobile terminal that third embodiment of the invention provides;
Fig. 5 is the structure chart of control module in the mobile terminal of third embodiment of the invention offer;
Fig. 6 is the structure chart for the mobile terminal that fourth embodiment of the invention provides;
Fig. 7 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, the location information of mobile terminal is obtained.
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 can obtain the location information of mobile terminal with automatic trigger.The location information obtains Mode can be configured according to actual needs, it is not further herein to be limited, obtained specifically, positioning function can be opened Take the location information of mobile terminal.
Step 103, inquiry request is sent to preset server according to location information, inquiry request is used for poll bit confidence Breath is within a preset period of time with the presence or absence of default campaign item.
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 104, 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 105, if query result is that location information has default campaign item within a preset period of time, according to default side The light of formula triggering mobile terminal is lighted.
In the step, triggering the mode that the light of mobile terminal is lighted can be configured according to actual needs, for example, can It is always on, can also be flashed according to certain frequency with controlling light.It is limited specifically, the control mode of light is not further herein It is fixed, as long as light prompting function can be reached.
In this way, obtaining the acceleration value of acceleration transducer detection in the embodiment of the present invention;If acceleration value meets default Condition obtains the location information of mobile terminal;Inquiry request is sent to preset server according to location information, inquiry request is used It whether there is default campaign item within a preset period of time in inquiring position information;Receive the query result of server;If inquiry As a result there is default campaign item within a preset period of time for location information, according to the light point of predetermined manner triggering mobile terminal It is bright.Due to judging whether user is in default campaign item by rocking directly triggering, to automatically determine whether to open lamp The control of light, and then it is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve the intelligence of mobile terminal Degree.
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, mobile terminal can further to current environment whether be in default campaign item carry out into The judgement of one step, so that the accuracy for whether being in default campaign item judgement to user improved, to avoid maloperation.Such as Fig. 2 Shown, above-mentioned steps 105 include:
Step 1051, audio signal is acquired.
It can be that location information is default receiving the query result that above-mentioned preset server is sent in the step When there is default campaign item in the period, the audio signal around voice acquisition module (such as microphone) acquisition is opened, thus Judge whether that someone is hailing in singing or people.
Step 1052, judge whether the volume value of the audio signal of acquisition is greater than default volume value;
The size of above-mentioned default volume value can be configured according to actual needs, not further herein to be limited.If The volume value of the audio signal of acquisition is greater than preset value, it is determined that someone is hailing in singing or people, so as to automatic Trigger the control to light;If acquisition audio signal volume value be less than or equal to preset value, it is determined that nobody sing or Person people are hailing, without triggering the control to light.
Step 1053, it if the volume value of the audio signal of acquisition is greater than default volume value, triggers and moves according to predetermined manner The light of 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, to realize 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.
3rd embodiment
Referring to fig. 4, Fig. 4 is the structure chart of mobile terminal provided in an embodiment of the present invention, and it is real to 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 4, mobile terminal 400 is obtained including acceleration Module 401, position acquisition module 402, sending module 403, receiving module 404 and control module 405, in which:
Acceleration obtains module 401, for obtaining the acceleration value of acceleration transducer detection;
Position acquisition module 402 obtains the location information of mobile terminal if meeting preset condition for acceleration value;
Sending module 403, for sending inquiry request to preset server according to location information, inquiry request is for looking into Ask location information whether there is default campaign item within a preset period of time;
Receiving module 404, for receiving the query result of server;
Control module 405 is pressed if being that location information has default campaign item within a preset period of time for query result It is lighted according to the light of predetermined manner triggering mobile terminal.
Optionally, referring to Fig. 5, control module 405 further include:
Audio collection unit 4051, for acquiring audio signal;
Judging unit 4052, for judging whether the volume value of audio signal of acquisition is greater than default volume value;
Control unit 4053, if the volume value of the audio signal for acquisition is greater than default volume value, according to predetermined manner The light of triggering mobile terminal is lighted.
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 405 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 405 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 405 is specifically used for: rocking direction touching according to mobile terminal Flashing of sending out light group corresponding.
In the embodiment of the present invention, the acceleration value of acceleration transducer detection is obtained;If acceleration value meets preset condition, Obtain the location information of mobile terminal;Inquiry request is sent to preset server according to location information, inquiry request is for looking into Ask location information whether there is default campaign item within a preset period of time;Receive the query result of server;If query result There is default campaign item within a preset period of time for location information, is lighted according to the light of predetermined manner triggering mobile terminal. Due to judging whether user is in default campaign item by rocking directly triggering, to automatically determine whether to open light Control, and then it is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve the intelligence degree of mobile terminal.
Fourth embodiment
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 6, Fig. 6, 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 fig. 6, mobile terminal 600 includes: at least one Processor 601, memory 602, at least one network interface 604 and user interface 603.Various components in mobile terminal 600 It is coupled by bus system 605.It is understood that bus system 605 is for realizing the connection communication between these components.Always Linear system system 605 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 605 in Fig. 6.
Wherein, user interface 603 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 602 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 602 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 602 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 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 6022 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 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application The program or instruction stored in program 6022, processor 601 are used for: obtaining the acceleration value of acceleration transducer detection;If plus Velocity amplitude meets preset condition, obtains the location information of mobile terminal;It is sent and is inquired to preset server according to location information Request, inquiry request whether there is default campaign item for inquiring position information within a preset period of time;Receive server Query result;If query result is that location information has default campaign item within a preset period of time, triggered according to predetermined manner The light of mobile terminal is lighted.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601. Processor 601 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 601 or the instruction of software form.Above-mentioned processing Device 601 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 602, processor 601 reads the information in memory 602, 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 601 is also used to: if the query result is that the location information exists within a preset period of time Default campaign item, acquires audio signal;Judge whether the volume value of the audio signal of acquisition is greater than default volume value;If acquisition The volume value of audio signal be greater than default volume value, lighted according to the light that predetermined manner triggers the mobile terminal.
Optionally, the preset condition includes: that acceleration value is greater than the first preset value;Alternatively, being determined according to acceleration value Mobile terminal rocks number greater than the second preset value;Alternatively, determining that mobile terminal rocks amplitude greater than third according to acceleration value Preset value.
Optionally, processor 601 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 601 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 601 is also used to: rocking direction triggering pair according to mobile terminal The light group flashing answered.
In the embodiment of the present invention, the acceleration value of acceleration transducer detection is obtained;If acceleration value meets preset condition, Obtain the location information of mobile terminal;Inquiry request is sent to preset server according to location information, inquiry request is for looking into Ask location information whether there is default campaign item within a preset period of time;Receive the query result of server;If query result There is default campaign item within a preset period of time for location information, is lighted according to the light of predetermined manner triggering mobile terminal. Due to judging whether user is in default campaign item by rocking directly triggering, to automatically determine whether to open light Control, and then it is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve the intelligence degree of mobile terminal.
5th embodiment
Referring to Fig. 7, Fig. 7 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 fig. 7, mobile terminal 700 includes radio frequency (Radio Frequency, RF) circuit 710, memory 720, input unit 730, display unit 740, processor 750, audio Circuit 760, communication module 770 and power supply 780 further include camera (not shown).
Wherein, input unit 730 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 700 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 731.Touch panel 731, 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 731 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 731 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 750 is given again, and can be received order that processor 750 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 731.In addition to touch panel 731, input unit 730 can also include other input equipments 732, other input equipments 732 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 740 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 700.Display unit 740 may include display panel 741, optionally, can use LCD or organic hair The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 741.
It should be noted that touch panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 750 is sent to determine the type of touch event, is followed by subsequent processing device 750 provide corresponding visual output according to the type of touch event in touch display screen.
Wherein processor 750 is the control centre of mobile terminal 700, 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 721, and calling storage Data in second memory 722 execute the various functions and processing data of mobile terminal 700, thus to mobile terminal 700 Carry out integral monitoring.Optionally, processor 750 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/ Or the data in the second memory 722, processor 750 are used for: obtaining the acceleration value of acceleration transducer detection;If accelerating Angle value meets preset condition, obtains the location information of mobile terminal;Inquiry is sent to preset server according to location information to ask It asks, inquiry request whether there is default campaign item for inquiring position information within a preset period of time;Receive looking into for server Ask result;If query result is that location information has default campaign item within a preset period of time, triggers and move according to predetermined manner The light of dynamic terminal is lighted.
Optionally, processor 750 is also used to: if the query result is that the location information exists within a preset period of time Default campaign item, acquires audio signal;Judge whether the volume value of the audio signal of acquisition is greater than default volume value;If acquisition The volume value of audio signal be greater than default volume value, lighted according to the light that predetermined manner triggers the mobile terminal.
Optionally, the preset condition includes: that acceleration value is greater than the first preset value;Alternatively, being determined according to acceleration value Mobile terminal rocks number greater than the second preset value;Alternatively, determining that mobile terminal rocks amplitude greater than third according to acceleration value Preset value.
Optionally, processor 750 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 750 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 750 is also used to: rocking direction triggering pair according to mobile terminal The light group flashing answered.
In the embodiment of the present invention, the acceleration value of acceleration transducer detection is obtained;If acceleration value meets preset condition, Obtain the location information of mobile terminal;Inquiry request is sent to preset server according to location information, inquiry request is for looking into Ask location information whether there is default campaign item within a preset period of time;Receive the query result of server;If query result There is default campaign item within a preset period of time for location information, is lighted according to the light of predetermined manner triggering mobile terminal. Due to judging whether user is in default campaign item by rocking directly triggering, to automatically determine whether to open light Control, and then it is not necessarily to the manually opened signal light control to mobile terminal of user, therefore improve the intelligence degree of mobile 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 (12)

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, 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.
2. if the method according to claim 1, wherein the query result is the location information pre- If there is default campaign item in the period, the step of lighting according to the light that predetermined manner triggers the mobile terminal, comprising:
If the query result is that the location information has default campaign item within a preset period of time, audio signal is acquired;
Judge whether the volume value of the audio signal of acquisition is greater than default volume value;
If the volume value of the audio signal of acquisition is greater than default volume value, the light of the mobile terminal is triggered according to predetermined manner It lights.
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:
Direction, which is rocked, according to the mobile terminal triggers corresponding light group flashing;
It is described direction rocked according to the mobile terminal trigger the flashing of corresponding light group include:
When rocking to the left, first group of light is in illuminating state, and second group of light is in OFF state;When rocking to the right, First group of light is in OFF state, and second group of light is in illuminating state.
7. a kind of mobile terminal characterized by comprising
Acceleration obtains module, for obtaining the acceleration value of acceleration transducer detection;
Position acquisition module obtains the location information of the mobile terminal if meeting preset condition for the acceleration value;
Sending module, 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 module, for receiving the query result of the server;
Control module, 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.
8. mobile terminal according to claim 7, which is characterized in that the control module includes:
Audio collection unit, for acquiring audio signal;
Judging unit, for judging whether the volume value of audio signal of acquisition is greater than default volume value;
Control unit, if the volume value of the audio signal for acquisition is greater than default volume value, trigger according to predetermined manner described in The light of mobile terminal is lighted.
9. mobile terminal according to claim 7, 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.
10. mobile terminal according to claim 9, which is characterized in that the control module is specifically used for: according to default side Formula triggers flash lamp or the screen flicker of the mobile terminal;Alternatively, triggering the breathing of the mobile terminal according to predetermined manner Lamp flashing.
11. mobile terminal according to claim 10, 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.
12. mobile terminal according to claim 10, which is characterized in that the breath light includes two light groups, the control Molding block is specifically used for: rocking direction according to the mobile terminal and triggers corresponding light group flashing;
It is described direction rocked according to the mobile terminal trigger the flashing of corresponding light group include:
When rocking to the left, first group of light is in illuminating state, and second group of light is in OFF state;When rocking to the right, First group of light is in OFF state, and second group of light is in illuminating state.
CN201710116268.5A 2017-03-01 2017-03-01 A kind of lamp light control method and mobile terminal Active CN106803844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710116268.5A CN106803844B (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
CN201710116268.5A CN106803844B (en) 2017-03-01 2017-03-01 A kind of lamp light control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106803844A CN106803844A (en) 2017-06-06
CN106803844B true CN106803844B (en) 2019-02-15

Family

ID=58987837

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN106803844B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108390947A (en) * 2018-04-25 2018-08-10 上海众人网络安全技术有限公司 A kind of service system and method
CN111885411A (en) * 2020-08-03 2020-11-03 网易(杭州)网络有限公司 Display control method and device in network live broadcast, electronic equipment and storage medium
CN112379699B (en) * 2020-11-19 2023-10-27 广州彩熠灯光股份有限公司 Lamp mounting direction adjusting method, system, storage medium and terminal
CN114096032B (en) * 2021-10-14 2024-01-05 佛山电器照明股份有限公司 Lamp control method, component control method, storage medium, equipment and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752710A (en) * 2011-04-22 2012-10-24 喜讯无限(北京)科技有限责任公司 Multi-mobile-device real-time interaction realization system and method based on acceleration transducer, gyroscope and mobile positioning technique
WO2013016692A2 (en) * 2011-07-27 2013-01-31 Qualcomm Incorporated Selectively performing a positioning procedure at an access terminal based on a behavior model
CN104580325A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 User pairing method and device, as well as data exchange method, device and system
CN105115487A (en) * 2015-05-18 2015-12-02 陈希 Positioning and navigation method in supermarket based on information fusion

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101356192B1 (en) * 2012-04-26 2014-01-24 서울시립대학교 산학협력단 Method and System for Determining Position and Attitude of Smartphone by Image Matching
CN105049470B (en) * 2015-05-22 2019-03-01 腾讯科技(北京)有限公司 Event confirmation method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752710A (en) * 2011-04-22 2012-10-24 喜讯无限(北京)科技有限责任公司 Multi-mobile-device real-time interaction realization system and method based on acceleration transducer, gyroscope and mobile positioning technique
WO2013016692A2 (en) * 2011-07-27 2013-01-31 Qualcomm Incorporated Selectively performing a positioning procedure at an access terminal based on a behavior model
CN104580325A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 User pairing method and device, as well as data exchange method, device and system
CN105115487A (en) * 2015-05-18 2015-12-02 陈希 Positioning and navigation method in supermarket based on information fusion

Also Published As

Publication number Publication date
CN106803844A (en) 2017-06-06

Similar Documents

Publication Publication Date Title
CN106843739B (en) A kind of display control method and mobile terminal of mobile terminal
CN106803844B (en) A kind of lamp light control method and mobile terminal
CN107194331B (en) A kind of fingerprint identification method and mobile terminal
CN107396198B (en) A kind of video call method and mobile terminal
CN107450800A (en) A kind of task method to set up, mobile terminal and computer-readable recording medium
CN106909289B (en) A kind of operating method and mobile terminal of application controls
CN106973167B (en) A kind of income prompting method and mobile terminal
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN106020613A (en) Operation method and mobile terminal for unread messages
CN106528160B (en) A kind of application program image target adding method and terminal
CN106325753B (en) A kind of display methods and mobile terminal of payment interface
CN106686252B (en) A kind of incoming call processing method and mobile terminal
CN106210106A (en) A kind of intelligent meeting implementation method and mobile terminal
CN106959797B (en) A kind of setting method and mobile terminal notifying footmark
CN107741820A (en) A kind of entering method keyboard display methods and mobile terminal
CN105955646A (en) Content processing method and intelligent terminal
CN106371659A (en) Function entry enable method and mobile terminal
CN109753425A (en) Pop-up processing method and processing device
CN106201495A (en) A kind of entrance creation method and mobile terminal
CN106371745A (en) Interface switching method and mobile terminal
CN106851008B (en) A kind of lamp light control method and mobile terminal
CN107562404A (en) A kind of audio frequency playing method, mobile terminal and computer-readable recording medium
CN110533507A (en) A kind of order management method, mobile terminal and computer readable storage medium
CN106383713A (en) Application control method and mobile terminal
CN106371693A (en) Navigation information display 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