WO2020238443A1 - Light source control method and terminal - Google Patents

Light source control method and terminal Download PDF

Info

Publication number
WO2020238443A1
WO2020238443A1 PCT/CN2020/084664 CN2020084664W WO2020238443A1 WO 2020238443 A1 WO2020238443 A1 WO 2020238443A1 CN 2020084664 W CN2020084664 W CN 2020084664W WO 2020238443 A1 WO2020238443 A1 WO 2020238443A1
Authority
WO
WIPO (PCT)
Prior art keywords
electromagnet
light source
terminal
circuit board
printed circuit
Prior art date
Application number
PCT/CN2020/084664
Other languages
French (fr)
Chinese (zh)
Inventor
黄攀
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2020238443A1 publication Critical patent/WO2020238443A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0277Details of the structure or mounting of specific components for a printed circuit board assembly
    • 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
    • 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
    • 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

Definitions

  • the embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a light source control method and terminal.
  • the embodiments of the present disclosure provide a light source control method and terminal to solve the problem that the mobile phone in the related art cannot meet the different requirements for the gap between the flash lamp and the flash lamp shade in different scenarios.
  • an embodiment of the present disclosure provides a terminal, including:
  • a light source arranged on the printed circuit board
  • a lamp shade arranged on the housing, with a gap between the lamp shade and the light source;
  • a first electromagnet is provided on the printed circuit board, and a second electromagnet or a first magnetic material is correspondingly provided on the housing; or a third electromagnet is provided on the housing, and the printed circuit board
  • the circuit board is correspondingly provided with a fourth electromagnet or a second magnetic material.
  • the embodiments of the present disclosure also provide a light source control method, which is applied to the terminal as described in the foregoing embodiment, including:
  • the preset condition is met, energize the target electromagnet, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet;
  • the target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
  • embodiments of the present disclosure also provide a terminal, where the terminal is the terminal described in the foregoing embodiment, and further includes:
  • the judgment module is used to judge whether the terminal meets a preset condition
  • the control module is configured to energize the target electromagnet when the preset conditions are met, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet;
  • the target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
  • the embodiments of the present disclosure also provide a terminal, including a processor, a memory, and a program stored on the memory and capable of running on the processor.
  • the program is executed by the processor, the implementation is as follows: The steps of the light source control method described in the above embodiment.
  • embodiments of the present disclosure also provide a computer-readable storage medium, wherein a program is stored on the computer-readable storage medium, and when the program is executed by a processor, the light source control as described in the above-mentioned embodiment is realized. Method steps.
  • the base and the elastic element of the printed circuit board are respectively connected; the light source arranged on the printed circuit board; the lamp shade arranged on the housing, with a gap between the lamp shade and the light source;
  • the circuit board is provided with a first electromagnet, and the casing is provided with a second electromagnet or a first magnet material; or, the casing is provided with a third electromagnet, and the printed circuit board is provided with a fourth electromagnet.
  • Iron or a second magnetic material in this way, by controlling the interaction force between the electromagnets or between the electromagnet and the magnetic material, the purpose of adjusting the distance between the lampshade and the light source is achieved, so as to meet the requirements of the light source and the lampshade in different scenarios. Different requirements for clearance.
  • FIG. 1 is one of the schematic diagrams of the hardware structure of a terminal provided by an embodiment of the disclosure
  • FIG. 2 is a schematic flowchart of a light source control method provided by an embodiment of the disclosure
  • FIG. 3 is a schematic structural diagram of a terminal provided by an embodiment of the disclosure.
  • FIG. 4 is the second schematic diagram of the hardware structure of the terminal provided by the embodiment of the disclosure.
  • Figure 1 is a schematic diagram of the stacked structure of a mobile phone flash in the related art.
  • the gap between the flash and the flash cover has strict design requirements, which is generally at least greater than 0.20mm but not more than 0.50mm.
  • the design gap is less than 0.20mm, the gap will actually be smaller due to material height tolerances and assembly tolerances.
  • the flashlight may collide with the lampshade and cause damage to the flashlight.
  • the user uses the flash to take a long shot, he hopes that the light can reach a longer distance, and the size of the area that the light can illuminate is not high. At this time, it is hoped that the gap between the flash and the flash lamp shade is as large as possible.
  • the user uses the flash to take close-up shots, he hopes that the area that the light can illuminate is as large as possible. At this time, he hopes that the gap between the flash and the lampshade of the flash is as small as possible. How to meet the different requirements for the gap between the flash lamp and the flash lamp shade in different scenarios has become an urgent problem to be solved.
  • the embodiments of the present disclosure provide a light source control method and terminal to solve the problem that the mobile phone in the related art cannot meet the different requirements for the gap between the flash lamp and the flash lamp shade in different scenarios.
  • FIG. 1 it is a schematic structural diagram of a terminal provided by an embodiment of the present disclosure.
  • the terminal includes: a base 1; a printed circuit board 2; an elastic element 3 respectively connected to the base 1 and the printed circuit board 2; a light source 4 arranged on the printed circuit board 2; a housing; There is a gap between the lampshade 5 and the light source 4; the printed circuit board 2 is provided with a first electromagnet, and the casing is provided with a second electromagnet or a first magnetic material correspondingly; or, the casing is provided with The third electromagnet 6 is correspondingly provided with a fourth electromagnet or a second magnetic material 7 on the printed circuit board 2.
  • the orthographic projection area of the light source 4 on the printed circuit board 2 is located in the orthographic projection area of the lampshade 5 on the printed circuit board 2.
  • the orthographic projection area of the lampshade 5 on the printed circuit board 2 is greater than or equal to the orthographic projection area of the light source 4 on the printed circuit board 2.
  • the orthographic projection area of the light source 4 on the printed circuit board 2 is located in the orthographic projection area of the lampshade 5 on the printed circuit board 2. In this way, when the terminal uses the light source 4 to take pictures, the light emitted from the light source 4 Most of the light in the light can be emitted through the lampshade 5, thereby ensuring effective light supplementation to the shooting object and improving the quality of the photo.
  • the light source 4 is a flash lamp.
  • the light source 4 is fixed to the printed circuit board 2 by welding.
  • the elastic element 3 is a spring module.
  • an electromagnet is a device that generates electromagnetism when energized. Wind a conductive winding that matches its power on the outside of the iron core. The strength of the electromagnet's magnetic field can be controlled by the size of the current. The polarity or direction of the electromagnet's magnetic field can be controlled by the direction of the current. Through the on-off control of the current.
  • the force includes attraction or repulsion.
  • the electromagnets by controlling the direction of the current of the electromagnets (here specifically referring to the first electromagnet and/or the second electromagnet, or the third electromagnet and/or the fourth electromagnet), the electromagnets or the electromagnetic
  • the elastic element 3 deforms under the action of the attractive force, the elastic element 3 is stretched, and the distance between the base 1 and the printed circuit board 2 becomes larger, and the light source 4 and
  • the printed circuit board 2 is also close to the lampshade 5 on the housing, that is, the distance between the light source 4 and the lampshade 5 is reduced, and then the size of the attractive force is adjusted by controlling the current of the electromagnet to achieve The purpose of adjusting the distance between the lampshade 5 and the light source 4.
  • the electromagnets by controlling the direction of the current of the electromagnets (specifically, the first electromagnet and/or the second electromagnet, or the third electromagnet and/or the fourth electromagnet), the electromagnets
  • the elastic element 3 When a repulsive force is generated between the electromagnet and the magnetic material, the elastic element 3 is deformed under the action of the repulsive force, the elastic element 3 is compressed, the distance between the base 1 and the printed circuit board 2 becomes smaller, and the light source 4 and The printed circuit board 2 is also far away from the lampshade 5 on the housing, that is to say, the distance between the light source 4 and the lampshade 5 is increased, and then the repulsive force can be adjusted by controlling the current of the electromagnet to achieve The purpose of adjusting the distance between the lampshade 5 and the light source 4.
  • the casing includes: a battery cover 8 and a middle frame body 9 at least partially connected to the battery cover 8; the lamp cover 5 is fixed to the battery cover 8; when the printed circuit board 2 is provided with a first electromagnetic When iron, the second electromagnet or the first magnetic material is fixed to the middle frame body 9. When the printed circuit board 2 is provided with the fourth electromagnet or the second magnetic material 7, the third electromagnet 6 is fixed to the middle frame body 9.
  • a first electromagnet is provided on the printed circuit board 2
  • a second electromagnet or a first magnetic material is fixed on the middle frame body 9, or a fourth electromagnet or a second magnetic material is provided on the printed circuit board 2.
  • the third electromagnet 6 is fixed on the middle frame body 9.
  • Both of the above two implementations use the electromagnet to generate magnetic force after being energized, and the size and direction of the electromagnet are controllable.
  • the interaction force between the iron and the magnetic material achieves the purpose of adjusting the distance between the printed circuit board 2 and the middle frame body 9, that is, the distance between the lampshade 5 and the light source 4, to meet the requirements of the light source 4 and the light source 4 in different scenarios. Different requirements for the gap of the lampshade 5.
  • the lampshade 5 includes: a protruding portion 51 and a fixing portion 52; the battery cover 8 is provided with a through hole 10; wherein the protruding portion 51 is located in the through hole 10; the fixing portion 52 is fixed to the battery cover
  • the first surface of 8 is the surface of the battery cover 8 close to the light source 4; when the printed circuit board 2 is provided with a first electromagnet, one end of the second electromagnet or one end of the first magnetic material abuts and fixes Section 52; when the fourth electromagnet or the second magnetic material 7 is provided on the printed circuit board 2, one end of the third electromagnet 6 abuts the fixed portion 52.
  • the lampshade 5 includes: a protrusion 51 and a fixing part 52; the battery cover 8 is provided with a through hole 10; wherein the protrusion 51 is located in the through hole 10; the fixing part 52 is fixed on the first surface of the battery cover 8.
  • One surface is the surface of the battery cover 8 close to the light source 4.
  • the cross section of the structure of the lampshade 5 is in an inverted T shape.
  • the edge of the fixing portion 52 is fixedly connected to the first surface of the battery cover 8.
  • the edge of the fixing portion 52 is adhered to the first surface of the battery cover 8 through the double-sided tape 11.
  • the first electromagnet when the first electromagnet is provided on the printed circuit board 2, one end of the second electromagnet or one end of the first magnetic material abuts against the edge of the fixing portion 52; when the printed circuit board 2 is provided with In the case of the fourth electromagnet or the second magnetic material 7, one end of the third electromagnet 6 abuts against the edge of the fixed portion 52.
  • the housing is provided with In the case of the second electromagnet or the first magnetic material, the thickness of the first electromagnet is less than or equal to the height of the light source 4; when the housing is provided with the third electromagnet 6, the printed circuit board 2 is correspondingly provided with the fourth electromagnet Or in the case of the second magnetic material 7, the thickness of the fourth electromagnet is less than or equal to the height of the light source 4, or the thickness of the second magnetic material 7 is less than or equal to the height of the light source 4.
  • the distance between the electromagnets or the distance between the electromagnet and the magnetic material is greater than or equal to the distance between the light source 4 and the lampshade 5.
  • two first electromagnets are provided on the printed circuit board 2, and two second electromagnets or two first magnetic materials are correspondingly provided on the housing, or the housing is provided with There are two third electromagnets 6, and the printed circuit board 2 is correspondingly provided with two fourth electromagnets or two second magnetic materials 7.
  • two third electromagnets 6 are provided on the housing, and two second magnetic materials 7 are correspondingly provided on the printed circuit board 2.
  • one end of the two third electromagnets 6 abuts against the edge of the fixing portion 52 respectively.
  • the ends of the two third electromagnets 6 respectively abut against the edge of the fixing portion 52 and can play a role of supporting the lampshade 5.
  • the thickness of the two third electromagnets 6 is equal; the printed circuit board 2 is correspondingly provided with two second magnetic materials 7, optionally , The thickness of the two second magnetic materials 7 is equal and both are less than or equal to the height of the light source 5.
  • the distance between the oppositely disposed third electromagnet 6 and the second magnetic material 7 is greater than or equal to the light source The distance between 4 and the lampshade 5.
  • the first magnetic material is a magnet
  • the second magnetic material 7 is a magnet
  • the terminal of the embodiment of the present disclosure connects the base and the elastic element of the printed circuit board respectively; the light source arranged on the printed circuit board; the lamp shade arranged on the housing, with a gap between the lamp shade and the light source; the printed circuit
  • a first electromagnet is provided on the board, and a second electromagnet or a first magnet material is correspondingly provided on the housing; or, a third electromagnet is provided on the housing, and a fourth electromagnet or correspondingly provided on the printed circuit board.
  • the second magnetic material in this way, by controlling the interaction force between the electromagnets or between the electromagnet and the magnetic material, the purpose of adjusting the distance between the lampshade and the light source is achieved, so as to satisfy the gap between the light source and the lampshade in different scenarios. Different needs.
  • embodiments of the present disclosure also provide a light source control method applied to the foregoing terminal.
  • FIG. 2 it is a schematic flowchart of a light source control method provided by an embodiment of the present disclosure.
  • the method includes:
  • Step 201 Determine whether the terminal meets a preset condition
  • Step 202 if the preset condition is met, energize the target electromagnet, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet; wherein The target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
  • the process ends.
  • execution subject of this method may be the controller in the aforementioned terminal.
  • the target electromagnet when the terminal meets a preset condition, the target electromagnet is energized, or the energization of the target electromagnet is stopped, or the current applied to the target electromagnet is adjusted and/or Direction, so as to achieve the purpose of adjusting the distance between the lampshade and the light source, so as to meet different requirements for the gap between the light source and the lampshade in different scenarios.
  • the terminal meets preset conditions , which can specifically include:
  • the gravitational acceleration of the terminal is greater than the first preset threshold, and the distance between the lampshade and the light source is less than the first preset distance.
  • the terminal is in a dropped state, and the distance between the lampshade and the light source is less than the first preset distance value.
  • the magnitude and/or direction of the current applied to the target electromagnet is adjusted to increase the distance between the lampshade and the light source to the first target value.
  • the target electromagnet is mainly determined by the actual hardware structure of the terminal.
  • the terminal may determine whether the gravitational acceleration of the terminal is greater than the first preset threshold through the acceleration sensor, that is, determine whether the terminal is in a falling state through the acceleration sensor.
  • a distance sensor can be arranged around the lampshade or the light source to know the distance between the lampshade and the light source.
  • the gap between the light source and the lampshade is unstable due to the material height tolerance and assembly tolerance, which will affect the consistency of the terminal's camera calibration through the light source.
  • a preset condition which may specifically include:
  • the ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is greater than the second preset threshold; or,
  • the ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is smaller than the third preset threshold.
  • the ratio between the brightness value of the four corners of the photographing area corresponding to the light source and the brightness value of the central area is greater than the second preset threshold, indicating that the calibration found that the light source (here, the flash) is too uniform to take pictures of the four corners.
  • the illuminance of the spot is obviously low, that is, the distance between the light source and the lampshade is too small.
  • the terminal adjusts the current applied to the target electromagnet when the preset conditions are met. The size and/or direction increase the distance between the lampshade and the light source to a second target value.
  • the size and/or direction of the current applied to the two third electromagnets 6 is adjusted to increase the distance between the lampshade and the light source. To the second target value.
  • the ratio between the brightness value of the four corners of the photo area corresponding to the light source and the brightness value of the center area is less than the third preset threshold, indicating that the calibration found that the center of the photo spot of the light source (here, flash) is overexposed and the four corners are too dark. That is to say, the distance between the light source and the lampshade is too large.
  • the terminal adjusts the magnitude and/or direction of the current applied to the target electromagnet when the preset conditions are met. Reduce the distance between the lampshade and the light source to a third target value.
  • the size and/or direction of the current applied to the two third electromagnets 6 is adjusted to reduce the distance between the lampshade and the light source. To the third target value.
  • the terminal Meet the preset conditions which can specifically include:
  • the distance between the photographed object in the finder frame and the terminal is greater than the second preset distance value, and the distance between the lampshade and the light source is less than the third preset distance value;
  • the distance between the photographed object in the framing frame and the terminal is less than the fourth preset distance value, and the distance between the lampshade and the light source is greater than the fifth preset distance value.
  • the terminal adjusts the current applied to the target electromagnet when the above preset conditions are met. Size and/or direction, increasing the distance between the lampshade and the light source to a fourth target value;
  • the terminal adjusts the magnitude and magnitude of the current applied to the target electromagnet when the above preset conditions are met. /Or direction, reduce the distance between the lampshade and the light source to the fifth target value.
  • the light source control method provided by the embodiment of the present disclosure is based on the elastic elements respectively connected to the base and the printed circuit board; the light source arranged on the printed circuit board; the lamp shade arranged on the housing, with a gap between the lamp shade and the light source; A first electromagnet is provided on the printed circuit board, and a second electromagnet or a first magnet material is correspondingly provided on the housing; or, a third electromagnet is provided on the housing, and a fourth electromagnet is provided on the printed circuit board.
  • the electromagnet or the second magnetic material, the terminal having the above structure determines whether the terminal meets the preset condition; if the preset condition is satisfied, the target electromagnet is energized, or the target electromagnet is stopped, Or, adjust the magnitude and/or direction of the current applied to the target electromagnet; wherein the target electromagnet is the first electromagnet, the second electromagnet, the third electromagnet, and the At least one of the fourth electromagnets, in this way, can meet different requirements for the gap between the light source and the lampshade in different scenarios.
  • an embodiment of the present disclosure also provides a terminal for implementing the above method.
  • FIG. 3 it is a schematic structural diagram of a terminal provided by an embodiment of the present disclosure.
  • the embodiment of the present disclosure provides a terminal 300.
  • the terminal 300 is the terminal described in the foregoing embodiment.
  • the terminal 300 may further include:
  • the judgment module 301 is used to judge whether the terminal meets a preset condition
  • the control module 302 is configured to energize the target electromagnet when the preset conditions are met, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet ;
  • the target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
  • the terminal meeting the preset condition specifically includes:
  • the gravitational acceleration of the terminal is greater than the first preset threshold, and the distance between the lampshade and the light source is less than the first preset distance.
  • the terminal meeting the preset condition specifically includes:
  • the ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is greater than the second preset threshold; or,
  • the ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is smaller than the third preset threshold.
  • the terminal meeting the preset condition specifically includes:
  • the distance between the photographed object in the viewing frame and the terminal is greater than the second preset distance value, and the distance between the lampshade and the light source is less than the third preset distance value;
  • the distance between the photographed object in the framing frame and the terminal is less than the fourth preset distance value, and the distance between the lampshade and the light source is greater than the fifth preset distance value.
  • the terminal provided in the embodiment of the present disclosure can implement the various processes implemented by the terminal in the method embodiment of FIG. 2. To avoid repetition, details are not described herein again.
  • the terminal provided by the embodiment of the present disclosure judges whether the terminal meets the preset condition through the judgment module; the control module energizes the target electromagnet when the preset condition is satisfied, or stops energizing the target electromagnet, or Adjust the magnitude and/or direction of the current applied to the target electromagnet; wherein, the target electromagnet is the first electromagnet, the second electromagnet, the third electromagnet and the first electromagnet At least one of the four electromagnets, in this way, can meet different requirements for the gap between the light source and the lampshade in different scenarios.
  • FIG. 4 is a schematic diagram of the hardware structure of a terminal that is disclosed to implement various embodiments of the present disclosure.
  • the terminal 400 includes but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, And power supply 411 and other components.
  • radio frequency unit 401 radio frequency unit
  • network module 402 audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, And power supply 411 and other components.
  • the structure of the terminal device shown in FIG. 4 does not constitute a limitation on the terminal device, and the terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or different components Layout.
  • terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
  • the processor 410 is used to determine whether the terminal meets a preset condition; when the preset condition is satisfied, energize the target electromagnet, or stop energizing the target electromagnet, or adjust the The magnitude and/or direction of the current on the target electromagnet; wherein the target electromagnet is one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet At least one.
  • the terminal it is determined whether the terminal meets a preset condition; if the preset condition is satisfied, the target electromagnet is energized, or the target electromagnet is stopped, or the adjustment is applied to the The magnitude and/or direction of the current on the target electromagnet; wherein the target electromagnet is one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet At least one of them, in this way, can meet different requirements for the gap between the light source and the lampshade in different scenarios.
  • the radio frequency unit 401 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 410; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
  • the terminal device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 403 can convert the audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into audio signals and output them as sounds. Moreover, the audio output unit 403 may also provide audio output related to a specific function performed by the terminal 400 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 404 is used to receive audio or video signals.
  • the input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042.
  • the graphics processor 4041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 406.
  • the image frame processed by the graphics processor 4041 may be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402.
  • the microphone 4042 can receive sound and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode for output.
  • the terminal 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 4061 and/or when the terminal 400 is moved to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 406 is used to display information input by the user or information provided to the user.
  • the display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 407 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device.
  • the user input unit 407 includes a touch panel 4071 and other input devices 4072.
  • the touch panel 4071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 4071 or near the touch panel 4071. operating).
  • the touch panel 4071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 410, the command sent by the processor 410 is received and executed.
  • the touch panel 4071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 407 may also include other input devices 4072.
  • other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 4071 can cover the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it transmits it to the processor 410 to determine the type of the touch event. The type of event provides corresponding visual output on the display panel 4061.
  • the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated
  • the implementation of the input and output functions of the terminal device is not specifically limited here.
  • the interface unit 408 is an interface for connecting an external device with the terminal 400.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 408 may be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal 400 or may be used to communicate between the terminal 400 and the external device. Transfer data between.
  • the memory 409 can be used to store software programs and various data.
  • the memory 409 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 410 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 409, and calls the data stored in the memory 409 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 410 may include one or more processing units; optionally, the processor 410 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410.
  • the terminal 400 may also include a power source 411 (such as a battery) for supplying power to various components.
  • a power source 411 such as a battery
  • the power source 411 may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the terminal 400 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure also provides a terminal, including a processor 410, a memory 409, a program stored in the memory 409 and running on the processor 410, and the program is executed by the processor 410 to realize the above light source control
  • a terminal including a processor 410, a memory 409, a program stored in the memory 409 and running on the processor 410, and the program is executed by the processor 410 to realize the above light source control
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a program is stored.
  • a program is stored.
  • the program is executed by a processor, each process of the above-mentioned light source control method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • the computer readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc.
  • the technical solution of the present disclosure essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present disclosure.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Arrangement Of Elements, Cooling, Sealing, Or The Like Of Lighting Devices (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Telephone Function (AREA)

Abstract

Provided are a terminal and a light source control method. The terminal comprises: a base; a printed circuit board; an elastic member respectively connected to the base and the printed circuit board; a light source provided at the printed circuit board; a housing; and a light shade provided at the housing, a gap being arranged between the light shade and the light source. The printed circuit board is provided with a first electromagnet, and the housing is correspondingly provided with a second electromagnet or a first magnetic material. Alternatively, the housing is provided with a third electromagnet, and the printed circuit board is correspondingly provided with a fourth electromagnet or a second magnetic material.

Description

光源控制方法及终端Light source control method and terminal
相关申请的交叉引用Cross references to related applications
本申请主张在2019年5月31日在中国提交的中国专利申请No.201910470086.7的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201910470086.7 filed in China on May 31, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开实施例涉及通信技术领域,尤其涉及一种光源控制方法及终端。The embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a light source control method and terminal.
背景技术Background technique
手机闪光灯辅助夜晚拍照以及手电筒都是常用的功能,闪光灯与闪光灯灯罩之间的间隙会明显影响到闪光灯的光学性能。Mobile phone flash assisted night photography and flashlight are commonly used functions, the gap between flash and flash lampshade will obviously affect the optical performance of the flash.
发明内容Summary of the invention
本公开实施例提供一种光源控制方法及终端,以解决相关技术中的手机无法满足不同场景下对闪光灯与闪光灯灯罩的间隙的不同需求的问题。The embodiments of the present disclosure provide a light source control method and terminal to solve the problem that the mobile phone in the related art cannot meet the different requirements for the gap between the flash lamp and the flash lamp shade in different scenarios.
为了解决上述技术问题,本公开是这样实现的:In order to solve the above technical problems, the present disclosure is implemented as follows:
第一方面,本公开的实施例提供了一种终端,包括:In the first aspect, an embodiment of the present disclosure provides a terminal, including:
基座;Base
印制电路板;Printed circuit board;
分别连接所述基座以及所述印制电路板的弹性元件;Connecting the base and the elastic element of the printed circuit board respectively;
设置于所述印制电路板上的光源;A light source arranged on the printed circuit board;
壳体;case;
设置于所述壳体上的灯罩,所述灯罩与所述光源之间具有间隙;A lamp shade arranged on the housing, with a gap between the lamp shade and the light source;
所述印制电路板上设置有第一电磁铁,所述壳体上对应设置有第二电磁铁或第一磁性材料;或者,所述壳体上设置有第三电磁铁,所述印制电路板上对应设置有第四电磁铁或第二磁性材料。A first electromagnet is provided on the printed circuit board, and a second electromagnet or a first magnetic material is correspondingly provided on the housing; or a third electromagnet is provided on the housing, and the printed circuit board The circuit board is correspondingly provided with a fourth electromagnet or a second magnetic material.
第二方面,本公开的实施例还提供了一种光源控制方法,应用于如上述实施例所述的终端,包括:In the second aspect, the embodiments of the present disclosure also provide a light source control method, which is applied to the terminal as described in the foregoing embodiment, including:
判断所述终端是否满足预设条件;Determine whether the terminal meets a preset condition;
若满足所述预设条件,则对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者,调整施加在所述目标电磁铁上的电流的大小和/或方向;If the preset condition is met, energize the target electromagnet, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet;
其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者。Wherein, the target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
第三方面,本公开实施例还提供了一种终端,所述终端为如上述实施例所述的终端,还包括:In a third aspect, embodiments of the present disclosure also provide a terminal, where the terminal is the terminal described in the foregoing embodiment, and further includes:
判断模块,用于判断所述终端是否满足预设条件;The judgment module is used to judge whether the terminal meets a preset condition;
控制模块,用于在满足所述预设条件时,对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者调整施加在所述目标电磁铁上的电流的大小和/或方向;The control module is configured to energize the target electromagnet when the preset conditions are met, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet;
其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者。Wherein, the target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
第四方面,本公开实施例还提供一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如上述实施例所述的光源控制方法的步骤。In a fourth aspect, the embodiments of the present disclosure also provide a terminal, including a processor, a memory, and a program stored on the memory and capable of running on the processor. When the program is executed by the processor, the implementation is as follows: The steps of the light source control method described in the above embodiment.
第五方面,本公开实施例还提供一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有程序,所述程序被处理器执行时实现如上述实施例所述的光源控制方法的步骤。In a fifth aspect, embodiments of the present disclosure also provide a computer-readable storage medium, wherein a program is stored on the computer-readable storage medium, and when the program is executed by a processor, the light source control as described in the above-mentioned embodiment is realized. Method steps.
本公开实施例的上述方案中,通过分别连接基座以及印制电路板的弹性元件;设置于印制电路板上的光源;设置于壳体上的灯罩,灯罩与光源之间具有间隙;印制电路板上设置有第一电磁铁,壳体上对应设置有第二电磁铁或第一磁铁材料;或者,壳体上设置有第三电磁铁,印制电路板上对应设置有第四电磁铁或第二磁性材料,如此,通过控制电磁铁之间或者电磁铁与磁性材料之间的相互作用力,达到调整灯罩与光源之间的距离的目的,从而满足不同场景下对光源与灯罩的间隙的不同需求。In the above-mentioned solution of the embodiment of the present disclosure, the base and the elastic element of the printed circuit board are respectively connected; the light source arranged on the printed circuit board; the lamp shade arranged on the housing, with a gap between the lamp shade and the light source; The circuit board is provided with a first electromagnet, and the casing is provided with a second electromagnet or a first magnet material; or, the casing is provided with a third electromagnet, and the printed circuit board is provided with a fourth electromagnet. Iron or a second magnetic material, in this way, by controlling the interaction force between the electromagnets or between the electromagnet and the magnetic material, the purpose of adjusting the distance between the lampshade and the light source is achieved, so as to meet the requirements of the light source and the lampshade in different scenarios. Different requirements for clearance.
附图说明Description of the drawings
图1为本公开实施例提供的终端的硬件结构示意图之一;FIG. 1 is one of the schematic diagrams of the hardware structure of a terminal provided by an embodiment of the disclosure;
图2为本公开实施例提供的光源控制方法的流程示意图;2 is a schematic flowchart of a light source control method provided by an embodiment of the disclosure;
图3为本公开实施例提供的终端的结构示意图;3 is a schematic structural diagram of a terminal provided by an embodiment of the disclosure;
图4为本公开实施例提供的终端的硬件结构示意图之二。FIG. 4 is the second schematic diagram of the hardware structure of the terminal provided by the embodiment of the disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
图1是相关技术中的手机闪光灯堆叠结构示意图,闪光灯与闪光灯灯罩的间隙有严格的设计要求,一般至少大于0.20mm,但不超过0.50mm。Figure 1 is a schematic diagram of the stacked structure of a mobile phone flash in the related art. The gap between the flash and the flash cover has strict design requirements, which is generally at least greater than 0.20mm but not more than 0.50mm.
如果设计间隙小于0.20mm,实际由于物料高度公差和装配公差会导致该间隙更小,手机在跌落的过程中,闪光灯可能与灯罩碰撞导致闪光灯损坏。If the design gap is less than 0.20mm, the gap will actually be smaller due to material height tolerances and assembly tolerances. When the mobile phone is dropped, the flashlight may collide with the lampshade and cause damage to the flashlight.
如果设计间隙超过0.50mm,灯罩的设计难度会很大,闪光灯能照到的范围会变小,原料公差和装配公差导致闪光灯与灯罩的间隙十分不稳定,严重影响到手机闪光灯拍照校准的一致性。If the design gap exceeds 0.50mm, the design of the lampshade will be very difficult, and the range that the flash can reach will become smaller. Material tolerances and assembly tolerances cause the gap between the flash and the lampshade to be very unstable, which seriously affects the consistency of the camera calibration of the mobile phone flash .
还有,用户在利用闪光灯拍远景时,希望光线能照到的距离更远,对光线能照亮的区域大小要求不高,这个时候希望闪光灯与闪光灯灯罩的间隙越大越好。而用户在利用闪光灯拍近景时,希望光线能照亮的区域越大越好,这个时候希望闪光灯与闪光灯灯罩的间隙越小越好。如何满足不同场景下,对闪光灯与闪光灯灯罩的间隙的不同需求,成为亟待解决的问题。In addition, when the user uses the flash to take a long shot, he hopes that the light can reach a longer distance, and the size of the area that the light can illuminate is not high. At this time, it is hoped that the gap between the flash and the flash lamp shade is as large as possible. When the user uses the flash to take close-up shots, he hopes that the area that the light can illuminate is as large as possible. At this time, he hopes that the gap between the flash and the lampshade of the flash is as small as possible. How to meet the different requirements for the gap between the flash lamp and the flash lamp shade in different scenarios has become an urgent problem to be solved.
本公开实施例提供一种光源控制方法及终端,以解决相关技术中的手机无法满足不同场景下对闪光灯与闪光灯灯罩的间隙的不同需求的问题。The embodiments of the present disclosure provide a light source control method and terminal to solve the problem that the mobile phone in the related art cannot meet the different requirements for the gap between the flash lamp and the flash lamp shade in different scenarios.
如图1所示,为本公开实施例提供的终端的结构示意图。该终端包括:基座1;印制电路板2;分别连接基座1以及印制电路板2的弹性元件3;设置于印制电路板2上的光源4;壳体;设置于壳体上的灯罩5,灯罩5与光源4之间具有间隙;印制电路板2上设置有第一电磁铁,壳体上对应设置有第二电磁铁或第一磁性材料;或者,壳体上设置有第三电磁铁6,印制电路板2上对应设置有第四电磁铁或第二磁性材料7。As shown in FIG. 1, it is a schematic structural diagram of a terminal provided by an embodiment of the present disclosure. The terminal includes: a base 1; a printed circuit board 2; an elastic element 3 respectively connected to the base 1 and the printed circuit board 2; a light source 4 arranged on the printed circuit board 2; a housing; There is a gap between the lampshade 5 and the light source 4; the printed circuit board 2 is provided with a first electromagnet, and the casing is provided with a second electromagnet or a first magnetic material correspondingly; or, the casing is provided with The third electromagnet 6 is correspondingly provided with a fourth electromagnet or a second magnetic material 7 on the printed circuit board 2.
可选地,光源4在印制电路板2上的正投影区域位于灯罩5在印制电路板2上的正投影区域内。Optionally, the orthographic projection area of the light source 4 on the printed circuit board 2 is located in the orthographic projection area of the lampshade 5 on the printed circuit board 2.
也就是说,灯罩5在印制电路板2上的正投影面积大于或者等于光源4在印制电路板2上的正投影面积。In other words, the orthographic projection area of the lampshade 5 on the printed circuit board 2 is greater than or equal to the orthographic projection area of the light source 4 on the printed circuit board 2.
需要说说明的是,光源4在印制电路板2上的正投影区域位于灯罩5在印制电路板2上的正投影区域内,这样,在终端通过光源4拍照时,从光源4发出的光中的绝大部分光能够通过灯罩5发射出去,从而能够保证对拍摄对象的有效补光,提升拍照质量。It should be noted that the orthographic projection area of the light source 4 on the printed circuit board 2 is located in the orthographic projection area of the lampshade 5 on the printed circuit board 2. In this way, when the terminal uses the light source 4 to take pictures, the light emitted from the light source 4 Most of the light in the light can be emitted through the lampshade 5, thereby ensuring effective light supplementation to the shooting object and improving the quality of the photo.
可选地,光源4为闪光灯。Optionally, the light source 4 is a flash lamp.
可选地,光源4通过焊接方式固定于印制电路板2。Optionally, the light source 4 is fixed to the printed circuit board 2 by welding.
可选地,弹性元件3为弹簧模组。Optionally, the elastic element 3 is a spring module.
需要说明的是,电磁铁是通电产生电磁的装置。在铁芯的外部缠绕与其功率相匹配的导电绕组,电磁铁磁场的强弱可通过电流的大小控制,电磁铁磁场的极性或者说方向可通过电流的方向控制,电磁铁磁场的有无可通过电流的通断控制。It should be noted that an electromagnet is a device that generates electromagnetism when energized. Wind a conductive winding that matches its power on the outside of the iron core. The strength of the electromagnet's magnetic field can be controlled by the size of the current. The polarity or direction of the electromagnet's magnetic field can be controlled by the direction of the current. Through the on-off control of the current.
本实施例中,通过控制电磁铁的电流的大小与方向,使电磁铁之间或者电磁铁与磁性材料之间产生相互作用力,进而达到调整灯罩5与光源4之间的距离的目的,从而满足不同场景下对光源4与灯罩5的间隙的不同需求。In this embodiment, by controlling the magnitude and direction of the electric current of the electromagnet, an interaction force is generated between the electromagnets or between the electromagnet and the magnetic material, thereby achieving the purpose of adjusting the distance between the lampshade 5 and the light source 4. Meet the different requirements for the gap between the light source 4 and the lampshade 5 in different scenarios.
具体的,作用力包括吸引力或者排斥力。这里,在通过控制电磁铁(这里具体是指第一电磁铁和/或第二电磁铁,或者,第三电磁铁和/或第四电磁铁)的电流的方向,使电磁铁之间或者电磁铁与磁性材料之间产生吸引力时,弹性元件3在该吸引力的作用下发生形变,弹性元件3被拉伸,基座1与印制电路板2之间的距离变大,光源4与印制电路板2一并靠近壳体上的灯罩5,也就是说,光源4与灯罩5之间的距离减小,再通过控制电磁铁的电流的大小,调整该吸引力的大小,进而达到调整灯罩5与光源4之间的距离的目的。Specifically, the force includes attraction or repulsion. Here, by controlling the direction of the current of the electromagnets (here specifically referring to the first electromagnet and/or the second electromagnet, or the third electromagnet and/or the fourth electromagnet), the electromagnets or the electromagnetic When an attractive force is generated between the iron and the magnetic material, the elastic element 3 deforms under the action of the attractive force, the elastic element 3 is stretched, and the distance between the base 1 and the printed circuit board 2 becomes larger, and the light source 4 and The printed circuit board 2 is also close to the lampshade 5 on the housing, that is, the distance between the light source 4 and the lampshade 5 is reduced, and then the size of the attractive force is adjusted by controlling the current of the electromagnet to achieve The purpose of adjusting the distance between the lampshade 5 and the light source 4.
还有,在通过控制电磁铁(这里具体是指第一电磁铁和/或第二电磁铁,或者,第三电磁铁和/或第四电磁铁)的电流的方向,使电磁铁之间或者电磁铁与磁性材料之间产生排斥力时,弹性元件3在该排斥力的作用下发生形变,弹性元件3被压缩,基座1与印制电路板2之间的距离变小,光源4与印制 电路板2一并远离壳体上的灯罩5,也就是说,光源4与灯罩5之间的距离增大,再通过控制电磁铁的电流的大小,调整该排斥力的大小,进而达到调整灯罩5与光源4之间的距离的目的。Also, by controlling the direction of the current of the electromagnets (specifically, the first electromagnet and/or the second electromagnet, or the third electromagnet and/or the fourth electromagnet), the electromagnets When a repulsive force is generated between the electromagnet and the magnetic material, the elastic element 3 is deformed under the action of the repulsive force, the elastic element 3 is compressed, the distance between the base 1 and the printed circuit board 2 becomes smaller, and the light source 4 and The printed circuit board 2 is also far away from the lampshade 5 on the housing, that is to say, the distance between the light source 4 and the lampshade 5 is increased, and then the repulsive force can be adjusted by controlling the current of the electromagnet to achieve The purpose of adjusting the distance between the lampshade 5 and the light source 4.
可选地,如图1所示,壳体包括:电池盖8以及至少部分连接电池盖8的中框本体9;灯罩5固定于电池盖8;当印制电路板2上设置有第一电磁铁时,第二电磁铁或第一磁性材料固定于中框本体9;当印制电路板2上设置有第四电磁铁或第二磁性材料7时,第三电磁铁6固定于中框本体9。Optionally, as shown in FIG. 1, the casing includes: a battery cover 8 and a middle frame body 9 at least partially connected to the battery cover 8; the lamp cover 5 is fixed to the battery cover 8; when the printed circuit board 2 is provided with a first electromagnetic When iron, the second electromagnet or the first magnetic material is fixed to the middle frame body 9. When the printed circuit board 2 is provided with the fourth electromagnet or the second magnetic material 7, the third electromagnet 6 is fixed to the middle frame body 9.
这里,在印制电路板2上设置第一电磁铁,中框本体9上固定第二电磁铁或第一磁性材料,或者,在印制电路板2上设置第四电磁铁或第二磁性材料7,中框本体9上固定第三电磁铁6,上述两种实现方式,均是利用电磁铁通电后能够产生磁力,且电磁铁的大小与方向可控的特性,通过电磁铁之间或者电磁铁与磁性材料之间的相互作用力,达到调整印制电路板2与中框本体9之间的距离,即灯罩5与光源4之间的距离的目的,以满足不同场景下对光源4与灯罩5的间隙的不同需求。Here, a first electromagnet is provided on the printed circuit board 2, a second electromagnet or a first magnetic material is fixed on the middle frame body 9, or a fourth electromagnet or a second magnetic material is provided on the printed circuit board 2. 7. The third electromagnet 6 is fixed on the middle frame body 9. Both of the above two implementations use the electromagnet to generate magnetic force after being energized, and the size and direction of the electromagnet are controllable. The interaction force between the iron and the magnetic material achieves the purpose of adjusting the distance between the printed circuit board 2 and the middle frame body 9, that is, the distance between the lampshade 5 and the light source 4, to meet the requirements of the light source 4 and the light source 4 in different scenarios. Different requirements for the gap of the lampshade 5.
作为一种可选的实现方式,灯罩5包括:凸出部51和固定部52;电池盖8设有一通孔10;其中,凸出部51位于通孔10内;固定部52固定于电池盖8的第一表面,第一表面为电池盖8靠近光源4的表面;当印制电路板2上设置有第一电磁铁时,第二电磁铁的一端或第一磁性材料的一端抵接固定部52;当印制电路板2上设置有第四电磁铁或第二磁性材料7时,第三电磁铁6的一端抵接固定部52。As an optional implementation, the lampshade 5 includes: a protruding portion 51 and a fixing portion 52; the battery cover 8 is provided with a through hole 10; wherein the protruding portion 51 is located in the through hole 10; the fixing portion 52 is fixed to the battery cover The first surface of 8, the first surface is the surface of the battery cover 8 close to the light source 4; when the printed circuit board 2 is provided with a first electromagnet, one end of the second electromagnet or one end of the first magnetic material abuts and fixes Section 52; when the fourth electromagnet or the second magnetic material 7 is provided on the printed circuit board 2, one end of the third electromagnet 6 abuts the fixed portion 52.
这里,灯罩5包括:凸出部51和固定部52;电池盖8设有一通孔10;其中,凸出部51位于通孔10内;固定部52固定于电池盖8的第一表面,第一表面为电池盖8靠近光源4的表面,如此设计,能够降低整机的厚度;而通过第二电磁铁的一端或第一磁性材料的一端抵接固定部52,或是通过第三电磁铁6的一端抵接固定部52,均能够起到支撑灯罩5的作用,对灯罩5的固定达到了进一步的加强效果。Here, the lampshade 5 includes: a protrusion 51 and a fixing part 52; the battery cover 8 is provided with a through hole 10; wherein the protrusion 51 is located in the through hole 10; the fixing part 52 is fixed on the first surface of the battery cover 8. One surface is the surface of the battery cover 8 close to the light source 4. This design can reduce the thickness of the whole machine; and one end of the second electromagnet or one end of the first magnetic material abuts the fixing part 52, or the third electromagnet One end of 6 abuts against the fixing portion 52, which can support the lampshade 5, and achieve a further strengthening effect on the fixing of the lampshade 5.
这里,如图1所示,灯罩5结构的横截面呈倒T字型。Here, as shown in FIG. 1, the cross section of the structure of the lampshade 5 is in an inverted T shape.
具体的,固定部52的边缘与电池盖8的第一表面固定连接。Specifically, the edge of the fixing portion 52 is fixedly connected to the first surface of the battery cover 8.
可选地,固定部52的边缘通过双面胶11粘接于电池盖8的第一表面。Optionally, the edge of the fixing portion 52 is adhered to the first surface of the battery cover 8 through the double-sided tape 11.
这里,具体的,当印制电路板2上设置有第一电磁铁时,第二电磁铁的一端或第一磁性材料的一端抵接固定部52的边沿;当印制电路板2上设置有第四电磁铁或第二磁性材料7时,第三电磁铁6的一端抵接固定部52的边沿。Here, specifically, when the first electromagnet is provided on the printed circuit board 2, one end of the second electromagnet or one end of the first magnetic material abuts against the edge of the fixing portion 52; when the printed circuit board 2 is provided with In the case of the fourth electromagnet or the second magnetic material 7, one end of the third electromagnet 6 abuts against the edge of the fixed portion 52.
在光源4向灯罩5靠近的情况下,为了不影响光源4与灯罩5之间的距离减小,可选地,当印制电路板2上设置有第一电磁铁,壳体上对应设置有第二电磁铁或第一磁性材料时,第一电磁铁的厚度小于或者等于光源4的高度;当壳体上设置有第三电磁铁6,印制电路板2上对应设置有第四电磁铁或第二磁性材料7时,第四电磁铁的厚度小于或者等于光源4的高度,或者第二磁性材料7的厚度小于或者等于光源4的高度。When the light source 4 approaches the lampshade 5, in order not to affect the reduction of the distance between the light source 4 and the lampshade 5, optionally, when the printed circuit board 2 is provided with a first electromagnet, the housing is provided with In the case of the second electromagnet or the first magnetic material, the thickness of the first electromagnet is less than or equal to the height of the light source 4; when the housing is provided with the third electromagnet 6, the printed circuit board 2 is correspondingly provided with the fourth electromagnet Or in the case of the second magnetic material 7, the thickness of the fourth electromagnet is less than or equal to the height of the light source 4, or the thickness of the second magnetic material 7 is less than or equal to the height of the light source 4.
需要说明的是,在电磁铁的电流的大小为0的情况下,电磁铁之间的距离或者电磁铁与磁性材料之间的距离大于或者等于光源4与灯罩5之间的距离。It should be noted that when the current of the electromagnet is zero, the distance between the electromagnets or the distance between the electromagnet and the magnetic material is greater than or equal to the distance between the light source 4 and the lampshade 5.
在一种可选的实现方式,印制电路板2上设置有两个第一电磁铁,壳体上对应设置有两个第二电磁铁或两个第一磁性材料,或者,壳体上设置有两个第三电磁铁6,印制电路板2对应设置有两个第四电磁铁或两个第二磁性材料7。In an optional implementation manner, two first electromagnets are provided on the printed circuit board 2, and two second electromagnets or two first magnetic materials are correspondingly provided on the housing, or the housing is provided with There are two third electromagnets 6, and the printed circuit board 2 is correspondingly provided with two fourth electromagnets or two second magnetic materials 7.
具体的,如图1所示,壳体上设置有两个第三电磁铁6,印制电路板2对应设置有两个第二磁性材料7。Specifically, as shown in FIG. 1, two third electromagnets 6 are provided on the housing, and two second magnetic materials 7 are correspondingly provided on the printed circuit board 2.
进一步的,如图1所示,两个第三电磁铁6的一端分别抵接固定部52的边沿。Further, as shown in FIG. 1, one end of the two third electromagnets 6 abuts against the edge of the fixing portion 52 respectively.
需要说明的是,两个第三电磁铁6的一端分别抵接固定部52的边沿,能够起到支撑灯罩5的作用。It should be noted that the ends of the two third electromagnets 6 respectively abut against the edge of the fixing portion 52 and can play a role of supporting the lampshade 5.
这里,壳体上设置有两个第三电磁铁6时,可选地,两个第三电磁铁6的厚度相等;印制电路板2对应设置有两个第二磁性材料7,可选地,两个第二磁性材料7的厚度相等且均小于或者等于光源5的高度。Here, when two third electromagnets 6 are provided on the housing, optionally, the thickness of the two third electromagnets 6 is equal; the printed circuit board 2 is correspondingly provided with two second magnetic materials 7, optionally , The thickness of the two second magnetic materials 7 is equal and both are less than or equal to the height of the light source 5.
需要说明的是,可选地,在两个第三电磁铁6的电流的大小均为0的情况下,相对设置的第三电磁铁6与第二磁性材料7之间的距离大于或者等于光源4与灯罩5之间的距离。It should be noted that, optionally, in the case where the currents of the two third electromagnets 6 are both 0, the distance between the oppositely disposed third electromagnet 6 and the second magnetic material 7 is greater than or equal to the light source The distance between 4 and the lampshade 5.
可选地,第一磁性材料为磁铁;第二磁性材料7为磁铁。Optionally, the first magnetic material is a magnet; the second magnetic material 7 is a magnet.
本公开实施例的终端,通过分别连接基座以及印制电路板的弹性元件;设置于印制电路板上的光源;设置于壳体上的灯罩,灯罩与光源之间具有间隙;印制电路板上设置有第一电磁铁,壳体上对应设置有第二电磁铁或第一磁铁材料;或者,壳体上设置有第三电磁铁,印制电路板上对应设置有第四电磁铁或第二磁性材料,如此,通过控制电磁铁之间或者电磁铁与磁性材料之间的相互作用力,达到调整灯罩与光源之间的距离的目的,从而满足不同场景下对光源与灯罩的间隙的不同需求。The terminal of the embodiment of the present disclosure connects the base and the elastic element of the printed circuit board respectively; the light source arranged on the printed circuit board; the lamp shade arranged on the housing, with a gap between the lamp shade and the light source; the printed circuit A first electromagnet is provided on the board, and a second electromagnet or a first magnet material is correspondingly provided on the housing; or, a third electromagnet is provided on the housing, and a fourth electromagnet or correspondingly provided on the printed circuit board. The second magnetic material, in this way, by controlling the interaction force between the electromagnets or between the electromagnet and the magnetic material, the purpose of adjusting the distance between the lampshade and the light source is achieved, so as to satisfy the gap between the light source and the lampshade in different scenarios. Different needs.
基于上述终端,本公开实施例还提供一种应用于上述终端的光源控制方法。Based on the foregoing terminal, embodiments of the present disclosure also provide a light source control method applied to the foregoing terminal.
如图2所示,为本公开实施例提供的光源控制方法的流程示意图。该方法包括:As shown in FIG. 2, it is a schematic flowchart of a light source control method provided by an embodiment of the present disclosure. The method includes:
步骤201,判断所述终端是否满足预设条件;Step 201: Determine whether the terminal meets a preset condition;
步骤202,若满足所述预设条件,则对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者,调整施加在所述目标电磁铁上的电流的大小和/或方向;其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者。 Step 202, if the preset condition is met, energize the target electromagnet, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet; wherein The target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
这里,可选地,若不满足所述预设条件,则结束流程。Here, optionally, if the preset condition is not met, the process ends.
需要说明的是,该方法的执行主体可为上述终端中的控制器。It should be noted that the execution subject of this method may be the controller in the aforementioned terminal.
这里,在所述终端满足预设条件的情况下,通过对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者,调整施加在所述目标电磁铁上的电流的大小和/或方向,进而达到调整灯罩与光源之间的距离的目的,从而满足不同场景下对光源与灯罩的间隙的不同需求。Here, when the terminal meets a preset condition, the target electromagnet is energized, or the energization of the target electromagnet is stopped, or the current applied to the target electromagnet is adjusted and/or Direction, so as to achieve the purpose of adjusting the distance between the lampshade and the light source, so as to meet different requirements for the gap between the light source and the lampshade in different scenarios.
为了避免由于灯罩与光源之间的距离过小,在终端处于跌落状态时,光源被灯罩碰撞到,保护光源,防止光源被损坏,作为一种可选的实现方式,所述终端满足预设条件,可具体包括:In order to avoid that the distance between the lampshade and the light source is too small, when the terminal is in the falling state, the light source is collided by the lampshade to protect the light source and prevent the light source from being damaged. As an optional implementation, the terminal meets preset conditions , Which can specifically include:
所述终端的重力加速度大于第一预设阈值,且灯罩与光源之间的距离小于第一预设距离值。The gravitational acceleration of the terminal is greater than the first preset threshold, and the distance between the lampshade and the light source is less than the first preset distance.
也就是,所述终端处于跌落状态,且灯罩与光源之间的距离小于第一预 设距离值。That is, the terminal is in a dropped state, and the distance between the lampshade and the light source is less than the first preset distance value.
在终端满足上述预设条件时,调整施加在目标电磁铁上的电流的大小和/或方向,使灯罩与光源之间的距离增大至第一目标值。When the terminal satisfies the foregoing preset conditions, the magnitude and/or direction of the current applied to the target electromagnet is adjusted to increase the distance between the lampshade and the light source to the first target value.
这里,目标电磁铁主要由终端的实际硬件结构决定。Here, the target electromagnet is mainly determined by the actual hardware structure of the terminal.
这里,终端可通过加速度传感器确定终端的重力加速度是否大于第一预设阈值,也就是说,通过加速度传感器确定终端是否处于跌落状态。Here, the terminal may determine whether the gravitational acceleration of the terminal is greater than the first preset threshold through the acceleration sensor, that is, determine whether the terminal is in a falling state through the acceleration sensor.
还有,可通过在灯罩或者光源周围设置距离传感器,以获知灯罩与光源之间的距离。Also, a distance sensor can be arranged around the lampshade or the light source to know the distance between the lampshade and the light source.
在终端设计时,由于物料高度公差和装配公差导致光源与灯罩的间隙不稳定,会影响终端通过光源拍照校准的一致性,为了保证终端通过光源拍照校准的一致性,作为一种可选的实现方式,所述终端满足预设条件,可具体包括:In the terminal design, the gap between the light source and the lampshade is unstable due to the material height tolerance and assembly tolerance, which will affect the consistency of the terminal's camera calibration through the light source. In order to ensure the terminal's camera calibration consistency through the light source, it is an optional implementation In a manner, the terminal meets a preset condition, which may specifically include:
光源对应的拍照区域中四角区域的亮度值与中心区域的亮度值之间的比值大于第二预设阈值;或者,The ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is greater than the second preset threshold; or,
光源对应的拍照区域中四角区域的亮度值与中心区域的亮度值之间的比值小于第三预设阈值。The ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is smaller than the third preset threshold.
需要说明的是,光源对应的拍照区域中四角区域的亮度值与中心区域的亮度值之间的比值大于第二预设阈值,说明校准发现光源(这里指闪光灯)拍照四角均匀度过高,整体光斑照度明显偏低,也就是说,光源与灯罩之间的距离偏小,为了保证终端通过光源拍照校准的一致性,终端在满足该预设条件时,调整施加在目标电磁铁上的电流的大小和/或方向,将灯罩与所述光源之间的距离增大至第二目标值。It should be noted that the ratio between the brightness value of the four corners of the photographing area corresponding to the light source and the brightness value of the central area is greater than the second preset threshold, indicating that the calibration found that the light source (here, the flash) is too uniform to take pictures of the four corners. The illuminance of the spot is obviously low, that is, the distance between the light source and the lampshade is too small. In order to ensure the consistency of the terminal's camera calibration through the light source, the terminal adjusts the current applied to the target electromagnet when the preset conditions are met. The size and/or direction increase the distance between the lampshade and the light source to a second target value.
具体的,如图1所示,终端在满足该预设条件时,调整施加在两个第三电磁铁6上的电流的大小和/或方向,将灯罩与所述光源之间的距离增大至第二目标值。Specifically, as shown in FIG. 1, when the terminal satisfies the preset condition, the size and/or direction of the current applied to the two third electromagnets 6 is adjusted to increase the distance between the lampshade and the light source. To the second target value.
还有,光源对应的拍照区域中四角区域的亮度值与中心区域的亮度值之间的比值小于第三预设阈值,说明校准发现光源(这里指闪光灯)拍照光斑中心过曝,四角过暗,也就是说,光源与灯罩之间的距离偏大,为了保证终端通过光源拍照校准的一致性,终端在满足该预设条件时,调整施加在目标电 磁铁上的电流的大小和/或方向,将灯罩与所述光源之间的距离减小至第三目标值。In addition, the ratio between the brightness value of the four corners of the photo area corresponding to the light source and the brightness value of the center area is less than the third preset threshold, indicating that the calibration found that the center of the photo spot of the light source (here, flash) is overexposed and the four corners are too dark. That is to say, the distance between the light source and the lampshade is too large. In order to ensure the consistency of the terminal's camera calibration through the light source, the terminal adjusts the magnitude and/or direction of the current applied to the target electromagnet when the preset conditions are met. Reduce the distance between the lampshade and the light source to a third target value.
具体的,如图1所示,终端在满足该预设条件时,调整施加在两个第三电磁铁6上的电流的大小和/或方向,将灯罩与所述光源之间的距离减小至第三目标值。Specifically, as shown in FIG. 1, when the terminal satisfies the preset condition, the size and/or direction of the current applied to the two third electromagnets 6 is adjusted to reduce the distance between the lampshade and the light source. To the third target value.
还有,用户在利用闪光灯拍远景时,希望光线能照到的距离更远,对光线能照亮的区域大小要求不高,这个时候希望闪光灯与闪光灯灯罩的间隙越大越好;而用户在利用闪光灯拍近景时,希望光线能照亮的区域越大越好,这个时候希望闪光灯与闪光灯灯罩的间隙越小越好,为了满足不同拍照场景的需求,作为一种可选的实现方式,所述终端满足预设条件,可具体包括:In addition, when the user uses the flash to take a long shot, he hopes that the light can reach farther, and the size of the area that the light can illuminate is not high. At this time, it is hoped that the gap between the flash and the flash lamp shade is as large as possible; and the user is using When the flash is taking close-up shots, the larger the area that the light can illuminate, the better. At this time, it is hoped that the gap between the flash and the lampshade of the flash is as small as possible. In order to meet the needs of different shooting scenes, as an optional implementation, the terminal Meet the preset conditions, which can specifically include:
通过所述终端的光源拍照时,取景框内的拍照对象与所述终端之间的距离大于第二预设距离值,且灯罩与光源之间的距离小于第三预设距离值;或者,When taking a picture with the light source of the terminal, the distance between the photographed object in the finder frame and the terminal is greater than the second preset distance value, and the distance between the lampshade and the light source is less than the third preset distance value; or,
通过所述终端的光源拍照时,取景框内的拍照对象与所述终端之间的距离小于第四预设距离值,且灯罩与光源之间的距离大于第五预设距离值。When taking pictures through the light source of the terminal, the distance between the photographed object in the framing frame and the terminal is less than the fourth preset distance value, and the distance between the lampshade and the light source is greater than the fifth preset distance value.
需要说明的是,通过所述终端的光源拍照时,取景框内的拍照对象与所述终端之间的距离大于第二预设距离值,说明用户在利用闪光灯进行远景拍照,而此时,灯罩与光源之间的距离小于第三预设距离值,也就是光线照到的距离不够远,为了满足用户的拍照需求,终端在满足上述预设条件时,调整施加在目标电磁铁上的电流的大小和/或方向,将灯罩与所述光源之间的距离增大至第四目标值;It should be noted that when taking a photo with the light source of the terminal, the distance between the subject in the viewing frame and the terminal is greater than the second preset distance value, indicating that the user is using the flash to take a long-range photo, and at this time, the lampshade The distance to the light source is less than the third preset distance value, that is, the distance the light hits is not far enough. In order to meet the user's photographing needs, the terminal adjusts the current applied to the target electromagnet when the above preset conditions are met. Size and/or direction, increasing the distance between the lampshade and the light source to a fourth target value;
还有,通过所述终端的光源拍照时,取景框内的拍照对象与所述终端之间的距离小于第四预设距离值,说明用户在利用闪光灯进行近景拍照,而此时,灯罩与光源之间的距离大于第五预设距离值,也就是光线照亮的区域不够大,为了满足用户的拍照需求,终端在满足上述预设条件时,调整施加在目标电磁铁上的电流的大小和/或方向,将灯罩与所述光源之间的距离减小至第五目标值。In addition, when taking pictures with the light source of the terminal, the distance between the subject in the viewing frame and the terminal is less than the fourth preset distance value, indicating that the user is using the flash to take close-up pictures, and at this time, the lampshade and the light source The distance between the two is greater than the fifth preset distance value, that is, the area illuminated by the light is not large enough. In order to meet the user’s photographing needs, the terminal adjusts the magnitude and magnitude of the current applied to the target electromagnet when the above preset conditions are met. /Or direction, reduce the distance between the lampshade and the light source to the fifth target value.
本公开实施例提供的光源控制方法,基于分别连接基座以及印制电路板的弹性元件;设置于印制电路板上的光源;设置于壳体上的灯罩,灯罩与光 源之间具有间隙;印制电路板上设置有第一电磁铁,壳体上对应设置有第二电磁铁或第一磁铁材料;或者,壳体上设置有第三电磁铁,印制电路板上对应设置有第四电磁铁或第二磁性材料,具有上述结构的终端,判断所述终端是否满足预设条件;若满足所述预设条件,则对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者,调整施加在所述目标电磁铁上的电流的大小和/或方向;其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者,如此,能够满足不同场景下对光源与灯罩的间隙的不同需求。The light source control method provided by the embodiment of the present disclosure is based on the elastic elements respectively connected to the base and the printed circuit board; the light source arranged on the printed circuit board; the lamp shade arranged on the housing, with a gap between the lamp shade and the light source; A first electromagnet is provided on the printed circuit board, and a second electromagnet or a first magnet material is correspondingly provided on the housing; or, a third electromagnet is provided on the housing, and a fourth electromagnet is provided on the printed circuit board. The electromagnet or the second magnetic material, the terminal having the above structure, determines whether the terminal meets the preset condition; if the preset condition is satisfied, the target electromagnet is energized, or the target electromagnet is stopped, Or, adjust the magnitude and/or direction of the current applied to the target electromagnet; wherein the target electromagnet is the first electromagnet, the second electromagnet, the third electromagnet, and the At least one of the fourth electromagnets, in this way, can meet different requirements for the gap between the light source and the lampshade in different scenarios.
基于上述方法,本公开实施例还提供一种用以实现上述方法的终端。Based on the above method, an embodiment of the present disclosure also provides a terminal for implementing the above method.
如图3所示,为本公开实施例提供的终端的结构示意图。本公开实施例提供一种终端300,该终端300为上述实施例中所述的终端,该终端300还可以包括:As shown in FIG. 3, it is a schematic structural diagram of a terminal provided by an embodiment of the present disclosure. The embodiment of the present disclosure provides a terminal 300. The terminal 300 is the terminal described in the foregoing embodiment. The terminal 300 may further include:
判断模块301,用于判断所述终端是否满足预设条件;The judgment module 301 is used to judge whether the terminal meets a preset condition;
控制模块302,用于在满足所述预设条件时,对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者调整施加在所述目标电磁铁上的电流的大小和/或方向;The control module 302 is configured to energize the target electromagnet when the preset conditions are met, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet ;
其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者。Wherein, the target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
可选地,所述终端满足所述预设条件,具体包括:Optionally, the terminal meeting the preset condition specifically includes:
所述终端的重力加速度大于第一预设阈值,且灯罩与光源之间的距离小于第一预设距离值。The gravitational acceleration of the terminal is greater than the first preset threshold, and the distance between the lampshade and the light source is less than the first preset distance.
可选地,所述终端满足所述预设条件,具体包括:Optionally, the terminal meeting the preset condition specifically includes:
光源对应的拍照区域中四角区域的亮度值与中心区域的亮度值之间的比值大于第二预设阈值;或者,The ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is greater than the second preset threshold; or,
光源对应的拍照区域中四角区域的亮度值与中心区域的亮度值之间的比值小于第三预设阈值。The ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is smaller than the third preset threshold.
可选地,所述终端满足所述预设条件,具体包括:Optionally, the terminal meeting the preset condition specifically includes:
通过所述终端的光源拍照时,取景框内的拍照对象与所述终端之间的距离大于第二预设距离值,且灯罩与光源之间的距离小于第三预设距离值;或 者,When taking pictures through the light source of the terminal, the distance between the photographed object in the viewing frame and the terminal is greater than the second preset distance value, and the distance between the lampshade and the light source is less than the third preset distance value; or,
通过所述终端的光源拍照时,取景框内的拍照对象与所述终端之间的距离小于第四预设距离值,且灯罩与光源之间的距离大于第五预设距离值。When taking pictures through the light source of the terminal, the distance between the photographed object in the framing frame and the terminal is less than the fourth preset distance value, and the distance between the lampshade and the light source is greater than the fifth preset distance value.
本公开实施例提供的终端能够实现图2的方法实施例中终端实现的各个过程,为避免重复,这里不再赘述。The terminal provided in the embodiment of the present disclosure can implement the various processes implemented by the terminal in the method embodiment of FIG. 2. To avoid repetition, details are not described herein again.
本公开实施例提供的终端,通过判断模块判断所述终端是否满足预设条件;控制模块在满足所述预设条件时,对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者调整施加在所述目标电磁铁上的电流的大小和/或方向;其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者,如此,能够满足不同场景下对光源与灯罩的间隙的不同需求。The terminal provided by the embodiment of the present disclosure judges whether the terminal meets the preset condition through the judgment module; the control module energizes the target electromagnet when the preset condition is satisfied, or stops energizing the target electromagnet, or Adjust the magnitude and/or direction of the current applied to the target electromagnet; wherein, the target electromagnet is the first electromagnet, the second electromagnet, the third electromagnet and the first electromagnet At least one of the four electromagnets, in this way, can meet different requirements for the gap between the light source and the lampshade in different scenarios.
图4为本公开为实现本公开各个实施例的一种终端的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of a terminal that is disclosed to implement various embodiments of the present disclosure.
该终端400终端500包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。本领域技术人员可以理解,图4中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。The terminal 400 includes but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, And power supply 411 and other components. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 4 does not constitute a limitation on the terminal device, and the terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or different components Layout. In the embodiments of the present disclosure, terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
其中,处理器410用于判断所述终端是否满足预设条件;在满足所述预设条件时,对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者,调整施加在所述目标电磁铁上的电流的大小和/或方向;其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者。Wherein, the processor 410 is used to determine whether the terminal meets a preset condition; when the preset condition is satisfied, energize the target electromagnet, or stop energizing the target electromagnet, or adjust the The magnitude and/or direction of the current on the target electromagnet; wherein the target electromagnet is one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet At least one.
本公开实施例中,通过判断所述终端是否满足预设条件;若满足所述预设条件,则对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者,调整施加在所述目标电磁铁上的电流的大小和/或方向;其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者,如此,能够满足不同场景下对光源与灯罩的间隙的不同需求。In the embodiment of the present disclosure, it is determined whether the terminal meets a preset condition; if the preset condition is satisfied, the target electromagnet is energized, or the target electromagnet is stopped, or the adjustment is applied to the The magnitude and/or direction of the current on the target electromagnet; wherein the target electromagnet is one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet At least one of them, in this way, can meet different requirements for the gap between the light source and the lampshade in different scenarios.
应理解的是,本公开实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 401 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 410; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
终端设备通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与终端400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The audio output unit 403 can convert the audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into audio signals and output them as sounds. Moreover, the audio output unit 403 may also provide audio output related to a specific function performed by the terminal 400 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042. The graphics processor 4041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 may be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode for output.
终端400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在终端400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、 陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light. The proximity sensor can close the display panel 4061 and/or when the terminal 400 is moved to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元407可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 407 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 4071 or near the touch panel 4071. operating). The touch panel 4071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 410, the command sent by the processor 410 is received and executed. In addition, the touch panel 4071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图4中,触控面板4071与显示面板4061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现终端设备的输入和输出功能,具体此处不做限定。Further, the touch panel 4071 can cover the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it transmits it to the processor 410 to determine the type of the touch event. The type of event provides corresponding visual output on the display panel 4061. Although in FIG. 4, the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated The implementation of the input and output functions of the terminal device is not specifically limited here.
接口单元408为外部装置与终端400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来 自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端400内的一个或多个元件或者可以用于在终端400和外部装置之间传输数据。The interface unit 408 is an interface for connecting an external device with the terminal 400. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 408 may be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal 400 or may be used to communicate between the terminal 400 and the external device. Transfer data between.
存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 409 can be used to store software programs and various data. The memory 409 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器410是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器410可包括一个或多个处理单元;可选地,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 409, and calls the data stored in the memory 409 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole. The processor 410 may include one or more processing units; optionally, the processor 410 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410.
终端400还可以包括给各个部件供电的电源411(比如电池),可选地,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal 400 may also include a power source 411 (such as a battery) for supplying power to various components. Optionally, the power source 411 may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,终端400包括一些未示出的功能模块,在此不再赘述。In addition, the terminal 400 includes some functional modules not shown, which will not be repeated here.
可选地,本公开实施例还提供一种终端,包括处理器410,存储器409,存储在存储器409上并可在处理器410上运行的程序,该程序被处理器410执行时实现上述光源控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure also provides a terminal, including a processor 410, a memory 409, a program stored in the memory 409 and running on the processor 410, and the program is executed by the processor 410 to realize the above light source control Each process of the method embodiment can achieve the same technical effect. To avoid repetition, it will not be repeated here.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有程序,该程序被处理器执行时实现上述光源控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiments of the present disclosure also provide a computer-readable storage medium on which a program is stored. When the program is executed by a processor, each process of the above-mentioned light source control method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here. Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure are described above with reference to the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present disclosure, without departing from the purpose of the present disclosure and the scope of protection of the claims, many forms can be made, which are all protected by the present disclosure.

Claims (13)

  1. 一种终端,包括:A terminal, including:
    基座;Base
    印制电路板;Printed circuit board;
    分别连接所述基座以及所述印制电路板的弹性元件;Connecting the base and the elastic element of the printed circuit board respectively;
    设置于所述印制电路板上的光源;A light source arranged on the printed circuit board;
    壳体;case;
    设置于所述壳体上的灯罩,所述灯罩与所述光源之间具有间隙;A lamp shade arranged on the housing, with a gap between the lamp shade and the light source;
    所述印制电路板上设置有第一电磁铁,所述壳体上对应设置有第二电磁铁或第一磁性材料;或者,所述壳体上设置有第三电磁铁,所述印制电路板上对应设置有第四电磁铁或第二磁性材料。A first electromagnet is provided on the printed circuit board, and a second electromagnet or a first magnetic material is correspondingly provided on the housing; or a third electromagnet is provided on the housing, and the printed circuit board The circuit board is correspondingly provided with a fourth electromagnet or a second magnetic material.
  2. 根据权利要求1所述的终端,其中,所述光源在所述印制电路板上的正投影区域位于所述灯罩在所述印制电路板上的正投影区域内。The terminal according to claim 1, wherein an orthographic projection area of the light source on the printed circuit board is located in an orthographic projection area of the lampshade on the printed circuit board.
  3. 根据权利要求1所述的终端,其中,所述壳体包括:电池盖以及至少部分连接所述电池盖的中框本体;The terminal according to claim 1, wherein the housing comprises: a battery cover and a middle frame body at least partially connected to the battery cover;
    所述灯罩固定于所述电池盖;The lampshade is fixed to the battery cover;
    当所述印制电路板上设置有第一电磁铁时,所述第二电磁铁或所述第一磁性材料固定于所述中框本体;When a first electromagnet is provided on the printed circuit board, the second electromagnet or the first magnetic material is fixed to the middle frame body;
    当所述印制电路板上设置有第四电磁铁或第二磁性材料时,所述第三电磁铁固定于所述中框本体。When a fourth electromagnet or a second magnetic material is provided on the printed circuit board, the third electromagnet is fixed to the middle frame body.
  4. 根据权利要求3所述的终端,其中,所述灯罩包括:凸出部和固定部;所述电池盖设有一通孔;The terminal according to claim 3, wherein the lamp cover comprises: a protruding part and a fixing part; the battery cover is provided with a through hole;
    其中,所述凸出部位于所述通孔内;Wherein, the protruding part is located in the through hole;
    所述固定部固定于所述电池盖的第一表面,所述第一表面为所述电池盖靠近所述光源的表面;The fixing portion is fixed on a first surface of the battery cover, and the first surface is a surface of the battery cover close to the light source;
    当所述印制电路板上设置有第一电磁铁时,所述第二电磁铁的一端或所述第一磁性材料的一端抵接所述固定部;When a first electromagnet is provided on the printed circuit board, one end of the second electromagnet or one end of the first magnetic material abuts the fixing portion;
    当所述印制电路板上设置有第四电磁铁或第二磁性材料时,所述第三电 磁铁的一端抵接所述固定部。When a fourth electromagnet or a second magnetic material is provided on the printed circuit board, one end of the third electromagnet abuts the fixing portion.
  5. 根据权利要求1所述的终端,其中,当所述印制电路板上设置有第一电磁铁,所述壳体上对应设置有第二电磁铁或第一磁性材料时,所述第一电磁铁的厚度小于或者等于所述光源的高度;The terminal according to claim 1, wherein when a first electromagnet is provided on the printed circuit board and a second electromagnet or a first magnetic material is correspondingly provided on the housing, the first electromagnet The thickness of the iron is less than or equal to the height of the light source;
    当所述壳体上设置有第三电磁铁,所述印制电路板上对应设置有第四电磁铁或第二磁性材料时,所述第四电磁铁的厚度小于或者等于所述光源的高度,或者所述第二磁性材料的厚度小于或者等于所述光源的高度。When a third electromagnet is provided on the housing and a fourth electromagnet or a second magnetic material is correspondingly provided on the printed circuit board, the thickness of the fourth electromagnet is less than or equal to the height of the light source , Or the thickness of the second magnetic material is less than or equal to the height of the light source.
  6. 根据权利要求1所述的终端,其中,所述印制电路板上设置有两个所述第一电磁铁,所述壳体上对应设置有两个所述第二电磁铁或两个所述第一磁性材料;或者,所述壳体上设置有两个所述第三电磁铁,所述印制电路板对应设置有两个所述第四电磁铁或两个所述第二磁性材料。The terminal according to claim 1, wherein two first electromagnets are provided on the printed circuit board, and two second electromagnets or two second electromagnets are correspondingly provided on the housing. A first magnetic material; or, two third electromagnets are provided on the housing, and two fourth electromagnets or two second magnetic materials are correspondingly provided on the printed circuit board.
  7. 一种光源控制方法,应用于如权利要求1-6中任一项所述的终端,包括:A light source control method, applied to the terminal according to any one of claims 1-6, comprising:
    判断所述终端是否满足预设条件;Determine whether the terminal meets a preset condition;
    若满足所述预设条件,则对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者,调整施加在所述目标电磁铁上的电流的大小和/或方向;If the preset condition is met, energize the target electromagnet, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet;
    其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者。Wherein, the target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
  8. 根据权利要求7所述的光源控制方法,其中,所述终端满足所述预设条件,包括:The light source control method according to claim 7, wherein the terminal satisfying the preset condition includes:
    所述终端的重力加速度大于第一预设阈值,且灯罩与光源之间的距离小于第一预设距离值。The gravitational acceleration of the terminal is greater than the first preset threshold, and the distance between the lampshade and the light source is less than the first preset distance.
  9. 根据权利要求7所述的光源控制方法,其中,所述终端满足所述预设条件,包括:The light source control method according to claim 7, wherein the terminal satisfying the preset condition includes:
    光源对应的拍照区域中四角区域的亮度值与中心区域的亮度值之间的比值大于第二预设阈值;或者,The ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is greater than the second preset threshold; or
    光源对应的拍照区域中四角区域的亮度值与中心区域的亮度值之间的比值小于第三预设阈值。The ratio between the brightness value of the four corner areas and the brightness value of the central area in the photographing area corresponding to the light source is smaller than the third preset threshold.
  10. 根据权利要求7所述的光源控制方法,其中,所述终端满足所述预 设条件,包括:The light source control method according to claim 7, wherein the terminal meeting the preset condition includes:
    通过所述终端的光源拍照时,取景框内的拍照对象与所述终端之间的距离大于第二预设距离值,且灯罩与光源之间的距离小于第三预设距离值;或者,When taking a picture with the light source of the terminal, the distance between the photographed object in the finder frame and the terminal is greater than the second preset distance value, and the distance between the lampshade and the light source is less than the third preset distance value; or,
    通过所述终端的光源拍照时,取景框内的拍照对象与所述终端之间的距离小于第四预设距离值,且灯罩与光源之间的距离大于第五预设距离值。When taking pictures through the light source of the terminal, the distance between the photographed object in the framing frame and the terminal is less than the fourth preset distance value, and the distance between the lampshade and the light source is greater than the fifth preset distance value.
  11. 一种终端,其中,所述终端为如权利要求1-6中任一项所述的终端,还包括:A terminal, wherein the terminal is the terminal according to any one of claims 1-6, and further comprising:
    判断模块,用于判断所述终端是否满足预设条件;The judgment module is used to judge whether the terminal meets a preset condition;
    控制模块,用于在满足所述预设条件时,对目标电磁铁通电,或者,停止对所述目标电磁铁通电,或者调整施加在所述目标电磁铁上的电流的大小和/或方向;The control module is configured to energize the target electromagnet when the preset conditions are met, or stop energizing the target electromagnet, or adjust the magnitude and/or direction of the current applied to the target electromagnet;
    其中,所述目标电磁铁为所述第一电磁铁、所述第二电磁铁、所述第三电磁铁和所述第四电磁铁中的至少一者。Wherein, the target electromagnet is at least one of the first electromagnet, the second electromagnet, the third electromagnet, and the fourth electromagnet.
  12. 一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,其中,所述程序被所述处理器执行时实现如权利要求7至10中任一项所述的光源控制方法的步骤。A terminal comprising a processor, a memory, and a program stored on the memory and capable of running on the processor, wherein the program is executed by the processor to implement any one of claims 7 to 10 The steps of the light source control method described in item.
  13. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有程序,所述程序被处理器执行时实现如权利要求7至10中任一项所述的光源控制方法的步骤。A computer-readable storage medium, wherein a program is stored on the computer-readable storage medium, and when the program is executed by a processor, the steps of the light source control method according to any one of claims 7 to 10 are realized.
PCT/CN2020/084664 2019-05-31 2020-04-14 Light source control method and terminal WO2020238443A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910470086.7A CN110213411B (en) 2019-05-31 2019-05-31 Light source control method and terminal
CN201910470086.7 2019-05-31

Publications (1)

Publication Number Publication Date
WO2020238443A1 true WO2020238443A1 (en) 2020-12-03

Family

ID=67789925

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/084664 WO2020238443A1 (en) 2019-05-31 2020-04-14 Light source control method and terminal

Country Status (2)

Country Link
CN (1) CN110213411B (en)
WO (1) WO2020238443A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213411B (en) * 2019-05-31 2021-07-06 维沃移动通信有限公司 Light source control method and terminal
CN110753140B (en) * 2019-09-30 2021-05-18 华为技术有限公司 Terminal, lamp shade and ambient light approach module
US11353928B2 (en) 2020-05-08 2022-06-07 Wuhan China Star Optoelectronics Semiconductor Display Technology Co., Ltd. Display module and display device
CN111625123B (en) * 2020-05-08 2021-10-08 武汉华星光电半导体显示技术有限公司 Display module and display device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110169983A1 (en) * 2010-01-14 2011-07-14 Hon Hai Precision Industry Co., Ltd. Flash device and image capture device having same
CN108111729A (en) * 2017-12-25 2018-06-01 维沃移动通信有限公司 A kind of camera module, control method and mobile terminal
CN109151289A (en) * 2018-10-30 2019-01-04 维沃移动通信(杭州)有限公司 Light filling mould group and terminal device
CN109151290A (en) * 2018-10-30 2019-01-04 维沃移动通信(杭州)有限公司 Light filling mould group and terminal device
CN110213411A (en) * 2019-05-31 2019-09-06 维沃移动通信有限公司 A kind of light source control method and terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064232B (en) * 2012-11-28 2015-10-21 苏州佳世达电通有限公司 There is the electronic installation of camera function
CN105072222B (en) * 2015-08-04 2019-01-01 青岛海信移动通信技术股份有限公司 The control method of mobile terminal and mobile terminal flash lamp
CN106027892B (en) * 2016-05-30 2019-12-24 联想(北京)有限公司 Flash lamp device, adjusting method and electronic equipment
CN107529018B (en) * 2016-06-21 2021-04-20 富泰华工业(深圳)有限公司 Flash lamp, electronic device with flash lamp and flash lamp control method
CN106331382B (en) * 2016-11-17 2019-06-25 捷开通讯(深圳)有限公司 A kind of flash lamp component and its control system based on mobile terminal, control method
CN109474789B (en) * 2018-10-30 2020-09-08 维沃移动通信(杭州)有限公司 Method for adjusting field angle of fill-in lamp and mobile terminal
CN109788174B (en) * 2019-01-11 2021-05-07 维沃移动通信有限公司 Light supplementing method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110169983A1 (en) * 2010-01-14 2011-07-14 Hon Hai Precision Industry Co., Ltd. Flash device and image capture device having same
CN108111729A (en) * 2017-12-25 2018-06-01 维沃移动通信有限公司 A kind of camera module, control method and mobile terminal
CN109151289A (en) * 2018-10-30 2019-01-04 维沃移动通信(杭州)有限公司 Light filling mould group and terminal device
CN109151290A (en) * 2018-10-30 2019-01-04 维沃移动通信(杭州)有限公司 Light filling mould group and terminal device
CN110213411A (en) * 2019-05-31 2019-09-06 维沃移动通信有限公司 A kind of light source control method and terminal

Also Published As

Publication number Publication date
CN110213411B (en) 2021-07-06
CN110213411A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
WO2020238443A1 (en) Light source control method and terminal
CN108683757B (en) Electronic device and electronic apparatus
WO2021057267A1 (en) Image processing method and terminal device
WO2021129722A1 (en) Electronic device, charger, and charging control method
WO2021169738A1 (en) Camera module and electronic device
WO2021121262A1 (en) Electronic device and control method and control device therefor, and computer-readable storage medium
WO2020186964A1 (en) Audio signal outputting method and terminal device
CN213279877U (en) Camera module and mobile terminal
WO2021013009A1 (en) Photographing method and terminal device
WO2021218748A1 (en) Screen mirroring method and electronic device
WO2021179800A1 (en) Electronic device
WO2020125274A1 (en) Audio output method and mobile terminal
WO2021104161A1 (en) Exciter, and electronic device and control method and apparatus therefor
WO2022135280A1 (en) Electronic device and control method and control device therefor, and terminal device
WO2021147911A1 (en) Mobile terminal, method for detecting image capturing mode, and storage medium
WO2021082744A1 (en) Video viewing method and electronic apparatus
WO2020238562A1 (en) Display method and terminal
CN111083260A (en) Electronic device, control method and control device thereof, and computer-readable storage medium
WO2021185254A1 (en) Content sharing method, and electronic device
WO2020192414A1 (en) Mobile terminal and mobile terminal control method
WO2021036519A1 (en) Mobile terminal, control method and apparatus, and computer readable storage medium
WO2020108279A1 (en) Dual-camera device and mobile terminal
US20240177701A1 (en) Playback device, control method and control apparatus therefor, and computer-readable storage medium
CN208956096U (en) Mobile terminal
WO2021136107A1 (en) Electronic device, control method, and control apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20814403

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20814403

Country of ref document: EP

Kind code of ref document: A1