WO2022247435A1 - Electronic device, light supplementing module, protective casing, control method and apparatus, and medium - Google Patents

Electronic device, light supplementing module, protective casing, control method and apparatus, and medium Download PDF

Info

Publication number
WO2022247435A1
WO2022247435A1 PCT/CN2022/083319 CN2022083319W WO2022247435A1 WO 2022247435 A1 WO2022247435 A1 WO 2022247435A1 CN 2022083319 W CN2022083319 W CN 2022083319W WO 2022247435 A1 WO2022247435 A1 WO 2022247435A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
light
target
module
geomagnetic sensor
Prior art date
Application number
PCT/CN2022/083319
Other languages
French (fr)
Chinese (zh)
Inventor
贾勇
Original Assignee
Oppo广东移动通信有限公司
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
Priority claimed from CN202110579274.0A external-priority patent/CN115412631B/en
Priority claimed from CN202121154707.XU external-priority patent/CN215186916U/en
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022247435A1 publication Critical patent/WO2022247435A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • the present application relates to the technical field of electronic equipment, and in particular to an electronic equipment, a supplementary light module, a protective case, a control method, a device, and a medium.
  • an electronic device including:
  • the geomagnetic sensor is used to measure the external magnetic field of the electronic device to obtain target magnetic field measurement data
  • a processor connected to the geomagnetic sensor, configured to acquire the target magnetic field measurement data, and send target control to the function management module when it is determined based on the target magnetic field measurement data that there is a magnetic component within the target distance range of the geomagnetic sensor instruction;
  • the function management module is connected with the processor, and is used for receiving the target control instruction, and executing corresponding function control operations according to the instruction of the target control instruction.
  • a supplementary light module in the second aspect, includes a magnetic component, a light guide structure and a light output structure connected to each other; when the supplementary light module is connected to the device body, it can extend out of the device body or be stored in the body of the device;
  • the light-emitting structure When the supplementary light module protrudes from the device body, the light-emitting structure is located outside the device body, and the magnetic component is located within the target distance range of the geomagnetic sensor in the electronic device to trigger the electronic device to start the light-emitting unit.
  • the light-guiding structure The light emitted by the light-emitting unit is used to transmit the light to the light-exiting structure, so as to emit the light through the light-exiting structure.
  • a protective case for electronic equipment includes the supplementary light module as described in the second aspect above.
  • an electronic device in a fourth aspect, includes a rear case, and the electronic device further includes the supplementary light module as described in the second aspect above.
  • an electronic device control method includes:
  • the target magnetic field measurement data measured by the geomagnetic sensor in the electronic device determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data; if the magnetic component exists within the target distance range of the geomagnetic sensor , then execute the corresponding function control operation.
  • an electronic device control device includes:
  • An acquisition module configured to acquire the target magnetic field measurement data measured by the geomagnetic sensor arranged in the electronic device
  • a determining module configured to determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data
  • An operation executing module configured to execute a corresponding function control operation if the magnetic component exists within the target distance range of the geomagnetic sensor.
  • an electronic device including a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • the processor executes the computer program, the above-mentioned fifth aspect is realized. method steps.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the fifth aspect above are implemented.
  • the electronic device includes a geomagnetic sensor, a processor, and a function management module
  • the processor is respectively connected to the geomagnetic sensor and the function management module
  • the geomagnetic sensor is used to measure the external magnetic field of the electronic device to obtain the target
  • the magnetic field measurement data the processor is used to send the target control instruction to the function management module when it is determined based on the target magnetic field measurement data that there is a magnetic component within the target distance range of the geomagnetic sensor
  • the function management module is used to receive the target control instruction, and based on the The instruction of the target control instruction executes the corresponding functional control operation, that is, the electronic device provided by the embodiment of the present application can perform the corresponding functional control operation as long as there is a magnetic component within the target distance range of the geomagnetic sensor.
  • FIG. 1 is a schematic diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another electronic device provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of another electronic device provided by the embodiment of the present application.
  • Fig. 4 is a schematic diagram of a supplementary light module provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of a supplementary light module provided in the embodiment of the present application stored in the device body;
  • Fig. 6 is a schematic diagram of a first receiving groove opened in a device body provided by an embodiment of the present application.
  • Fig. 7 is a schematic diagram of the main body of a supplementary light module extension device provided by the embodiment of the present application.
  • Fig. 8 is a cross-sectional view of a light guiding structure provided by an embodiment of the present application.
  • Fig. 9 is a cross-sectional view of a light output structure provided by an embodiment of the present application.
  • Fig. 10 is a cross-sectional view of another light output structure provided by the embodiment of the present application.
  • Fig. 11 is a schematic diagram of the position of the magnetic component relative to the geomagnetic sensor provided by the embodiment of the present application.
  • Fig. 13 is a schematic diagram of another supplementary light module provided by the embodiment of the present application.
  • Fig. 14 is an enlarged view of a light incident structure provided by the embodiment of the present application.
  • Fig. 15 is an enlarged view of another light incident structure provided by the embodiment of the present application.
  • Fig. 16 is a schematic diagram of a sliding connection between a supplementary light module and the device body provided by the embodiment of the present application;
  • FIG. 17 is a schematic diagram of a function expansion module provided by an embodiment of the present application.
  • Fig. 18 is a schematic diagram of a function expansion module extension device body provided by the embodiment of the present application.
  • FIG. 19 is a flow chart of an electronic device control method provided in an embodiment of the present application.
  • FIG. 20 is a flow chart of another electronic device control method provided by the embodiment of the present application.
  • FIG. 21 is a flow chart of another electronic device control method provided by the embodiment of the present application.
  • Fig. 22 is a block diagram of an electronic equipment control device provided by an embodiment of the present application.
  • Fig. 23 is a block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 provided by the embodiment of the present application.
  • the electronic device 100 may be a smart phone, a tablet computer, etc., and the embodiment of the present application does not limit the specific type of the electronic device 100 .
  • the electronic device 100 may include a geomagnetic sensor 101 , a processor 102 and a function management module 103 , wherein the geomagnetic sensor 101 is connected to the processor 102 , and the processor 102 is connected to the function management module 103 .
  • the geomagnetic sensor 101 is used to measure the external magnetic field of the electronic device to obtain target magnetic field measurement data.
  • a geomagnetic sensor is a sensor mainly used to measure the earth's magnetic field.
  • electronic devices can determine their own movement direction and their own heading angle by using the earth's magnetic field data measured by the geomagnetic sensor.
  • electronic The realization of functions such as navigation and compass of the device is inseparable from the geomagnetic sensor.
  • the geomagnetic sensor can also measure the magnetic field generated by magnetic components such as magnets or magnetic materials within a certain distance from itself.
  • the electronic device uses the geomagnetic sensor to measure the external magnetic field of the electronic device. The measurement is carried out to obtain target magnetic field measurement data, so as to use the target magnetic field measurement data to detect whether there is a magnetic component within the target distance range of the geomagnetic sensor.
  • the target magnetic field measurement data measured by the geomagnetic sensor may be the target magnetic induction.
  • the geomagnetic sensor can measure the magnetic fields on the x-axis, y-axis and z-axis of the world coordinate system (also called the absolute coordinate system).
  • the target magnetic field measurement data can be included in the world coordinate system. Magnetosensor intensities measured on the x-axis, y-axis, and z-axis, respectively.
  • the processor 102 is configured to acquire target magnetic field measurement data, and send target control instructions to the function management module 103 when it is determined based on the target magnetic field measurement data that there is a magnetic component within the target distance range of the geomagnetic sensor.
  • the processor can obtain the target magnetic field measurement data based on the sensor data acquisition script, wherein, in the Android system, the processor can utilize the sensor data acquisition script to register in the sensor provider (Chinese: sensor provider) of the Android system Geomagnetic sensor type, to subscribe to the target magnetic field measurement data measured by the geomagnetic sensor. After registration, the sensor provider can pass the target magnetic field measurement data to the sensor data acquisition script, and the processor can obtain it through the sensor data acquisition script Target magnetic field measurement data.
  • the sensor provider Choinese: sensor provider
  • Geomagnetic sensor type the Android system Geomagnetic sensor type
  • the processor may acquire the target magnetic field measurement data periodically, may also acquire the target magnetic field measurement data in real time, and may also acquire the target magnetic field measurement data when the target magnetic field measurement data changes
  • the timing for the processor to acquire the target magnetic field measurement data is not limited.
  • the function management module 103 is configured to receive the target control instruction sent by the processor 102, and execute corresponding function control operations according to the instruction of the target control instruction.
  • the electronic device 100 may be accommodated in a protective case for the electronic device, and the protective case for the electronic device includes a protective case body and a function expansion module that are movably connected to each other, and the function expansion module includes a magnetic component,
  • the function expansion module can extend out of the protective case body or be accommodated in the protective case body, and, when extending out of the protective case body, the magnetic components in the function expansion module are located within the target distance range of the geomagnetic sensor 101 .
  • the processor 102 may be triggered to send the target control instruction to the function management module 103, so that the function management module 103 can execute a corresponding function control operation according to the instruction of the target control instruction.
  • the function expansion module 103 may include a power management unit 1031 and a light emitting unit 1032, wherein the power management unit 1031 is connected to the processor 102, and the light emitting unit 1032 is connected to the power management unit 1031 connect.
  • the power management unit 1031 is configured to supply power to the light emitting unit 1032 according to the target control instruction, so that the light emitting unit 1032 emits light.
  • the light emitting unit 1032 may be a light source module such as a flashlight in an electronic device.
  • the light emitting unit 1032 in the electronic device can be triggered to emit light.
  • the function expansion module in the protective case of the electronic device may further include a light guide structure and a light output structure that communicate with each other.
  • the light-emitting structure is located outside the electronic device, and the light-guiding structure is used to guide the light emitted by the light-emitting unit 1032 to the light-emitting structure, so as to emit light through the light-emitting structure.
  • the function of supplementary light can be realized through the light emitted by the light-emitting structure.
  • the user can extend the function expansion module out of the protective shell body, thereby triggering the electronic
  • the light emitting unit 1032 in the device 100 emits light, and emits the light emitted by the light emitting unit 1032 toward the shooting direction of the front camera through the light guide structure and the light output structure, so as to supplement light for the subject of the front camera.
  • the processor 102 can detect whether the front camera of the electronic device 100 is is called, and only when it is detected that the front camera is called, the target magnetic field measurement data is obtained to judge whether there is a magnetic component in the target distance range of the geomagnetic sensor 101 based on the target magnetic field measurement data, so that it can avoid
  • the light emitting unit 1032 is turned on meaninglessly to realize supplementary light, so the power consumption of the electronic device can be saved, and the calculation amount of the electronic device can be reduced.
  • the function extension module 103 may also include a function extension unit 1033, which is connected to the power management unit 1031, and the function extension unit 1033 may include a camera, a display at least one of a screen and a vibration motor.
  • the power management unit 1031 is further configured to supply power to the function expansion unit 1033 according to the target control instruction, so as to enable the function expansion unit 1033 to start.
  • the power management unit 1031 may supply power to the camera according to the target control instruction, so as to start the camera.
  • the power management unit 1031 can supply power to the display screen according to the target control instruction, so as to light up the display screen.
  • the power management unit 1031 may supply power to the vibration motor according to the target control instruction to start the vibration motor.
  • the processor 102 may determine whether there is a magnetic component within the target distance range of the geomagnetic sensor 101 based on the following manner:
  • the processor judges whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity range is determined according to the magnetic induction intensity measured by the geomagnetic sensor when there is a magnetic component within the target distance range of the geomagnetic sensor.
  • the preset intensity range may be a range obtained by technicians based on experiments or data simulations. In an optional embodiment of the present application, the preset intensity range may be a range greater than a preset intensity threshold.
  • the processor may detect whether the sum of the absolute values of the magnetosensor intensities respectively measured by the geomagnetic sensor on the x-axis, y-axis, and z-axis of the world coordinate system is greater than a preset intensity threshold, In this way, it is determined whether the target magnetic induction intensity is within a preset intensity range.
  • the preset intensity threshold may be 1600.
  • the processor determines that there is a magnetic component within the target distance range of the geomagnetic sensor; There are no magnetic components within the distance range.
  • the processor may continue to acquire the target magnetic field measurement data measured by the geomagnetic sensor, and based on the target magnetic field measurement data Determine whether the magnetic component continues to exist within the target distance range of the geomagnetic sensor. If it is detected that there is no magnetic component within the target distance range of the geomagnetic sensor, that is, if it is determined that the function expansion module is changed from extending out of the protective shell body to being stored in the In the protective case body, the processor 102 can send a follow-up control instruction to the function management module 103, and the function management module 103 can execute a corresponding follow-up function control operation according to the follow-up control instruction.
  • the subsequent function control operation may include at least one of the following operations: the operation of turning off the light emitting unit; the operation of turning off the vibration motor; the operation of turning off the display screen; the operation of turning off the camera.
  • the power management unit 1031 in the function management module 103 may stop supplying power to the light emitting unit, vibration motor, display screen and/or camera, so as to turn off the light emitting unit, turn off Vibrates the motors, turns off the display, and/or turns off the camera.
  • FIG. 4 is a schematic structural diagram of the supplementary light module 200 provided by the embodiment of the present application. As shown in FIG. .
  • the supplementary light module 200 can be connected to the device body Z1, and in an optional embodiment of the present application, the supplementary light module 200 can be detachably connected to the device body Z1.
  • the device body Z1 can be an electronic device, for example, the electronic device can be a smart phone, a tablet computer, etc.
  • the device body Z1 can also be a protective case body for an electronic device, and the protective case body for an electronic device includes The second accommodating slot, wherein the second accommodating slot is used for accommodating electronic equipment, in addition, the body of the electronic equipment protective case can also be provided with a light-emitting unit through hole, when the second accommodating slot accommodates electronic equipment, The through hole of the light-emitting unit is directly opposite to the light-emitting unit of the electronic device.
  • the light-emitting unit may be a light source module such as a flashlight in the electronic device.
  • the supplementary light module 200 can be detachably connected to the rear shell of the electronic device; It is detachably connected to the end surface of the electronic device protective case body opposite to the opening direction of the second receiving groove.
  • the supplementary light module 200 When the supplementary light module 200 is connected to the device body Z1, the supplementary light module 200 can protrude from the device body Z1, or can be accommodated in the device body Z1.
  • FIG. 5 is a schematic diagram of the supplementary light module 200 stored in the device body Z1 in an optional embodiment of the present application.
  • the A first accommodating groove R1 may be opened in the device body Z1, and when the light-filling module 200 is stored in the device body Z1, the light-filling module 200 is located in the first accommodating groove R1.
  • the first accommodating groove R1 can be opened on the rear shell of the electronic device;
  • the slot R1 may be opened on the end surface of the electronic equipment protective case body opposite to the opening direction of the second receiving slot.
  • the supplementary light module 200 when the supplementary light module 200 is accommodated in the first accommodation groove R1, the supplementary light module 200 is flush with the device body Z1, so that the supplementary light module 200 can be avoided
  • the module 200 is stored in the first receiving groove R1 , the supplementary light module 200 protrudes from the device body Z1 , resulting in unstable placement, and the problem that the supplementary light module 200 is easily damaged due to external bumps.
  • the flushing of the supplementary light module 200 with the device body Z1 means that the end surface of the supplementary light module 200 exposed outside the first accommodation groove R1 is flush with the rear shell of the electronic device.
  • the flushing of the supplementary light module 200 with the device body Z1 means that the end surface of the supplementary light module 200 exposed to the outside of the first receiving groove R1 is in contact with the electronic device protection The end surface of the shell body opposite to the opening direction of the second receiving groove is flush.
  • FIG. 7 is a schematic diagram of the supplementary light module 200 protruding from the device body Z1 in an optional embodiment of the present application.
  • the light output structure 203 is located outside the device body Z1.
  • the magnetic component 201 is located within the target distance range of the geomagnetic sensor in the electronic device to trigger the electronic device to start.
  • the light-emitting unit, the light-guiding structure 202 is used to transmit the light emitted by the light-emitting unit of the electronic device to the light-emitting structure 203, so as to emit light through the light-emitting structure 203, so that the light emitted through the light-emitting structure 203 can realize supplementary light.
  • the magnetic component 201 above can be a component capable of generating a magnetic field such as a magnet, and the magnetic component 201 can be a sheet structure, so that it can be conveniently arranged in the supplementary light module 200 .
  • the magnetic field interference generated by the magnetic component 201 on the geomagnetic sensor provided in the electronic device is used to make the electronic device determine whether the supplementary light module 200 is extended or not.
  • the electronic device does not need to install a special detection module, but reuses the existing geomagnetic sensor to realize the judgment of whether the supplementary light module 200 protrudes from the device body Z1. Therefore, its hardware The overhead is small, and it can be adapted to most electronic devices, so its application range is wide.
  • the light guide structure 202 can be made of a material with a light transmittance greater than a preset light transmittance threshold, for example, the light guide structure 202 can be made of acrylic material, PVC (English: Polyvinyl chloride; Chinese: polyvinyl chloride) material, etc. .
  • the light guide structure 202 can transmit the light of the light emitting unit, so as to guide the light of the light emitting unit to the light output structure.
  • the light guide structure 202 may be strip-shaped.
  • FIG. 8 is an exemplary schematic cross-sectional view of a light guide structure 202.
  • the first light reflection layer 2022 is used to reflect the light that escapes from the light guide body 2021 to the outside of the light guide body 2021, thereby reducing the degree of light dissipation of the light guide body 2021, and then ensuring that the light output structure 203 emits light. The intensity of the light.
  • the light guide body 2021 can be made of a material with a light transmittance greater than a preset light transmittance threshold as described above, and in addition, although the cross-sectional shape of the light guide body 2021 shown in FIG. 8 is a circle However, in practical applications, the cross-sectional shape of the light guide body 2021 may be square, triangular, etc., which is not specifically limited in this embodiment of the present application.
  • the light output structure 203 can be a light guide plate, which can convert the line light source into a surface light source and emit it from the light output surface. As shown in FIG. 4 , the light guide structure 202 and the light output structure 203 The side walls are connected, and the light output structure 203 can transmit the light transmitted by the light guide structure 202 to the side wall of the light output structure 203 to the light output surface, thereby forming a surface light source to emit.
  • the light-emitting surface of the light-emitting structure 203 (that is, the direction facing inwards perpendicular to the paper surface in FIG. 4 surface) is the same as the shooting orientation of the front camera of the electronic device (that is, the inward orientation of the vertical paper surface in FIG. Light.
  • FIG. 9 is an exemplary schematic cross-sectional view of the light output structure 203.
  • the method of coating the atomized layer H can make the light emitted by the light-emitting structure 203 softer, thereby improving Fill light effect, and improve user experience.
  • FIG. 10 is another exemplary schematic cross-sectional view of the light output structure 203.
  • the second light reflection layer G is used to reflect the light that escapes from the light exit structure from B to the outside back to the inside of the light exit structure 203, thereby reducing the light escape of the light exit structure 203.
  • the degree of divergence can ensure the intensity of light emitted by the light emitting structure 203 .
  • the light output structure 203 can be coated with the haze layer H or the second light reflection layer G.
  • the position of the magnetic component 201 when the supplementary light module 200 extends out of the device body Z1 is W1
  • the position of the magnetic component 201 when the supplementary light module 200 is stored in the device body Z1 is W2, wherein W1 and W2 is different from each other
  • the setting position of the geomagnetic sensor is W3
  • the setting position W3 of the geomagnetic sensor is the position of the geomagnetic sensor in the electronic device; when the device body Z1 is the electronic device protective shell body,
  • the installation position W3 of the geomagnetic sensor is the position of the geomagnetic sensor in the electronic device when the second receiving slot of the electronic device protective case body accommodates the electronic device). It can be seen from FIG. 11 that the distance between W1 and W3 is different from the distance between W2 and W3, wherein the distance between W1 and W3 is within the target distance range, and the distance between W2 and W3 is not within the target distance range.
  • FIG. 12 shows the magnetic induction intensity measured by the geomagnetic sensor when the supplementary light module 200 extends out of the device body Z1 and the magnetic induction intensity measured by the geomagnetic sensor when the supplementary light module 200 is stored in the device body Z1 schematic diagram.
  • the magnetic induction intensity measured by the geomagnetic sensor when the supplementary light module 200 extends out of the device body Z1 corresponds to the peak in the figure
  • the geomagnetic sensor is stored in the device body when the supplementary light module 200
  • the measured magnetic induction in the case of Z1 corresponds to the troughs in the diagram.
  • the magnetic field interference caused to the geomagnetic sensor is different under different conditions.
  • the electronic device can determine whether the supplementary light module 200 protrudes from the device body Z1 according to the difference in the magnetic field interference received by the geomagnetic sensor.
  • the geomagnetic sensor can be easily When the magnetic field interference is detected, in an optional embodiment of the present application, when the supplementary light module 200 extends out of the device body Z1, the position of the magnetic component 201 is close to the rear camera area of the electronic device.
  • the supplementary light module 200 may also include a light incident structure 204, wherein the light incident structure 204 communicates with the light guide structure 202, and the supplementary light module 200 When protruding from the device body Z1 , the light incident structure 204 faces the light emitting unit of the electronic device, so as to guide the light emitted by the light emitting unit to the light guide structure 202 .
  • FIG. 14 is an enlarged schematic view of the light incident structure 204. As shown in FIG. In the case of the device main body Z1, the groove faces the light emitting unit S of the electronic device.
  • a light reflection component J may be provided on the inner wall of the groove, wherein the light reflection component J may be a mirror, a reflection film, etc., the embodiment of the present application is not correct
  • the specific form of this light reflection element J is limited.
  • the light reflection component J is used to reflect the light emitted by the flashlight into the groove, so as to prevent the light emitted by the flashlight into the groove from escaping outwards, so as to ensure the intensity of the light emitted by the light emitting structure 203 .
  • the supplementary light module 200 can be connected to the device body Z1. Under the action of the rotation of the rotating shaft, it folds and protrudes from the device body.
  • the supplementary light module 200 is slidably connected to the device body Z1, and the supplementary light module 200 slides and protrudes from the device body Z1.
  • FIG. 7 is a schematic diagram of the supplementary light module 200 being folded and protruded from the device body under the rotation of the rotating shaft.
  • FIG. 16 which is a schematic diagram of the supplementary light module 200 sliding out based on the chute HC.
  • connection between the supplementary light module 200 and the device body Z1 is not limited to rotational connection and sliding connection, and there may also be other connection methods, which will not be described here in the embodiments of the present application. .
  • the embodiment of the present application also provides a function expansion module 300 of electronic equipment, wherein the function expansion module 300 includes a magnetic component 301, and the function expansion module 300 can be stretched when connected to the device body Z2. out of the device body Z2 or stored in the device body Z2.
  • FIG. 18 is A schematic diagram of the function expansion module 300 protruding from the device body Z2.
  • the function control operation includes at least one of the following operations: an operation of turning on the light emitting unit; an operation of starting a vibration motor; an operation of lighting a display screen; and an operation of starting a camera.
  • function control operations are only exemplary, and in practical applications, the function control operations may also be other types of operations, which are not described here in this embodiment of the present application.
  • the magnetic component 301 can generate a large magnetic field interference to the geomagnetic sensor installed in the electronic device. Therefore, the electronic device can determine the function expansion through the magnetic field interference received by the geomagnetic sensor.
  • the module 300 protrudes from the device body Z2, and when it is determined that the function expansion module 300 protrudes from the device body Z2, perform corresponding control operations, so that the electronic device can be realized when the function expansion module 300 protrudes from the device body
  • the effect of executing a specific operation since the triggering method of the function control operation is to extend the function expansion module 300 out of the device body Z2, compared with the traditional way of triggering virtual keys, triggering physical keys and controlling electronic In terms of the way the device moves according to the preset way, the triggering method is relatively simple and flexible.
  • the magnetic field interference generated by the magnetic component 301 on the geomagnetic sensor installed in the electronic device is used to make the electronic device determine whether the function expansion module 300 protrudes from the device body Z2.
  • the electronic device does not need to set up a special detection module, but reuses the existing geomagnetic sensor to realize the judgment of whether the function expansion module 300 protrudes from the device body Z2. Therefore, its hardware cost is relatively small, and , which can be adapted to most of the electronic equipment, therefore, its application range is wide.
  • the type and structure of the device body Z2 and the device body Z1 above are the same, and the way that the function expansion module 300 is connected to the device body Z2 is the same as the way that the supplementary light module 200 is connected to the device body Z1.
  • the way that the function expansion module 300 protrudes from the device body Z2 and the way that the function expansion module 300 is stored in the device body Z2 and the way that the supplementary light module 200 protrudes from the device body Z1 and that the supplementary light module 200 is stored in the device The method in Ontology Z2 is the same.
  • the device body Z2 includes a first receiving groove, and the function expansion module 300 is accommodated in the first receiving groove.
  • the function expansion module 300 is stored in the first receiving slot, the function expansion module 300 is flush with the device body Z2.
  • the device body Z2 may be an electronic device, and the function expansion module 300 is detachably connected to the rear case of the electronic device, and the rear case of the electronic device is provided with the above-mentioned first receiving slot.
  • the device body Z2 can also be an electronic equipment protective case body, and the electronic equipment protective case body is provided with a first accommodating groove and a second accommodating groove for accommodating electronic equipment.
  • the electronic equipment protective case body can also be opened There is a through hole of the light emitting unit, and when the electronic device is accommodated in the second accommodation groove, the through hole of the light emitting unit is directly opposite to the light emitting unit of the electronic device.
  • the function expansion module 300 can be rotatably connected with the device body Z2 through the rotation shaft, and the function expansion module 300 is folded and protruded from the device body Z2 under the rotation of the rotation shaft.
  • the function expansion module 300 is slidably connected to the device body Z2, and the function expansion module 300 slides out of the device body Z2.
  • the method in the ontology Z2 will not be described again, and its specific content can refer to the implementation content corresponding to any one of the drawings in FIG. 4 to FIG. 16 .
  • the magnetic assembly 301 in the function expansion module 300 is located within the target distance range of the geomagnetic sensor in the electronic device when the function expansion module 300 extends out of the device body Z2, and the magnetic assembly 301 When the function expansion module 300 is stored in the device body Z2, it is not within the target distance range of the geomagnetic sensor.
  • the position of the magnetic component 301 is close to the rear camera area of the electronic device.
  • the function expansion module 300 can realize the supplementary light function, in this case, the function expansion module 300 can include structure.
  • the function expansion module 300 may also include a light guide structure and a light output structure that communicate with each other.
  • the light output structure is located outside the device body Z2
  • the light guide structure is used to conduct the light emitted by the light emitting unit to the light exit structure, so as to emit the light through the light exit structure.
  • the light-guiding structure when the light-emitting unit of the electronic device is turned on, the light-guiding structure is used to transmit the light of the light-emitting unit, so as to guide the light to the light-emitting structure.
  • the light guide structure includes a light guide body and a first light reflection layer covering the peripheral surface of the light guide body.
  • the light emitted by the light-emitting structure is used to supplement the light of the object photographed by the front camera of the electronic device.
  • the light-emitting structure includes a light-emitting surface, and when the function expansion module 300 extends out of the device body Z2, the direction of the light-emitting surface is the same as the shooting direction of the front camera of the electronic device.
  • the light exit structure is used to transmit the light guided by the light guide structure to the light exit surface.
  • the light-emitting surface of the light-emitting structure may be coated with an atomized layer, and the atomized layer is used for scattering light transmitted by the light-emitting structure.
  • a second light reflection layer is coated on the surface of the light-exiting structure opposite to the light-exiting surface.
  • the function expansion module 300 may also include a light incident structure communicated with the light guide structure.
  • the light incident structure When the function expansion module 300 protrudes from the device body Z2, the light incident structure is in direct contact with the light emitting unit. Yes, to guide the light emitted by the light emitting unit to the light guide structure.
  • the light incident structure may be a groove, and a light reflection component is arranged on the inner wall of the groove.
  • the embodiment of the present application also provides a protective case for electronic equipment, the protective case for electronic equipment includes the supplementary light module 200 described above; or, the protective case for electronic equipment includes the function expansion module 300 described above.
  • the embodiment of the present application also provides an electronic device, the electronic device includes a rear case, and the electronic device also includes the above-mentioned supplementary light module 200; or, the electronic device also includes the above-mentioned function expansion module 300.
  • FIG. 19 shows a flowchart of a method for controlling an electronic device.
  • the method for controlling an electronic device includes the following steps:
  • step 401 the electronic device obtains target magnetic field measurement data measured by a geomagnetic sensor installed in the electronic device.
  • the target magnetic field measurement data measured by the geomagnetic sensor may be the target magnetic induction intensity.
  • the geomagnetic sensor can measure the magnetic field on the x-axis, y-axis and z-axis of the world coordinate system (also called the absolute coordinate system).
  • the target magnetic field measurement data in step 401 can be included in the world Magnetosensor intensities measured on the x-axis, y-axis, and z-axis of the coordinate system, respectively.
  • the electronic device can obtain the target magnetic field measurement data based on the sensor data acquisition script, wherein, in the Android system, the way the electronic device obtains the target magnetic field measurement data measured by the geomagnetic sensor can include: electronic device
  • the sensor data acquisition script in the Android system registers the geomagnetic sensor type in the sensor provider (Chinese: sensor provider) to subscribe to the target magnetic field measurement data measured by the geomagnetic sensor. After registration, the sensor provider can measure the target magnetic field The data is passed to the sensor data acquisition script.
  • the electronic device may acquire the target magnetic field measurement data periodically, or may acquire the target magnetic field measurement data in real time, and may also acquire the target magnetic field measurement data when the target magnetic field measurement data changes,
  • the embodiment of the present application does not limit the fact that the electronic device acquires the measurement data of the target magnetic field.
  • Step 402 the electronic device determines whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data.
  • the supplementary light module or the function expansion module protrudes from the device body (that is, the electronic device or the electronic device protective case) .
  • the supplementary light module or the function expansion module protrudes from the device body. Conversely, if there is no magnetic component within the target distance range of the geomagnetic sensor, it can be determined that the supplementary light module or the function expansion module does not protrude from the device body, that is, the supplementary light module or the function expansion module is stored in the device. In the ontology.
  • Step 403 if there is a magnetic component within the target distance range of the geomagnetic sensor, the electronic device performs a corresponding function control operation.
  • the function control operation includes at least one of the following operations: the operation of turning on the light-emitting unit; the operation of starting the vibration motor; the operation of turning on the display screen; the operation of turning on the camera.
  • function control operations are only exemplary, and in practical applications, the function control operations may also be other types of operations, which are not described here in this embodiment of the present application.
  • the electronic The device can determine whether the function expansion module or supplementary light module protrudes from the device body through the magnetic field interference received by the geomagnetic sensor, and executes corresponding control when it is determined that the function expansion module or supplementary light module protrudes from the device body In this way, the electronic device can realize the effect of performing a specific operation when the function expansion module or the supplementary light module extends out of the device body, because the trigger mode of the function control operation is to extend the function expansion module or the supplementary light module
  • the group protrudes from the device body, and compared with the traditional way, the triggering method is simpler and more flexible.
  • the geomagnetic sensor installed in the electronic equipment enables the electronic equipment to determine whether the function expansion module or the supplementary light module protrudes from the device body, so that the electronic equipment does not need to additionally set up a special detection module, but reuses the existing
  • the geomagnetic sensor can realize the judgment of whether the function expansion module or functional component is protruding from the device body. Therefore, its hardware cost is small, and it can be adapted to most electronic equipment. Therefore, its application range is relatively large. wide.
  • the electronic device may continue to acquire the target magnetic field measurement data measured by the geomagnetic sensor, and determine whether the target is within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data.
  • the magnetic component is continuously present, and if it is detected that there is no magnetic component within the target distance range of the geomagnetic sensor, the electronic device may perform corresponding subsequent functional control operations.
  • the subsequent function control operation may include at least one of the following operations: the operation of turning off the light emitting unit; the operation of turning off the vibration motor; the operation of turning off the display screen; the operation of turning off the camera.
  • the embodiment of the present application provides an implementation of “determining whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data”, please refer to FIG. 20 , the implementation includes the following steps:
  • Step 4021 the electronic device detects whether the target magnetic induction intensity is within a preset intensity range.
  • the preset intensity range is determined according to the magnetic induction intensity measured by the geomagnetic sensor under the condition that a magnetic component exists within the target distance range of the geomagnetic sensor.
  • the preset intensity range may be a range obtained by technicians based on experiments or data simulations. In an optional embodiment of the present application, the preset intensity range may be a range greater than a preset intensity threshold.
  • the electronic device may detect whether the sum of the absolute values of the magnetosensor intensities respectively measured by the geomagnetic sensor on the x-axis, y-axis, and z-axis of the world coordinate system is greater than a preset intensity threshold, In this way, it is determined whether the target magnetic induction intensity is within a preset intensity range.
  • the target magnetic induction intensity is within the preset intensity range
  • the sum of the absolute values of the magnetic sensor intensities measured by the geomagnetic sensor on the x-axis, y-axis and z-axis of the world coordinate system is not greater than the preset intensity threshold, it can be determined that the target magnetic induction intensity is not within the preset intensity range Inside.
  • the preset intensity threshold may be 1600.
  • Step 4022 If the target magnetic induction intensity is within the preset intensity range, the electronic device determines that there is a magnetic component within the target distance range of the geomagnetic sensor.
  • Step 4023 If the target magnetic induction intensity is not within the preset intensity range, the electronic device determines that there is no magnetic component within the target distance range of the geomagnetic sensor.
  • the function control operation performed by the electronic device includes the operation of turning on the light-emitting unit
  • the light supplement module can be used to supplement the light on the subject of the front camera.
  • the electronic device obtains the target magnetic field measurement data
  • the technical process may include the following steps:
  • Step 4011 the electronic device detects whether the front camera is called.
  • Step 4012 when the front camera is invoked, the electronic device acquires the target magnetic field measurement data measured by the geomagnetic sensor.
  • the electronic device can obtain the target magnetic field measurement data only when it detects that the front camera is invoked, so as to determine whether to turn on the light-emitting unit based on the target magnetic field measurement data. In this way, the electronic device can be avoided.
  • the light-emitting unit is turned on meaninglessly to realize supplementary light, so the power consumption of the electronic device can be saved, and the calculation amount of the electronic device can be reduced.
  • FIG. 22 shows a block diagram of an electronic equipment control apparatus 500 .
  • the electronic equipment control apparatus 500 includes an acquisition module 501 , a determination module 502 and an operation execution module 503 .
  • the acquiring module 501 is configured to acquire target magnetic field measurement data measured by a geomagnetic sensor disposed in the electronic device.
  • the determining module 502 is configured to determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data.
  • the operation execution module 503 is configured to execute a corresponding function control operation if the magnetic component exists within the target distance range of the geomagnetic sensor.
  • the target magnetic field measurement data includes the target magnetic induction intensity
  • the determining module 502 is specifically configured to: determine whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity The range is determined according to the magnetic induction intensity measured by the geomagnetic sensor under the condition that the magnetic component exists within the target distance range of the geomagnetic sensor; The magnetic component exists within the target distance range; if the target magnetic induction intensity is not within the preset intensity range, it is determined that the magnetic component does not exist within the target distance range of the geomagnetic sensor.
  • the target magnetic induction intensity includes magnetic induction electron intensities respectively measured on the x-axis, y-axis, and z-axis of the world coordinate system; the determination module 502 is specifically used to: determine the Whether the sum of the absolute values of the magnetic sensor intensities respectively measured on the x-axis, the y-axis and the z-axis is greater than a preset intensity threshold.
  • the function control operation includes at least one of the following operations: an operation of turning on the light emitting unit; an operation of starting a vibration motor; an operation of lighting a display screen; and an operation of starting a camera.
  • the obtaining module 501 is specifically configured to: detect whether the front camera in the electronic device is invoked; When the front camera is invoked, the target magnetic field measurement data measured by the geomagnetic sensor is acquired.
  • the operation executing module 503 is further configured to: execute subsequent function control operations if it is detected that the magnetic component does not exist within the target distance range of the geomagnetic sensor.
  • the electronic device control device provided in the embodiment of the present application can implement the above method embodiment, and its implementation principle and technical effect are similar, and will not be repeated here.
  • Each module in the above-mentioned electronic equipment control device can be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor of the electronic device in the form of hardware, and can also be stored in the memory of the electronic device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • Fig. 23 is a schematic diagram of the internal structure of an electronic device in one embodiment.
  • the electronic device includes a processor and a memory connected through a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory may include non-volatile storage media and internal memory. Nonvolatile storage media store operating systems and computer programs.
  • the computer program can be executed by a processor, so as to implement the method for controlling an electronic device provided in each of the above embodiments.
  • the internal memory provides a high-speed running environment for the operating system and computer programs in the non-volatile storage medium.
  • FIG. 23 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the electronic equipment to which the solution of this application is applied.
  • the specific electronic equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
  • an electronic device in one embodiment, the electronic device includes a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
  • the target magnetic field measurement data measured by the geomagnetic sensor set in the electronic device determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data; if there is a magnetic component within the target distance range of the geomagnetic sensor The magnetic component then performs corresponding functional control operations.
  • the target magnetic field measurement data includes the target magnetic induction intensity
  • the processor also implements the following steps when executing the computer program: judging whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity range It is determined according to the magnetic induction intensity measured by the geomagnetic sensor under the condition that the magnetic component exists within the target distance range of the geomagnetic sensor; if the target magnetic induction intensity is within the preset intensity range, it is determined within the The magnetic assembly is present within the target distance range.
  • the target magnetic induction intensity includes the magnetic induction sub-intensities respectively measured on the x-axis, y-axis and z-axis of the world coordinate system
  • the processor also implements the following steps when executing the computer program: judging the Whether the sum of the absolute values of the magnetic sensor intensities measured on the x-axis, the y-axis and the z-axis is greater than a preset intensity threshold.
  • the first control operation includes at least one of the following operations: an operation of turning on the light emitting unit; an operation of starting a vibration motor; an operation of lighting a display screen; and an operation of starting a camera.
  • the function control operation includes the operation of turning on the light-emitting unit
  • the processor executes the computer program
  • the following steps are also implemented: detecting whether the front camera in the electronic device is invoked; When the front camera is invoked, the target magnetic field measurement data measured by the geomagnetic sensor is acquired.
  • the processor executes the computer program, the following steps are further implemented: if it is detected that the magnetic component does not exist within the target distance range of the geomagnetic sensor, then perform subsequent function control operations.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • the target magnetic field measurement data measured by the geomagnetic sensor set in the electronic device determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data; if there is a magnetic component within the target distance range of the geomagnetic sensor The magnetic component then performs corresponding functional control operations.
  • the target magnetic field measurement data includes the target magnetic induction intensity
  • the computer program is executed by the processor to further implement the following steps: judging whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity The range is determined according to the magnetic induction intensity measured by the geomagnetic sensor under the condition that the magnetic component exists within the target distance range of the geomagnetic sensor; The magnetic assembly exists within the target distance range of .
  • the target magnetic induction intensity includes the magnetic induction sub-intensities respectively measured on the x-axis, y-axis and z-axis of the world coordinate system, and when the computer program is executed by the processor, the following steps are also implemented: detecting Whether the sum of the absolute values of the magnetic sensor intensities respectively measured on the x-axis, the y-axis and the z-axis is greater than a preset intensity threshold.
  • the function control operation includes at least one of the following operations: the operation of turning on the light emitting unit; the operation of starting the vibration motor; the operation of lighting the display screen; the operation of starting the camera.
  • the function control operation includes the operation of turning on the light-emitting unit
  • the computer program when executed by the processor, the following steps are also implemented: detecting whether the front camera in the electronic device is invoked; When the front camera is invoked, the target magnetic field measurement data measured by the geomagnetic sensor is acquired.
  • the following steps are further implemented: if it is detected that the magnetic component does not exist within the target distance range of the geomagnetic sensor, then perform subsequent function control operations.
  • first and second are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, such as A and/or B, which may indicate that A exists alone, B exists alone, and A and B exist simultaneously.
  • the symbol “/” generally indicates that the contextual objects are an “or” relationship.
  • Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in M forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Road (SyMchliMk) DRAM (SLDRAM), memory bus (RaMbus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM Static RAM
  • DRAM Dynamic RAM
  • SDRAM Synchronous DRAM
  • DDRSDRAM Double Data Rate SDRAM
  • ESDRAM Enhanced SDRAM
  • RaMbus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The present application belongs to the technical field of electronic devices and discloses an electronic device, a light supplementing module, a protective casing, a control method and apparatus, and a medium. The electronic device comprises: a geomagnetic sensor, which is used for measuring and obtaining measurement data of a target magnetic field; a processor, which is used for sending a target control instruction upon determining that a magnetic component is present on the basis of the measurement data of the target magnetic field; and a function management module, which is used for executing a function control operation according to the target control instruction. The present invention can improve flexibility in the implementation of a function of an electronic device.

Description

电子设备、补光模组、保护壳、控制方法、装置及介质Electronic equipment, supplementary light module, protective case, control method, device and medium 技术领域technical field
本申请涉及电子设备技术领域,特别是涉及一种电子设备、补光模组、保护壳、控制方法、装置及介质。The present application relates to the technical field of electronic equipment, and in particular to an electronic equipment, a supplementary light module, a protective case, a control method, a device, and a medium.
背景技术Background technique
当前,诸如智能手机、平板电脑等的电子设备在人们的日常生活中已经越来越常见了,电子设备所能实现的功能已经非常丰富了。然而,当前控制电子设备实现相应功能的方式较为单一,通常为触发虚拟按键、触发实体按键或者控制电子设备按照预设模式运动的方式。因此,如何拓展控制电子设备实现功能的方式,提高电子设备功能实现的灵活性,已经成为了一个亟待解决的问题。Currently, electronic devices such as smart phones and tablet computers are becoming more and more common in people's daily life, and the functions that the electronic devices can realize are very rich. However, the current way of controlling the electronic device to realize the corresponding function is relatively simple, usually by triggering a virtual button, triggering a physical button or controlling the electronic device to move according to a preset mode. Therefore, it has become an urgent problem to be solved how to expand the way of controlling the function of the electronic device and improve the flexibility of the function of the electronic device.
发明内容Contents of the invention
基于此,有必要为了拓展控制电子设备实现功能的方式,提高电子设备功能实现的灵活性,提供一种电子设备、补光模组、保护壳、控制方法、装置及介质。Based on this, it is necessary to provide an electronic device, a supplementary light module, a protective case, a control method, a device, and a medium in order to expand the way of controlling the function of the electronic device and improve the flexibility of the function of the electronic device.
第一方面,提供了一种电子设备,包括:In a first aspect, an electronic device is provided, including:
地磁传感器,用于对该电子设备的外部磁场进行测量,得到目标磁场测量数据;The geomagnetic sensor is used to measure the external magnetic field of the electronic device to obtain target magnetic field measurement data;
处理器,与该地磁传感器连接,用于获取该目标磁场测量数据,并在基于该目标磁场测量数据确定在该地磁传感器的目标距离范围内存在磁性组件的情况下,向功能管理模块发送目标控制指令;A processor, connected to the geomagnetic sensor, configured to acquire the target magnetic field measurement data, and send target control to the function management module when it is determined based on the target magnetic field measurement data that there is a magnetic component within the target distance range of the geomagnetic sensor instruction;
该功能管理模块,与该处理器连接,用于接收该目标控制指令,并根据该目标控制指令的指示执行相应的功能控制操作。The function management module is connected with the processor, and is used for receiving the target control instruction, and executing corresponding function control operations according to the instruction of the target control instruction.
第二方面,提供了一种补光模组,该补光模组包括磁性组件、相互连通的导光结构和出光结构;该补光模组连接至装置本体时可伸出该装置本体或者收纳于该装置本体中;In the second aspect, a supplementary light module is provided. The supplementary light module includes a magnetic component, a light guide structure and a light output structure connected to each other; when the supplementary light module is connected to the device body, it can extend out of the device body or be stored in the body of the device;
在该补光模组伸出该装置本体时,该出光结构位于该装置本体外,该磁性组件位于电子设备中地磁传感器的目标距离范围内,以触发该电子设备启动发光单元,该导光结构用于将该发光单元发出的光线传导至该出光结构,以通过该出光结构射出光线。When the supplementary light module protrudes from the device body, the light-emitting structure is located outside the device body, and the magnetic component is located within the target distance range of the geomagnetic sensor in the electronic device to trigger the electronic device to start the light-emitting unit. The light-guiding structure The light emitted by the light-emitting unit is used to transmit the light to the light-exiting structure, so as to emit the light through the light-exiting structure.
第三方面,提供了一种电子设备保护壳,该电子设备保护壳包括如上述第二方面所述的补光模组。In a third aspect, there is provided a protective case for electronic equipment, the protective case for electronic equipment includes the supplementary light module as described in the second aspect above.
第四方面,提供了一种电子设备,该电子设备包括后壳,该电子设备还包括如上述第二方面所述的补光模组。In a fourth aspect, an electronic device is provided, the electronic device includes a rear case, and the electronic device further includes the supplementary light module as described in the second aspect above.
第五方面,提供了一种电子设备控制方法,该方法包括:In a fifth aspect, an electronic device control method is provided, and the method includes:
获取电子设备中地磁传感器测得的目标磁场测量数据;根据该目标磁场测量数据确定在该地磁传感器的目标距离范围内是否存在磁性组件;若在该地磁传感器的该目标距离范围内存在该磁性组件,则执行相应的功能控制操作。Obtain the target magnetic field measurement data measured by the geomagnetic sensor in the electronic device; determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data; if the magnetic component exists within the target distance range of the geomagnetic sensor , then execute the corresponding function control operation.
第六方面,提供了一种电子设备控制装置,该装置包括:In a sixth aspect, an electronic device control device is provided, and the device includes:
获取模块,用于获取电子设备中设置的地磁传感器测得的目标磁场测量数据;An acquisition module, configured to acquire the target magnetic field measurement data measured by the geomagnetic sensor arranged in the electronic device;
确定模块,用于根据该目标磁场测量数据确定在该地磁传感器的目标距离范围内是否存在磁性组件;A determining module, configured to determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data;
操作执行模块,用于若在该地磁传感器的该目标距离范围内存在该磁性组件,则执行相应的功能控制操作。An operation executing module, configured to execute a corresponding function control operation if the magnetic component exists within the target distance range of the geomagnetic sensor.
第七方面,提供了一种电子设备,包括存储器、处理器及存储在该存储器上并可在该处理器上运行的计算机程序,该处理器执行该计算机程序时实现上述第五方面所述的方法的步骤。According to the seventh aspect, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the above-mentioned fifth aspect is realized. method steps.
第八方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述第五方面所述的方法的步骤。In an eighth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the fifth aspect above are implemented.
本申请实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solutions provided by the embodiments of the present application at least include:
通过提供一种电子设备,其中,该电子设备包括地磁传感器、处理器以及功能管理模块,处理器分别与地磁传感器和功能管理模块连接,地磁传感器用于对电子设备的外部磁场进行测量,得到目标磁场测量数据,处理器用于在基于目标磁场测量数据确定在地磁传感器的目标距离范围内存在磁性组件的情况下,向功能管理模块发送目标控制指令,功能管理模块用于接收目标控制指令,并根该目标控制指令的指示执行相应的功能控制操作,也即是,本申请实施例提供的电子设备只要在检测到地磁传感器的目标距离范围内存在磁性组件就可以执行相应的功能控制操作,换言之,只需要将磁性组件置于电子设备的地磁传感器的目标距离范围内,就可以触发电子设备执行相应的功能控制操作,因此,可以拓展电子设备实现功能的方式,提高电子设备功能实现的灵活性。By providing an electronic device, wherein the electronic device includes a geomagnetic sensor, a processor, and a function management module, the processor is respectively connected to the geomagnetic sensor and the function management module, and the geomagnetic sensor is used to measure the external magnetic field of the electronic device to obtain the target The magnetic field measurement data, the processor is used to send the target control instruction to the function management module when it is determined based on the target magnetic field measurement data that there is a magnetic component within the target distance range of the geomagnetic sensor, and the function management module is used to receive the target control instruction, and based on the The instruction of the target control instruction executes the corresponding functional control operation, that is, the electronic device provided by the embodiment of the present application can perform the corresponding functional control operation as long as there is a magnetic component within the target distance range of the geomagnetic sensor. In other words, It is only necessary to place the magnetic component within the target distance range of the geomagnetic sensor of the electronic device, and the electronic device can be triggered to perform the corresponding function control operation. Therefore, the way the electronic device realizes the function can be expanded, and the flexibility of the function realization of the electronic device can be improved.
附图说明Description of drawings
图1为本申请实施例提供的一种电子设备的示意图;FIG. 1 is a schematic diagram of an electronic device provided in an embodiment of the present application;
图2为本申请实施例提供的另一种电子设备的示意图;FIG. 2 is a schematic diagram of another electronic device provided by the embodiment of the present application;
图3为本申请实施例提供的另一种电子设备的示意图;FIG. 3 is a schematic diagram of another electronic device provided by the embodiment of the present application;
图4为本申请实施例提供的一种补光模组的示意图;Fig. 4 is a schematic diagram of a supplementary light module provided by an embodiment of the present application;
图5为本申请实施例提供的一种补光模组收纳于装置本体的示意图;Fig. 5 is a schematic diagram of a supplementary light module provided in the embodiment of the present application stored in the device body;
图6为本申请实施例提供的一种装置本体中开设的第一容纳槽的示意图;Fig. 6 is a schematic diagram of a first receiving groove opened in a device body provided by an embodiment of the present application;
图7为本申请实施例提供的一种补光模组伸出装置本体的示意图;Fig. 7 is a schematic diagram of the main body of a supplementary light module extension device provided by the embodiment of the present application;
图8为本申请实施例提供的一种导光结构的截面图;Fig. 8 is a cross-sectional view of a light guiding structure provided by an embodiment of the present application;
图9为本申请实施例提供的一种出光结构的截面图;Fig. 9 is a cross-sectional view of a light output structure provided by an embodiment of the present application;
图10为本申请实施例提供的另一种出光结构的截面图;Fig. 10 is a cross-sectional view of another light output structure provided by the embodiment of the present application;
图11为本申请实施例提供的磁性组件相对于地磁传感器的位置的示意图;Fig. 11 is a schematic diagram of the position of the magnetic component relative to the geomagnetic sensor provided by the embodiment of the present application;
图12为本申请实施例提供的地磁传感器测得的磁感应强度的波形图;12 is a waveform diagram of the magnetic induction measured by the geomagnetic sensor provided in the embodiment of the present application;
图13为本申请实施例提供的另一种补光模组的示意图;Fig. 13 is a schematic diagram of another supplementary light module provided by the embodiment of the present application;
图14为本申请实施例提供的一种入光结构的放大图;Fig. 14 is an enlarged view of a light incident structure provided by the embodiment of the present application;
图15为本申请实施例提供的另一种入光结构的放大图;Fig. 15 is an enlarged view of another light incident structure provided by the embodiment of the present application;
图16为本申请实施例提供的一种补光模组与装置本体滑动连接的示意图;Fig. 16 is a schematic diagram of a sliding connection between a supplementary light module and the device body provided by the embodiment of the present application;
图17为本申请实施例提供的一种功能扩展模组的示意图;FIG. 17 is a schematic diagram of a function expansion module provided by an embodiment of the present application;
图18为本申请实施例提供的一种功能扩展模组伸出装置本体的示意图;Fig. 18 is a schematic diagram of a function expansion module extension device body provided by the embodiment of the present application;
图19为本申请实施例提供的一种电子设备控制方法的流程图;FIG. 19 is a flow chart of an electronic device control method provided in an embodiment of the present application;
图20为本申请实施例提供的另一种电子设备控制方法的流程图;FIG. 20 is a flow chart of another electronic device control method provided by the embodiment of the present application;
图21为本申请实施例提供的另一种电子设备控制方法的流程图;FIG. 21 is a flow chart of another electronic device control method provided by the embodiment of the present application;
图22为本申请实施例提供的一种电子设备控制装置的框图;Fig. 22 is a block diagram of an electronic equipment control device provided by an embodiment of the present application;
图23为本申请实施例提供的一种电子设备的框图。Fig. 23 is a block diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
请参考图1,其示出了本申请实施例提供的一种电子设备100的结构示意图,该电子设备100可以为智能手机、平板电脑等,本申请实施例不对电子设备100的具体类型进行限定。如图1所示,该电子设备100可以包括地磁传感器101、处理器102以及功能管理模块103,其中,地磁传感器101与处理器102连接,处理器102与功能管理模块103连接。Please refer to FIG. 1 , which shows a schematic structural diagram of an electronic device 100 provided by the embodiment of the present application. The electronic device 100 may be a smart phone, a tablet computer, etc., and the embodiment of the present application does not limit the specific type of the electronic device 100 . As shown in FIG. 1 , the electronic device 100 may include a geomagnetic sensor 101 , a processor 102 and a function management module 103 , wherein the geomagnetic sensor 101 is connected to the processor 102 , and the processor 102 is connected to the function management module 103 .
该地磁传感器101,用于对电子设备的外部磁场进行测量,得到目标磁场测量数据。The geomagnetic sensor 101 is used to measure the external magnetic field of the electronic device to obtain target magnetic field measurement data.
地磁传感器是一种主要用来测量地球磁场的传感器,在实际应用中,利用地磁传感器测得的地球磁场数据,电子设备可以确定自身的运动方向以及自身运动的航向角等,一般来说,电子设备的导航以及指南针等功能的实现都离不开地磁传感器。A geomagnetic sensor is a sensor mainly used to measure the earth's magnetic field. In practical applications, electronic devices can determine their own movement direction and their own heading angle by using the earth's magnetic field data measured by the geomagnetic sensor. Generally speaking, electronic The realization of functions such as navigation and compass of the device is inseparable from the geomagnetic sensor.
地磁传感器除了可以测量地球磁场以外,还可以测量与自身距离一定范围内的磁铁或者磁性材料等磁性组件产生的磁场,在本申请实施例中,电子设备正是利用地磁传感器对电子设备的外部磁场进行测量,得到目标磁场测量数据,以利用该目标磁场测量数据来检测该地磁传感器的目标距离范围内是否存在磁性组件。In addition to measuring the earth's magnetic field, the geomagnetic sensor can also measure the magnetic field generated by magnetic components such as magnets or magnetic materials within a certain distance from itself. In the embodiment of this application, the electronic device uses the geomagnetic sensor to measure the external magnetic field of the electronic device. The measurement is carried out to obtain target magnetic field measurement data, so as to use the target magnetic field measurement data to detect whether there is a magnetic component within the target distance range of the geomagnetic sensor.
需要指出的是,地磁传感器测得的目标磁场测量数据可以为目标磁感应强度。实际应用中,地磁传感器可以对世界坐标系(也可以称为绝对坐标系)的x轴、y轴和z轴上的磁场分别进行测量,换言之,该目标磁场测量数据可以包括在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度。It should be noted that the target magnetic field measurement data measured by the geomagnetic sensor may be the target magnetic induction. In practical applications, the geomagnetic sensor can measure the magnetic fields on the x-axis, y-axis and z-axis of the world coordinate system (also called the absolute coordinate system). In other words, the target magnetic field measurement data can be included in the world coordinate system. Magnetosensor intensities measured on the x-axis, y-axis, and z-axis, respectively.
该处理器102,用于获取目标磁场测量数据,并在基于目标磁场测量数据确定在地磁传感器的目标距离范围内存在磁性组件的情况下,向功能管理模块103发送目标控制指令。The processor 102 is configured to acquire target magnetic field measurement data, and send target control instructions to the function management module 103 when it is determined based on the target magnetic field measurement data that there is a magnetic component within the target distance range of the geomagnetic sensor.
可选的,处理器可以基于传感器数据获取脚本来获取该目标磁场测量数据,其中,在安卓系统中,处理器可以利用传感器数据获取脚本在安卓系统的sensor provider(中文:传感器提供程序)中注册地磁传感器类型,以对地磁传感器测得的目标磁场测量数据进行订阅,在注册之后,sensor provider可以将目标磁场测量数据传递至该传感器数据获取脚本,处理器即可通过该传感器数据获取脚本获取到目标磁场测量数据。Optionally, the processor can obtain the target magnetic field measurement data based on the sensor data acquisition script, wherein, in the Android system, the processor can utilize the sensor data acquisition script to register in the sensor provider (Chinese: sensor provider) of the Android system Geomagnetic sensor type, to subscribe to the target magnetic field measurement data measured by the geomagnetic sensor. After registration, the sensor provider can pass the target magnetic field measurement data to the sensor data acquisition script, and the processor can obtain it through the sensor data acquisition script Target magnetic field measurement data.
在本申请实施例中,处理器可以周期性地获取该目标磁场测量数据,也可以实时获取该目标磁场测量数据,还可以在该目标磁场测量数据发生变化的情况下,获取该目标磁场测量数据,本申请实施例对处理器获取该目标磁场测量数据的时机不进行限定。In the embodiment of the present application, the processor may acquire the target magnetic field measurement data periodically, may also acquire the target magnetic field measurement data in real time, and may also acquire the target magnetic field measurement data when the target magnetic field measurement data changes In this embodiment of the present application, the timing for the processor to acquire the target magnetic field measurement data is not limited.
该功能功能管理模块103,用于接收处理器102发送的目标控制指令,并根据该目标控制指令的指示执行相应的功能控制操作。The function management module 103 is configured to receive the target control instruction sent by the processor 102, and execute corresponding function control operations according to the instruction of the target control instruction.
在本申请的可选实施例中,电子设备100可以容纳于电子设备保护壳中,该电子设备保护壳包括相互活动连接的保护壳本体和功能扩展模组,该功能扩展模组包括磁性组件,该功能扩展模组可伸出保护壳本体或者收纳于保护壳本体中,且,在伸出保护壳本体的情况下,功能扩展模组中的磁性组件位于地磁传感器101的目标距离范围内。In an optional embodiment of the present application, the electronic device 100 may be accommodated in a protective case for the electronic device, and the protective case for the electronic device includes a protective case body and a function expansion module that are movably connected to each other, and the function expansion module includes a magnetic component, The function expansion module can extend out of the protective case body or be accommodated in the protective case body, and, when extending out of the protective case body, the magnetic components in the function expansion module are located within the target distance range of the geomagnetic sensor 101 .
也即是,在电子设备100所在的电子设备保护壳中的功能扩展模组伸出保护壳本体的情况下,由于功能扩展模组中的磁性组件位于地磁传感器101的目标距离范围内,因此,可以触发处理器102向功能管理模块103发送目标控制指令,以使该功能管理模块103能够根据该目标控制指令的指示执行相应的功能控制操作。That is, when the function expansion module in the electronic device protective case where the electronic device 100 is located protrudes from the protective case body, since the magnetic components in the function expansion module are located within the target distance range of the geomagnetic sensor 101, therefore, The processor 102 may be triggered to send the target control instruction to the function management module 103, so that the function management module 103 can execute a corresponding function control operation according to the instruction of the target control instruction.
请参考图2,在本申请的可选实施例中,功能扩展模块103可以包括电源管理单元1031和发光单元1032,其中,电源管理单元1031与处理器102连接,发光单元1032与电源管理单元1031连接。Please refer to FIG. 2, in an optional embodiment of the present application, the function expansion module 103 may include a power management unit 1031 and a light emitting unit 1032, wherein the power management unit 1031 is connected to the processor 102, and the light emitting unit 1032 is connected to the power management unit 1031 connect.
该电源管理单元1031,用于根据目标控制指令向发光单元1032供电,以使发光单元1032发射光线。The power management unit 1031 is configured to supply power to the light emitting unit 1032 according to the target control instruction, so that the light emitting unit 1032 emits light.
可选的,该发光单元1032可以为电子设备中的闪光灯等光源模组。Optionally, the light emitting unit 1032 may be a light source module such as a flashlight in an electronic device.
也即是,在图2所示的电子设备中,当电子设备100所在的电子设备保护壳中的功能扩展模组伸出保护壳本体时,可以触发电子设备中的发光单元1032发射光线。That is, in the electronic device shown in FIG. 2 , when the function expansion module in the electronic device protective case where the electronic device 100 is located extends out of the protective case body, the light emitting unit 1032 in the electronic device can be triggered to emit light.
与图2所示的电子设备相对应地,电子设备保护壳中的功能扩展模组还可以包括相互连通的导光结构和出光结构。Corresponding to the electronic device shown in FIG. 2 , the function expansion module in the protective case of the electronic device may further include a light guide structure and a light output structure that communicate with each other.
在功能扩展模组伸出保护壳本体的情况下,该出光结构位于电子设备外,该导光结构用于将发光单元1032发出的光线传导至出光结构,以通过该出光结构射出光线。When the function expansion module protrudes from the protective case body, the light-emitting structure is located outside the electronic device, and the light-guiding structure is used to guide the light emitted by the light-emitting unit 1032 to the light-emitting structure, so as to emit light through the light-emitting structure.
这样,就可以通过该出光结构射出的光线实现补光的功能,例如,在较暗的环境中利用前置摄像头拍摄时,用户可以将该功能扩展模组伸出保护壳本体外,从而触发电子设备100中的发光单元1032发射光线,并通过导光结构和出光结构将该发光单元1032发射的光线向前置摄像头的拍摄方向射出,从而为前置摄像头的拍摄对象补光。In this way, the function of supplementary light can be realized through the light emitted by the light-emitting structure. For example, when shooting with the front camera in a dark environment, the user can extend the function expansion module out of the protective shell body, thereby triggering the electronic The light emitting unit 1032 in the device 100 emits light, and emits the light emitted by the light emitting unit 1032 toward the shooting direction of the front camera through the light guide structure and the light output structure, so as to supplement light for the subject of the front camera.
如上文所述,由于开启发光单元1032的主要目的是对前置摄像头的拍摄对象进行补光,因此,在本申请的可选实施例中,处理器102可以检测电子设备100的前置摄像头是否被调用,并仅在检测到前置摄像头被调用的情况下,获取目标磁场测量数据,以基于该目标磁场测量数据来判断地磁传感器101的目标距离范围内是否存在磁性组件,这样,就可以避免在前置摄像头未被调用的情况下,无意义地开启发光单元1032实现补光,故而,可以节约电子设备的功耗,减小电子设备的计算量。As mentioned above, since the main purpose of turning on the light-emitting unit 1032 is to supplement the light on the subject of the front camera, therefore, in an optional embodiment of the present application, the processor 102 can detect whether the front camera of the electronic device 100 is is called, and only when it is detected that the front camera is called, the target magnetic field measurement data is obtained to judge whether there is a magnetic component in the target distance range of the geomagnetic sensor 101 based on the target magnetic field measurement data, so that it can avoid When the front camera is not invoked, the light emitting unit 1032 is turned on meaninglessly to realize supplementary light, so the power consumption of the electronic device can be saved, and the calculation amount of the electronic device can be reduced.
请参考图3,在本申请的可选实施例中,该功能扩展模块103还可以包括功能扩展单元1033,该功能扩展单元1033 与电源管理单元1031连接,该功能扩展单元1033可以包括摄像头、显示屏和震动马达中的至少一种。Please refer to FIG. 3 , in an optional embodiment of the present application, the function extension module 103 may also include a function extension unit 1033, which is connected to the power management unit 1031, and the function extension unit 1033 may include a camera, a display at least one of a screen and a vibration motor.
该电源管理单元1031,还用于根据目标控制指令向功能扩展单元1033供电,以使功能扩展单元1033启动。The power management unit 1031 is further configured to supply power to the function expansion unit 1033 according to the target control instruction, so as to enable the function expansion unit 1033 to start.
例如,在功能扩展单元1033包括摄像头的情况下,电源管理单元1031可以根据目标控制指令向摄像头供电,以启动摄像头。在功能扩展单元1033包括显示屏的情况下,电源管理单元1031可以根据目标控制指令向显示屏供电,以点亮显示屏。在功能扩展单元1033包括震动马达的情况下,电源管理单元1031可以根据目标控制指令向震动马达供电,以启动震动马达。For example, when the function expansion unit 1033 includes a camera, the power management unit 1031 may supply power to the camera according to the target control instruction, so as to start the camera. In the case that the function expansion unit 1033 includes a display screen, the power management unit 1031 can supply power to the display screen according to the target control instruction, so as to light up the display screen. In the case that the function expansion unit 1033 includes a vibration motor, the power management unit 1031 may supply power to the vibration motor according to the target control instruction to start the vibration motor.
这样,在电子设备100所在的电子设备保护壳中的功能扩展模组伸出保护壳本体时,就可以触发摄像头、显示屏以及震动马达中的至少一个启动。In this way, when the function expansion module in the protective case of the electronic device where the electronic device 100 is located protrudes from the main body of the protective case, at least one of the camera, the display screen and the vibration motor can be triggered to start.
在本申请的可选实施例中,处理器102可以基于如下方式判断地磁传感器101的目标距离范围内是否存在磁性组件:In an optional embodiment of the present application, the processor 102 may determine whether there is a magnetic component within the target distance range of the geomagnetic sensor 101 based on the following manner:
处理器判断目标磁感应强度是否位于预设强度范围内,其中,该预设强度范围是根据地磁传感器的目标距离范围内存在磁性组件的情况下地磁传感器测得的磁感应强度所确定的。该预设强度范围可以是技术人员根据实验或者根据数据模拟得到的范围,在本申请的一个可选的实施例中,该预设强度范围可以为大于一预设强度阈值的范围。The processor judges whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity range is determined according to the magnetic induction intensity measured by the geomagnetic sensor when there is a magnetic component within the target distance range of the geomagnetic sensor. The preset intensity range may be a range obtained by technicians based on experiments or data simulations. In an optional embodiment of the present application, the preset intensity range may be a range greater than a preset intensity threshold.
可选的,在本申请实施例中,处理器可以检测地磁传感器在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度的绝对值之和是否大于预设强度阈值,以此来确定目标磁感应强度是否位于预设强度范围内。其中,若地磁传感器在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度的绝对值之和大于预设强度阈值,则可以确定目标磁感应强度位于预设强度范围内,反之,若地磁传感器在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度的绝对值之和不大于预设强度阈值,则可以确定目标磁感应强度不位于预设强度范围内。可选的,在本申请实施例中,该预设强度阈值可以为1600。Optionally, in the embodiment of the present application, the processor may detect whether the sum of the absolute values of the magnetosensor intensities respectively measured by the geomagnetic sensor on the x-axis, y-axis, and z-axis of the world coordinate system is greater than a preset intensity threshold, In this way, it is determined whether the target magnetic induction intensity is within a preset intensity range. Wherein, if the sum of the absolute values of the magnetic sensor intensities respectively measured by the geomagnetic sensor on the x-axis, y-axis and z-axis of the world coordinate system is greater than the preset intensity threshold, it can be determined that the target magnetic induction intensity is within the preset intensity range, Conversely, if the sum of the absolute values of the magnetic sensor intensities measured by the geomagnetic sensor on the x-axis, y-axis and z-axis of the world coordinate system is not greater than the preset intensity threshold, it can be determined that the target magnetic induction intensity is not within the preset intensity range Inside. Optionally, in this embodiment of the present application, the preset intensity threshold may be 1600.
若目标磁感应强度位于预设强度范围内,则处理器确定在地磁传感器的目标距离范围内存在磁性组件,反之,若目标磁感应强度不位于预设强度范围内,则处理器确定在地磁传感器的目标距离范围内不存在磁性组件。If the target magnetic induction intensity is within the preset intensity range, the processor determines that there is a magnetic component within the target distance range of the geomagnetic sensor; There are no magnetic components within the distance range.
可选的,在本申请的可选实施例中,在功能管理模块103执行相应的功能控制操作之后,处理器还可以继续获取地磁传感器测得的目标磁场测量数据,并根据该目标磁场测量数据确定在地磁传感器的目标距离范围内是否持续存在磁性组件,若检测到在地磁传感器的目标距离范围内不存在磁性组件,也即是,若确定功能扩展模组由伸出保护壳本体变为收纳于保护壳本体中,则处理器102可以向功能管理模块103发送后续控制指令,该功能管理模块103,可以根据该后续控制指令执行相应的后续功能控制操作。Optionally, in an optional embodiment of the present application, after the function management module 103 performs the corresponding function control operation, the processor may continue to acquire the target magnetic field measurement data measured by the geomagnetic sensor, and based on the target magnetic field measurement data Determine whether the magnetic component continues to exist within the target distance range of the geomagnetic sensor. If it is detected that there is no magnetic component within the target distance range of the geomagnetic sensor, that is, if it is determined that the function expansion module is changed from extending out of the protective shell body to being stored in the In the protective case body, the processor 102 can send a follow-up control instruction to the function management module 103, and the function management module 103 can execute a corresponding follow-up function control operation according to the follow-up control instruction.
其中,该后续功能控制操作可以包括以下操作中的至少一种:关闭发光单元的操作;关闭震动马达的操作;熄灭显示屏的操作;关闭摄像头的操作。Wherein, the subsequent function control operation may include at least one of the following operations: the operation of turning off the light emitting unit; the operation of turning off the vibration motor; the operation of turning off the display screen; the operation of turning off the camera.
可选的,在接收到处理器102发送的后续控制指令之后,功能管理模块103中的电源管理单元1031可以停止向发光单元、震动马达、显示屏和/或摄像头供电,以关闭发光单元、关闭震动马达、熄灭显示屏和/或关闭摄像头。Optionally, after receiving the subsequent control instruction sent by the processor 102, the power management unit 1031 in the function management module 103 may stop supplying power to the light emitting unit, vibration motor, display screen and/or camera, so as to turn off the light emitting unit, turn off Vibrates the motors, turns off the display, and/or turns off the camera.
请参考图4,其为本申请实施例提供的补光模组200的结构示意图,如图4所示,该补光模组200包括磁性组件201、相互连通的导光结构202以及出光结构203。Please refer to FIG. 4 , which is a schematic structural diagram of the supplementary light module 200 provided by the embodiment of the present application. As shown in FIG. .
该补光模组200可以连接至装置本体Z1上,在本申请的可选实施例中,该补光模组200可以可拆卸地连接至装置本体Z1上。The supplementary light module 200 can be connected to the device body Z1, and in an optional embodiment of the present application, the supplementary light module 200 can be detachably connected to the device body Z1.
在实际应用中,该装置本体Z1可以为电子设备,例如,该电子设备可以为智能手机、平板电脑等,此外,该装置本体Z1也可以为电子设备保护壳本体,该电子设备保护壳本体包括第二容纳槽,其中,该第二容纳槽用来容纳电子设备,除此以外,该电子设备保护壳本体还可以开设有发光单元通孔,在第二容纳槽容纳有电子设备的情况下,该发光单元通孔与电子设备的发光单元正对,例如,该发光单元可以为电子设备中的闪光灯等光源模组。In practical applications, the device body Z1 can be an electronic device, for example, the electronic device can be a smart phone, a tablet computer, etc. In addition, the device body Z1 can also be a protective case body for an electronic device, and the protective case body for an electronic device includes The second accommodating slot, wherein the second accommodating slot is used for accommodating electronic equipment, in addition, the body of the electronic equipment protective case can also be provided with a light-emitting unit through hole, when the second accommodating slot accommodates electronic equipment, The through hole of the light-emitting unit is directly opposite to the light-emitting unit of the electronic device. For example, the light-emitting unit may be a light source module such as a flashlight in the electronic device.
在装置本体Z1为电子设备的情况下,补光模组200可以可拆卸地连接至该电子设备的后壳上,在装置本体Z1为电子设备保护壳本体的情况下,补光模组200可以可拆卸地连接于该电子设备保护壳本体中与该第二容纳槽的开设方向相背的端面上。When the device body Z1 is an electronic device, the supplementary light module 200 can be detachably connected to the rear shell of the electronic device; It is detachably connected to the end surface of the electronic device protective case body opposite to the opening direction of the second receiving groove.
在补光模组200连接至装置本体Z1时,该补光模组200可伸出该装置本体Z1,也可以收纳于该装置本体Z1中。When the supplementary light module 200 is connected to the device body Z1, the supplementary light module 200 can protrude from the device body Z1, or can be accommodated in the device body Z1.
请参考图5,其为在本申请的一可选实施例中,补光模组200收纳于装置本体Z1时的示意图,如图6所示,在本申请的一可选实施例中,该装置本体Z1中可以开设有第一容纳槽R1,在补光模组200收纳于装置本体Z1时,该补光模组200位于该第一容纳槽R1中。Please refer to FIG. 5 , which is a schematic diagram of the supplementary light module 200 stored in the device body Z1 in an optional embodiment of the present application. As shown in FIG. 6 , in an optional embodiment of the present application, the A first accommodating groove R1 may be opened in the device body Z1, and when the light-filling module 200 is stored in the device body Z1, the light-filling module 200 is located in the first accommodating groove R1.
需要指出的是,在装置本体Z1为电子设备的情况下,该第一容纳槽R1可以开设于电子设备的后壳上,在装置本体Z1为电子设备保护壳本体的情况下,该第一容纳槽R1可以开设于该电子设备保护壳本体中与第二容纳槽的开设方向相背的端面上。It should be pointed out that, when the device body Z1 is an electronic device, the first accommodating groove R1 can be opened on the rear shell of the electronic device; The slot R1 may be opened on the end surface of the electronic equipment protective case body opposite to the opening direction of the second receiving slot.
还需要指出的是,可选的,在该补光模组200收纳于该第一容纳槽R1的情况下,补光模组200与装置本体Z1齐平,这样,就可以避免在该补光模组200收纳于该第一容纳槽R1的情况下,补光模组200突出于装置本体Z1所导致的放置不稳,以及补光模组200易因外部磕碰损坏的问题。It should also be pointed out that, optionally, when the supplementary light module 200 is accommodated in the first accommodation groove R1, the supplementary light module 200 is flush with the device body Z1, so that the supplementary light module 200 can be avoided When the module 200 is stored in the first receiving groove R1 , the supplementary light module 200 protrudes from the device body Z1 , resulting in unstable placement, and the problem that the supplementary light module 200 is easily damaged due to external bumps.
其中,在装置本体Z1为电子设备的情况下,补光模组200与装置本体Z1齐平指的是:补光模组200暴露于第一容纳槽R1外部的端面与电子设备的后壳齐平,在装置本体Z1为电子设备保护壳本体的情况下,补光模组200与装置本体Z1齐平指的是:补光模组200暴露于第一容纳槽R1外部的端面与电子设备保护壳本体中与第二容纳槽的开设方向相背的端面齐平。Wherein, in the case that the device body Z1 is an electronic device, the flushing of the supplementary light module 200 with the device body Z1 means that the end surface of the supplementary light module 200 exposed outside the first accommodation groove R1 is flush with the rear shell of the electronic device. Flat, in the case that the device body Z1 is the body of the electronic equipment protective case, the flushing of the supplementary light module 200 with the device body Z1 means that the end surface of the supplementary light module 200 exposed to the outside of the first receiving groove R1 is in contact with the electronic device protection The end surface of the shell body opposite to the opening direction of the second receiving groove is flush.
请参考图7,其为在本申请的一可选实施例中,补光模组200伸出装置本体Z1的示意图,如图7所示,在补光模组200伸出装置本体Z1的情况下,该出光结构203位于装置本体Z1外,此外,在补光模组200伸出装置本体Z1的情况下,该磁性组件201位于电子设备中地磁传感器的目标距离范围内,以触发电子设备启动发光单元,导光结构202用于将电子设备的发光单元发出的光线传导至出光结构203,以通过出光结构203射出光线,这样,就可以通过出光结构203射出的光线实现补光。Please refer to FIG. 7 , which is a schematic diagram of the supplementary light module 200 protruding from the device body Z1 in an optional embodiment of the present application. As shown in FIG. 7 , when the supplementary light module 200 protrudes from the device body Z1 Next, the light output structure 203 is located outside the device body Z1. In addition, when the supplementary light module 200 extends out of the device body Z1, the magnetic component 201 is located within the target distance range of the geomagnetic sensor in the electronic device to trigger the electronic device to start. The light-emitting unit, the light-guiding structure 202 is used to transmit the light emitted by the light-emitting unit of the electronic device to the light-emitting structure 203, so as to emit light through the light-emitting structure 203, so that the light emitted through the light-emitting structure 203 can realize supplementary light.
需要指出的是,上文中的磁性组件201可以为磁铁等能够产生磁场的组件,该磁性组件201可以为片状结构,从而 方便将其设置于补光模组200中。It should be pointed out that the magnetic component 201 above can be a component capable of generating a magnetic field such as a magnet, and the magnetic component 201 can be a sheet structure, so that it can be conveniently arranged in the supplementary light module 200 .
在本申请实施例中,通过在补光模组200中设置磁性组件201,以利用该磁性组件201对电子设备中设置的地磁传感器产生的磁场干扰来使电子设备确定补光模组200是否伸出装置本体Z1之外,使得电子设备可以不额外设置专门的检测模块,而是复用已有的地磁传感器就可以实现对补光模组200是否伸出装置本体Z1的判断,因此,其硬件开销较小,而且,其可以与大部分的电子设备相适配,因此,其应用范围较广。In the embodiment of the present application, by setting the magnetic component 201 in the supplementary light module 200, the magnetic field interference generated by the magnetic component 201 on the geomagnetic sensor provided in the electronic device is used to make the electronic device determine whether the supplementary light module 200 is extended or not. In addition to the device body Z1, the electronic device does not need to install a special detection module, but reuses the existing geomagnetic sensor to realize the judgment of whether the supplementary light module 200 protrudes from the device body Z1. Therefore, its hardware The overhead is small, and it can be adapted to most electronic devices, so its application range is wide.
该导光结构202可以由透光率大于预设透光率阈值的材质制成,例如,导光结构202可以由亚克力材质、PVC(英文:Polyvinyl chloride;中文:聚氯乙烯)材质等制成。在电子设备的发光单元开启时,该导光结构202可以透射该发光单元的光线,以将发光单元的光线传导至出光结构。The light guide structure 202 can be made of a material with a light transmittance greater than a preset light transmittance threshold, for example, the light guide structure 202 can be made of acrylic material, PVC (English: Polyvinyl chloride; Chinese: polyvinyl chloride) material, etc. . When the light emitting unit of the electronic device is turned on, the light guide structure 202 can transmit the light of the light emitting unit, so as to guide the light of the light emitting unit to the light output structure.
请参考图4,在本申请的可选实施例中,该导光结构202可以为条状。Please refer to FIG. 4 , in an optional embodiment of the present application, the light guide structure 202 may be strip-shaped.
请参考图8,其为导光结构202的一种示例性的截面示意图,如图8所示,该导光结构202可以包括导光体2021和覆盖在导光体2021外围表面的第一光反射层2022。其中,第一光反射层2022用于将导光体2021向外部逸散的光线反射回该导光体2021内部,从而可以减少导光体2021的光逸散程度,继而可以保证出光结构203出射光线的强度。Please refer to FIG. 8, which is an exemplary schematic cross-sectional view of a light guide structure 202. As shown in FIG. reflective layer 2022 . Wherein, the first light reflection layer 2022 is used to reflect the light that escapes from the light guide body 2021 to the outside of the light guide body 2021, thereby reducing the degree of light dissipation of the light guide body 2021, and then ensuring that the light output structure 203 emits light. The intensity of the light.
需要说明的是,该导光体2021可以如上文所述的由透光率大于预设透光率阈值的材质制成,此外,虽然图8中示出的导光体2021的截面形状为圆形,但是,在实际应用中,该导光体2021的截面形状可以为方形、三角形等等,本申请实施例对其不做具体限定。It should be noted that the light guide body 2021 can be made of a material with a light transmittance greater than a preset light transmittance threshold as described above, and in addition, although the cross-sectional shape of the light guide body 2021 shown in FIG. 8 is a circle However, in practical applications, the cross-sectional shape of the light guide body 2021 may be square, triangular, etc., which is not specifically limited in this embodiment of the present application.
在本申请的可选实施例中,出光结构203可以为导光板,其可将线光源转换为面光源,并从出光面射出,如图4所示,导光结构202与该出光结构203的侧壁连通,该出光结构203可以将导光结构202传导至出光结构203侧壁的光线透射至出光面上,从而形成面光源射出。In an optional embodiment of the present application, the light output structure 203 can be a light guide plate, which can convert the line light source into a surface light source and emit it from the light output surface. As shown in FIG. 4 , the light guide structure 202 and the light output structure 203 The side walls are connected, and the light output structure 203 can transmit the light transmitted by the light guide structure 202 to the side wall of the light output structure 203 to the light output surface, thereby forming a surface light source to emit.
需要指出的是,在本申请的可选实施例中,在补光模组200伸出装置本体Z1的情况下,出光结构203的出光面(也即是图4中朝向垂直纸面向里方向的面)与电子设备的前置摄像头的拍摄朝向(也即是图4中垂直纸面向里的朝向)相同,这样,出光结构203出射的光线就可以对电子设备的前置摄像头的拍摄对象进行补光。It should be pointed out that, in an optional embodiment of the present application, when the supplementary light module 200 protrudes from the device body Z1, the light-emitting surface of the light-emitting structure 203 (that is, the direction facing inwards perpendicular to the paper surface in FIG. 4 surface) is the same as the shooting orientation of the front camera of the electronic device (that is, the inward orientation of the vertical paper surface in FIG. Light.
请参考图9,其为出光结构203的一种示例性的截面示意图,如图9所示,该出光结构203的出光面A上涂覆有雾化层H,其中,该雾化层H用于散射出光结构203透射的光线,由于散射可以使光线朝向各个方向射出,而不是集中于同一方向射出,因此,涂覆雾化层H的方式可以使出光结构203出射的光线更加柔和,从而提升补光效果,并提升用户的使用体验。Please refer to FIG. 9, which is an exemplary schematic cross-sectional view of the light output structure 203. As shown in FIG. Due to the scattering of the light transmitted by the light-emitting structure 203, since the scattering can make the light emit in various directions instead of concentrating in the same direction, the method of coating the atomized layer H can make the light emitted by the light-emitting structure 203 softer, thereby improving Fill light effect, and improve user experience.
请参考图10其为出光结构203的另一种示例性的截面示意图,如图10所示,该出光结构203中与出光面A相对的一面B上涂覆有第二光反射层G,其中,与第一光反射层2022的作用类似地,第二光反射层G用于将出光结构由B面向外部逸散的光线反射回该出光结构203的内部,从而可以减少出光结构203的光逸散程度,继而可以保证出光结构203出射光线的强度。Please refer to FIG. 10 , which is another exemplary schematic cross-sectional view of the light output structure 203. As shown in FIG. Similar to the function of the first light reflection layer 2022, the second light reflection layer G is used to reflect the light that escapes from the light exit structure from B to the outside back to the inside of the light exit structure 203, thereby reducing the light escape of the light exit structure 203. The degree of divergence can ensure the intensity of light emitted by the light emitting structure 203 .
需要指出的是,在本申请的可选实施例中,该出光结构203既可以涂覆有雾化层H,也可以涂覆有第二光反射层G。It should be pointed out that, in an optional embodiment of the present application, the light output structure 203 can be coated with the haze layer H or the second light reflection layer G.
请参考图11,磁性组件201在补光模组200伸出装置本体Z1时的位置为W1,磁性组件201在补光模组200收纳于装置本体Z1中时的位置为W2,其中,W1和W2互不相同,地磁传感器的设置位置为W3(当装置本体Z1为电子设备时,地磁传感器的设置位置W3即为电子设备中地磁传感器的位置,当装置本体Z1为电子设备保护壳本体时,地磁传感器的设置位置W3为电子设备保护壳本体的第二容纳槽容纳有电子设备时,该电子设备中地磁传感器的位置)。由图11可知,W1和W3的距离与W2和W3的距离互不相同,其中,W1和W3的距离位于目标距离范围内,W2和W3的距离不位于该目标距离范围内。Please refer to FIG. 11 , the position of the magnetic component 201 when the supplementary light module 200 extends out of the device body Z1 is W1, and the position of the magnetic component 201 when the supplementary light module 200 is stored in the device body Z1 is W2, wherein W1 and W2 is different from each other, and the setting position of the geomagnetic sensor is W3 (when the device body Z1 is an electronic device, the setting position W3 of the geomagnetic sensor is the position of the geomagnetic sensor in the electronic device; when the device body Z1 is the electronic device protective shell body, The installation position W3 of the geomagnetic sensor is the position of the geomagnetic sensor in the electronic device when the second receiving slot of the electronic device protective case body accommodates the electronic device). It can be seen from FIG. 11 that the distance between W1 and W3 is different from the distance between W2 and W3, wherein the distance between W1 and W3 is within the target distance range, and the distance between W2 and W3 is not within the target distance range.
请参考图12,其为地磁传感器在补光模组200伸出装置本体Z1的情况下测得的磁感应强度和地磁传感器在补光模组200收纳于装置本体Z1的情况下测得的磁感应强度的示意图。其中,如图12所示,地磁传感器在补光模组200伸出装置本体Z1的情况下测得的磁感应强度对应于图示中的波峰,而地磁传感器在补光模组200收纳于装置本体Z1的情况下测得的磁感应强度对应于图示中的波谷。Please refer to FIG. 12 , which shows the magnetic induction intensity measured by the geomagnetic sensor when the supplementary light module 200 extends out of the device body Z1 and the magnetic induction intensity measured by the geomagnetic sensor when the supplementary light module 200 is stored in the device body Z1 schematic diagram. Wherein, as shown in FIG. 12 , the magnetic induction intensity measured by the geomagnetic sensor when the supplementary light module 200 extends out of the device body Z1 corresponds to the peak in the figure, and the geomagnetic sensor is stored in the device body when the supplementary light module 200 The measured magnetic induction in the case of Z1 corresponds to the troughs in the diagram.
因此,根据图12所示,磁性组件201在补光模组200伸出装置本体Z1的情况下对地磁传感器所造成的磁场干扰,和,磁性组件201在补光模组200收纳于装置本体Z1的情况下对地磁传感器造成的磁场干扰不同。Therefore, as shown in FIG. 12 , the magnetic field interference caused by the magnetic component 201 to the geomagnetic sensor when the supplementary light module 200 extends out of the device body Z1, and the magnetic component 201 is accommodated in the device body Z1 in the supplementary light module 200 The magnetic field interference caused to the geomagnetic sensor is different under different conditions.
在本申请实施例中,电子设备正可以根据地磁传感器受到的磁场干扰的不同来确定补光模组200是否伸出装置本体Z1。In the embodiment of the present application, the electronic device can determine whether the supplementary light module 200 protrudes from the device body Z1 according to the difference in the magnetic field interference received by the geomagnetic sensor.
可选的,考虑到电子设备通常将地磁传感器设置于后置摄像头区域,因此,为了在补光模组200伸出装置本体时对地磁传感器造成较强的磁场干扰,使得地磁传感器能够较为容易地检测到该磁场干扰,在本申请的可选实施例中,在补光模组200伸出装置本体Z1时,磁性组件201的位置靠近电子设备的后置摄像头区域。Optionally, considering that electronic equipment usually sets the geomagnetic sensor in the rear camera area, in order to cause strong magnetic field interference to the geomagnetic sensor when the supplementary light module 200 extends out of the device body, the geomagnetic sensor can be easily When the magnetic field interference is detected, in an optional embodiment of the present application, when the supplementary light module 200 extends out of the device body Z1, the position of the magnetic component 201 is close to the rear camera area of the electronic device.
请参考图13,在本申请的可选实施例中,该补光模组200还可以包括入光结构204,其中,该入光结构204与该导光结构202连通,在补光模组200伸出装置本体Z1的情况下,该入光结构204与电子设备的发光单元正对,以将发光单元发出的光线传导至导光结构202。Please refer to FIG. 13 , in an optional embodiment of the present application, the supplementary light module 200 may also include a light incident structure 204, wherein the light incident structure 204 communicates with the light guide structure 202, and the supplementary light module 200 When protruding from the device body Z1 , the light incident structure 204 faces the light emitting unit of the electronic device, so as to guide the light emitted by the light emitting unit to the light guide structure 202 .
请参考图14,其为入光结构204的放大示意图,如图14所示,该入光结构204为一凹槽,该凹槽与导光结构202相互连通,在补光模组200伸出装置本体Z1的情况下,该凹槽与电子设备的发光单元S正对。Please refer to FIG. 14 , which is an enlarged schematic view of the light incident structure 204. As shown in FIG. In the case of the device main body Z1, the groove faces the light emitting unit S of the electronic device.
请参考图15,在本申请的可选实施例中,该凹槽的内壁上可以设置有光反射组件J,其中,该光反射组件J可以为反射镜、反射膜等,本申请实施例不对该光反射组件J的具体形态进行限定。Please refer to FIG. 15, in an optional embodiment of the present application, a light reflection component J may be provided on the inner wall of the groove, wherein the light reflection component J may be a mirror, a reflection film, etc., the embodiment of the present application is not correct The specific form of this light reflection element J is limited.
该光反射组件J用于对闪光灯射入该凹槽中的光线进行反射,以避免闪光灯射入该凹槽中的光线向外逸散,从而保证出光结构203出射光线的强度。The light reflection component J is used to reflect the light emitted by the flashlight into the groove, so as to prevent the light emitted by the flashlight into the groove from escaping outwards, so as to ensure the intensity of the light emitted by the light emitting structure 203 .
如上文所述,补光模组200可以连接至装置本体Z1上,其中,在一种可能的实现方式中,该补光模组200与装置本体Z1通过转动轴转动连接,补光模组200在转动轴的转动作用下翻折伸出于装置本体,在另一种可能的实现方式中,补光模组200与装置本体Z1滑动连接,补光模组200滑动伸出于装置本体Z1。As mentioned above, the supplementary light module 200 can be connected to the device body Z1. Under the action of the rotation of the rotating shaft, it folds and protrudes from the device body. In another possible implementation, the supplementary light module 200 is slidably connected to the device body Z1, and the supplementary light module 200 slides and protrudes from the device body Z1.
其中,请参考图7,其为补光模组200在转动轴的转动作用下翻折伸出于装置本体的示意图,请参考图16,其为补光模组200基于滑槽HC滑动伸出于装置本体Z1的示意图。Among them, please refer to FIG. 7, which is a schematic diagram of the supplementary light module 200 being folded and protruded from the device body under the rotation of the rotating shaft. Please refer to FIG. 16, which is a schematic diagram of the supplementary light module 200 sliding out based on the chute HC. A schematic diagram of the device body Z1.
需要指出的是,在实际应用中,补光模组200与装置本体Z1的连接方式可以不局限与转动连接以及滑动连接,还可以存在其他的连接方式,本申请实施例在此不一一赘述。It should be pointed out that, in practical applications, the connection between the supplementary light module 200 and the device body Z1 is not limited to rotational connection and sliding connection, and there may also be other connection methods, which will not be described here in the embodiments of the present application. .
请参考图17,本申请实施例还提供了一种电子设备的功能扩展模组300,其中,该功能扩展模组300包括磁性组件301,该功能扩展模组300连接至装置本体Z2时可伸出装置本体Z2或者收纳于装置本体Z2中。Please refer to FIG. 17 , the embodiment of the present application also provides a function expansion module 300 of electronic equipment, wherein the function expansion module 300 includes a magnetic component 301, and the function expansion module 300 can be stretched when connected to the device body Z2. out of the device body Z2 or stored in the device body Z2.
在功能扩展模组300伸出装置本体Z2的情况下,该磁性组件301位于电子设备中地磁传感器的目标距离范围内,以触发电子设备执行相应的功能控制操作,如图18所示,其为功能扩展模组300伸出装置本体Z2的示意图。When the function expansion module 300 protrudes from the device body Z2, the magnetic component 301 is located within the target distance range of the geomagnetic sensor in the electronic device, so as to trigger the electronic device to perform corresponding function control operations, as shown in FIG. 18 , which is A schematic diagram of the function expansion module 300 protruding from the device body Z2.
在本申请的可选实施例中,该功能控制操作包括以下操作中的至少一种:开启发光单元的操作;启动震动马达的操作;点亮显示屏的操作;启动摄像头的操作。In an optional embodiment of the present application, the function control operation includes at least one of the following operations: an operation of turning on the light emitting unit; an operation of starting a vibration motor; an operation of lighting a display screen; and an operation of starting a camera.
需要指出的是,上文所提供的功能控制操作的类型仅仅是示例性的,在实际应用中,功能控制操作还可以为其他类型的操作,本申请实施例在此不一一说明。It should be noted that the types of function control operations provided above are only exemplary, and in practical applications, the function control operations may also be other types of operations, which are not described here in this embodiment of the present application.
在功能扩展模组300伸出装置本体Z2的情况下,磁性组件301能够对电子设备中设置的地磁传感器产生较大的磁场干扰,因此,电子设备可以通过地磁传感器受到的磁场干扰来确定功能扩展模组300是否伸出装置本体Z2,并在确定功能扩展模组300伸出装置本体Z2的情况下,执行相应的控制操作,这样,就可以实现电子设备在功能扩展模组300伸出装置本体Z2的情况下执行特定的操作的效果,由于功能控制操作的触发方式为将功能扩展模组300伸出于装置本体Z2之外,相较于传统的通过触发虚拟按键、触发实体按键以及控制电子设备按照预设方式运动的方式而言,其触发方式较为简单以及灵活。When the function expansion module 300 protrudes from the device body Z2, the magnetic component 301 can generate a large magnetic field interference to the geomagnetic sensor installed in the electronic device. Therefore, the electronic device can determine the function expansion through the magnetic field interference received by the geomagnetic sensor. Whether the module 300 protrudes from the device body Z2, and when it is determined that the function expansion module 300 protrudes from the device body Z2, perform corresponding control operations, so that the electronic device can be realized when the function expansion module 300 protrudes from the device body In the case of Z2, the effect of executing a specific operation, since the triggering method of the function control operation is to extend the function expansion module 300 out of the device body Z2, compared with the traditional way of triggering virtual keys, triggering physical keys and controlling electronic In terms of the way the device moves according to the preset way, the triggering method is relatively simple and flexible.
此外,通过在功能扩展模组300中设置磁性组件301,以利用该磁性组件301对电子设备中设置的地磁传感器产生的磁场干扰来使电子设备确定功能扩展模组300是否伸出装置本体Z2之外,使得电子设备可以不额外设置专门的检测模块,而是复用已有的地磁传感器就可以实现对功能扩展模组300是否伸出装置本体Z2的判断,因此,其硬件开销较小,而且,其可以与大部分的电子设备相适配,因此,其应用范围较广。In addition, by setting the magnetic component 301 in the function expansion module 300, the magnetic field interference generated by the magnetic component 301 on the geomagnetic sensor installed in the electronic device is used to make the electronic device determine whether the function expansion module 300 protrudes from the device body Z2. In addition, the electronic device does not need to set up a special detection module, but reuses the existing geomagnetic sensor to realize the judgment of whether the function expansion module 300 protrudes from the device body Z2. Therefore, its hardware cost is relatively small, and , which can be adapted to most of the electronic equipment, therefore, its application range is wide.
需要指出的是,上文中的装置本体Z2与装置本体Z1的类型、结构同理,功能扩展模组300连接于装置本体Z2上的方式与补光模组200连接于装置本体Z1上的方式同理,功能扩展模组300伸出装置本体Z2的方式以及功能扩展模组300收纳于装置本体Z2中的方式与补光模组200伸出装置本体Z1的方式以及补光模组200收纳于装置本体Z2中的方式同理。It should be pointed out that the type and structure of the device body Z2 and the device body Z1 above are the same, and the way that the function expansion module 300 is connected to the device body Z2 is the same as the way that the supplementary light module 200 is connected to the device body Z1. The way that the function expansion module 300 protrudes from the device body Z2 and the way that the function expansion module 300 is stored in the device body Z2 and the way that the supplementary light module 200 protrudes from the device body Z1 and that the supplementary light module 200 is stored in the device The method in Ontology Z2 is the same.
也即是,装置本体Z2包括第一容纳槽,功能扩展模组300收纳于第一容纳槽内。在功能扩展模组300收纳于第一容纳槽的情况下,功能扩展模组300与装置本体Z2齐平。That is, the device body Z2 includes a first receiving groove, and the function expansion module 300 is accommodated in the first receiving groove. When the function expansion module 300 is stored in the first receiving slot, the function expansion module 300 is flush with the device body Z2.
装置本体Z2可以为电子设备,功能扩展模组300与电子设备的后壳可拆卸连接,该电子设备的后壳开设有上述第一容纳槽。该装置本体Z2也可以为电子设备保护壳本体,该电子设备保护壳本体开设有第一容纳槽以及用于容纳电子设备的第二容纳槽,除此以外,该电子设备保护壳本体还可以开设有发光单元通孔,在第二容纳槽容纳有电子设备的情况下,该发光单元通孔与电子设备的发光单元正对。The device body Z2 may be an electronic device, and the function expansion module 300 is detachably connected to the rear case of the electronic device, and the rear case of the electronic device is provided with the above-mentioned first receiving slot. The device body Z2 can also be an electronic equipment protective case body, and the electronic equipment protective case body is provided with a first accommodating groove and a second accommodating groove for accommodating electronic equipment. In addition, the electronic equipment protective case body can also be opened There is a through hole of the light emitting unit, and when the electronic device is accommodated in the second accommodation groove, the through hole of the light emitting unit is directly opposite to the light emitting unit of the electronic device.
此外,在一种可能的实现方式中,该功能扩展模组300可以与装置本体Z2通过转动轴转动连接,功能扩展模组300在转动轴的转动作用下翻折伸出于装置本体Z2,在另一种可能的实现方式中,功能扩展模组300与装置本体Z2滑动连接,功能扩展模组300滑动伸出于装置本体Z2。In addition, in a possible implementation manner, the function expansion module 300 can be rotatably connected with the device body Z2 through the rotation shaft, and the function expansion module 300 is folded and protruded from the device body Z2 under the rotation of the rotation shaft. In another possible implementation manner, the function expansion module 300 is slidably connected to the device body Z2, and the function expansion module 300 slides out of the device body Z2.
本申请实施例对上文中装置本体Z2的类型、结构,功能扩展模组300连接于装置本体Z2上的方式,功能扩展模组300伸出装置本体Z2的方式以及功能扩展模组300收纳于装置本体Z2中的方式不再赘述,其具体内容可以参考图4至图16任一附图所对应的实施内容。In the embodiment of the present application, the type and structure of the device body Z2 mentioned above, the way the function expansion module 300 is connected to the device body Z2, the way the function expansion module 300 protrudes from the device body Z2, and the function expansion module 300 is stored in the device The method in the ontology Z2 will not be described again, and its specific content can refer to the implementation content corresponding to any one of the drawings in FIG. 4 to FIG. 16 .
与上文所述的磁性组件201类似地,功能扩展模组300中的磁性组件301在功能扩展模组300伸出装置本体Z2时位于电子设备中的地磁传感器的目标距离范围内,磁性组件301在功能扩展模组300收纳于装置本体Z2中时不位于地磁传感器的目标距离范围内。Similar to the magnetic assembly 201 described above, the magnetic assembly 301 in the function expansion module 300 is located within the target distance range of the geomagnetic sensor in the electronic device when the function expansion module 300 extends out of the device body Z2, and the magnetic assembly 301 When the function expansion module 300 is stored in the device body Z2, it is not within the target distance range of the geomagnetic sensor.
此外,在功能扩展模组300伸出装置本体Z2时,磁性组件301的位置靠近电子设备的后置摄像头区域。In addition, when the function expansion module 300 extends out of the device body Z2, the position of the magnetic component 301 is close to the rear camera area of the electronic device.
另外,在功能控制操作包括开启发光单元的操作的情况下,该功能扩展模组300可以实现补光功能,在这种情况下,该功能扩展模组300可以包括与补光模组200相似的结构。In addition, when the function control operation includes the operation of turning on the light emitting unit, the function expansion module 300 can realize the supplementary light function, in this case, the function expansion module 300 can include structure.
例如,在本申请的可选实施例中,功能扩展模组300还可以包括相互连通的导光结构和出光结构,在功能扩展模组300伸出装置本体Z2时,出光结构位于装置本体Z2外,导光结构用于将发光单元发出的光线传导至出光结构,以通过出光结构射出光线。For example, in an optional embodiment of the present application, the function expansion module 300 may also include a light guide structure and a light output structure that communicate with each other. When the function expansion module 300 extends out of the device body Z2, the light output structure is located outside the device body Z2 , the light guide structure is used to conduct the light emitted by the light emitting unit to the light exit structure, so as to emit the light through the light exit structure.
其中,在电子设备的发光单元开启时,导光结构用于透射发光单元的光线,以将光线传导至出光结构。可选的,导光结构包括导光体和覆盖在导光体外围表面的第一光反射层。Wherein, when the light-emitting unit of the electronic device is turned on, the light-guiding structure is used to transmit the light of the light-emitting unit, so as to guide the light to the light-emitting structure. Optionally, the light guide structure includes a light guide body and a first light reflection layer covering the peripheral surface of the light guide body.
其中,出光结构出射的光线用于对电子设备的前置摄像头的拍摄对象进行补光。可选的,出光结构包括出光面,在功能扩展模组300伸出装置本体Z2时,出光面的朝向与电子设备的前置摄像头的拍摄朝向相同。Wherein, the light emitted by the light-emitting structure is used to supplement the light of the object photographed by the front camera of the electronic device. Optionally, the light-emitting structure includes a light-emitting surface, and when the function expansion module 300 extends out of the device body Z2, the direction of the light-emitting surface is the same as the shooting direction of the front camera of the electronic device.
可选的,出光结构用于将导光结构传导的光线透射至出光面上。此外,出光结构的出光面上可以涂覆有雾化层,该雾化层用于散射出光结构透射的光线。可选的,出光结构中与出光面相对的一面上涂覆有第二光反射层。Optionally, the light exit structure is used to transmit the light guided by the light guide structure to the light exit surface. In addition, the light-emitting surface of the light-emitting structure may be coated with an atomized layer, and the atomized layer is used for scattering light transmitted by the light-emitting structure. Optionally, a second light reflection layer is coated on the surface of the light-exiting structure opposite to the light-exiting surface.
在本申请的可选实施例中,功能扩展模组300还可以包括与导光结构连通的入光结构,在功能扩展模组300伸出装置本体Z2的情况下,入光结构与发光单元正对,以将发光单元发出的光线传导至导光结构。其中,该入光结构可以为凹槽,该凹槽的内壁上设置有光反射组件。In an optional embodiment of the present application, the function expansion module 300 may also include a light incident structure communicated with the light guide structure. When the function expansion module 300 protrudes from the device body Z2, the light incident structure is in direct contact with the light emitting unit. Yes, to guide the light emitted by the light emitting unit to the light guide structure. Wherein, the light incident structure may be a groove, and a light reflection component is arranged on the inner wall of the groove.
本申请实施例还提供了一种电子设备保护壳,该电子设备保护壳包括上文所述的补光模组200;或者,电子设备保护壳包括上文所述的功能扩展模组300。The embodiment of the present application also provides a protective case for electronic equipment, the protective case for electronic equipment includes the supplementary light module 200 described above; or, the protective case for electronic equipment includes the function expansion module 300 described above.
本申请实施例还提供了一种电子设备,该电子设备包括后壳,该电子设备还包括上文所述的补光模组200;或者,电子设备还包括上文所述的功能扩展模组300。The embodiment of the present application also provides an electronic device, the electronic device includes a rear case, and the electronic device also includes the above-mentioned supplementary light module 200; or, the electronic device also includes the above-mentioned function expansion module 300.
请参考图19,其示出了一种电子设备控制方法的流程图,如图19所示,该电子设备控制方法包括以下步骤:Please refer to FIG. 19, which shows a flowchart of a method for controlling an electronic device. As shown in FIG. 19, the method for controlling an electronic device includes the following steps:
步骤401、电子设备获取自身中设置的地磁传感器测得的目标磁场测量数据。In step 401, the electronic device obtains target magnetic field measurement data measured by a geomagnetic sensor installed in the electronic device.
其中,地磁传感器测得的目标磁场测量数据可以为目标磁感应强度。实际应用中,地磁传感器可以对世界坐标系(也可以称为绝对坐标系)的x轴、y轴和z轴上的磁场分别进行测量,换言之,步骤401中的目标磁场测量数据可以包括在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度。Wherein, the target magnetic field measurement data measured by the geomagnetic sensor may be the target magnetic induction intensity. In practical applications, the geomagnetic sensor can measure the magnetic field on the x-axis, y-axis and z-axis of the world coordinate system (also called the absolute coordinate system). In other words, the target magnetic field measurement data in step 401 can be included in the world Magnetosensor intensities measured on the x-axis, y-axis, and z-axis of the coordinate system, respectively.
需要指出的是,步骤401中电子设备可以基于传感器数据获取脚本来获取该目标磁场测量数据,其中,在安卓系统中,电子设备获取地磁传感器测得的目标磁场测量数据的方式可以包括:电子设备中的传感器数据获取脚本在安卓系统的sensor provider(中文:传感器提供程序)中注册地磁传感器类型,以对地磁传感器测得的目标磁场测量数据进行订阅,在注册之后,sensor provider可以将目标磁场测量数据传递至该传感器数据获取脚本。It should be pointed out that in step 401, the electronic device can obtain the target magnetic field measurement data based on the sensor data acquisition script, wherein, in the Android system, the way the electronic device obtains the target magnetic field measurement data measured by the geomagnetic sensor can include: electronic device The sensor data acquisition script in the Android system registers the geomagnetic sensor type in the sensor provider (Chinese: sensor provider) to subscribe to the target magnetic field measurement data measured by the geomagnetic sensor. After registration, the sensor provider can measure the target magnetic field The data is passed to the sensor data acquisition script.
还需要指出的是,电子设备可以周期性地获取该目标磁场测量数据,也可以实时获取该目标磁场测量数据,还可以在该目标磁场测量数据发生变化的情况下,获取该目标磁场测量数据,本申请实施例对电子设备获取该目标磁场测量数据的实际不进行限定。It should also be pointed out that the electronic device may acquire the target magnetic field measurement data periodically, or may acquire the target magnetic field measurement data in real time, and may also acquire the target magnetic field measurement data when the target magnetic field measurement data changes, The embodiment of the present application does not limit the fact that the electronic device acquires the measurement data of the target magnetic field.
步骤402、电子设备根据目标磁场测量数据确定在地磁传感器的目标距离范围内是否存在磁性组件。 Step 402, the electronic device determines whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data.
在本申请实施例中,通过确定在地磁传感器的目标距离范围内是否存在磁性组件,可以判断补光模组或者功能扩展模组是否伸出装置本体(也即是电子设备或者电子设备保护壳)。In the embodiment of the present application, by determining whether there is a magnetic component within the target distance range of the geomagnetic sensor, it can be determined whether the supplementary light module or the function expansion module protrudes from the device body (that is, the electronic device or the electronic device protective case) .
其中,若在地磁传感器的目标距离范围内存在磁性组件,则可以确定补光模组或者功能扩展模组伸出装置本体。反之,若在地磁传感器的目标距离范围内不存在磁性组件,则可以确定补光模组或者功能扩展模组未伸出装置本体,也即是,补光模组或者功能扩展模组收纳于装置本体内。Wherein, if there is a magnetic component within the target distance range of the geomagnetic sensor, it can be determined that the supplementary light module or the function expansion module protrudes from the device body. Conversely, if there is no magnetic component within the target distance range of the geomagnetic sensor, it can be determined that the supplementary light module or the function expansion module does not protrude from the device body, that is, the supplementary light module or the function expansion module is stored in the device. In the ontology.
步骤403、若在地磁传感器的目标距离范围内存在磁性组件,则电子设备执行相应的功能控制操作。 Step 403, if there is a magnetic component within the target distance range of the geomagnetic sensor, the electronic device performs a corresponding function control operation.
其中,该功能控制操作包括以下操作中的至少一种:开启发光单元的操作;启动震动马达的操作;点亮显示屏的操作;开启摄像头的操作。Wherein, the function control operation includes at least one of the following operations: the operation of turning on the light-emitting unit; the operation of starting the vibration motor; the operation of turning on the display screen; the operation of turning on the camera.
需要指出的是,上文所提供的功能控制操作的类型仅仅是示例性的,在实际应用中,该功能控制操作还可以为其他类型的操作,本申请实施例在此不一一说明。It should be noted that the types of function control operations provided above are only exemplary, and in practical applications, the function control operations may also be other types of operations, which are not described here in this embodiment of the present application.
由于在功能扩展模组或者补光模组伸出装置本体的情况下,磁性组件位于地磁传感器的目标距离范围内,其能够对电子设备中设置的地磁传感器产生较大的磁场干扰,因此,电子设备可以通过地磁传感器受到的磁场干扰来确定功能扩展模组或者补光模组是否伸出装置本体,并在确定功能扩展模组或者补光模组伸出装置本体的情况下,执行相应的控制操作,这样,就可以实现电子设备在功能扩展模组或者补光模组伸出装置本体的情况下执行特定的操作的效果,由于功能控制操作的触发方式为将功能扩展模组或者补光模组伸出于装置本体之外,相较于传统的方式而言,其触发方式较为简单、灵活性较高。Since the magnetic component is located within the target distance range of the geomagnetic sensor when the function expansion module or supplementary light module protrudes from the device body, it can generate large magnetic field interference to the geomagnetic sensor installed in the electronic device. Therefore, the electronic The device can determine whether the function expansion module or supplementary light module protrudes from the device body through the magnetic field interference received by the geomagnetic sensor, and executes corresponding control when it is determined that the function expansion module or supplementary light module protrudes from the device body In this way, the electronic device can realize the effect of performing a specific operation when the function expansion module or the supplementary light module extends out of the device body, because the trigger mode of the function control operation is to extend the function expansion module or the supplementary light module The group protrudes from the device body, and compared with the traditional way, the triggering method is simpler and more flexible.
此外,通过电子设备中设置的地磁传感器来使电子设备确定功能扩展模组或者补光模组是否伸出装置本体之外,使得电子设备可以不额外设置专门的检测模块,而是复用已有的地磁传感器就可以实现对功能扩展模组或者功能组件是否伸出装置本体的判断,因此,其硬件开销较小,而且,其可以与大部分的电子设备相适配,因此,其应用范围较广。In addition, the geomagnetic sensor installed in the electronic equipment enables the electronic equipment to determine whether the function expansion module or the supplementary light module protrudes from the device body, so that the electronic equipment does not need to additionally set up a special detection module, but reuses the existing The geomagnetic sensor can realize the judgment of whether the function expansion module or functional component is protruding from the device body. Therefore, its hardware cost is small, and it can be adapted to most electronic equipment. Therefore, its application range is relatively large. wide.
在本申请的可选实施例中,在执行功能控制操作之后,电子设备还可以继续获取地磁传感器测得的目标磁场测量数据,并根据该目标磁场测量数据确定在地磁传感器的目标距离范围内是否持续存在磁性组件,若检测到在地磁传感器的目标距离范围内不存在磁性组件,则电子设备可以执行相应的后续功能控制操作。In an optional embodiment of the present application, after performing the function control operation, the electronic device may continue to acquire the target magnetic field measurement data measured by the geomagnetic sensor, and determine whether the target is within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data. The magnetic component is continuously present, and if it is detected that there is no magnetic component within the target distance range of the geomagnetic sensor, the electronic device may perform corresponding subsequent functional control operations.
其中,该后续功能控制操作可以包括以下操作中的至少一种:关闭发光单元的操作;关闭震动马达的操作;熄灭显示屏的操作;关闭摄像头的操作。Wherein, the subsequent function control operation may include at least one of the following operations: the operation of turning off the light emitting unit; the operation of turning off the vibration motor; the operation of turning off the display screen; the operation of turning off the camera.
在图19所示的电子设备控制方法的基础上,本申请实施例提供了一种“根据目标磁场测量数据确定在地磁传感器的目标距离范围内是否存在磁性组件”的实现方式,请参考图20,该实现方式包括以下步骤:On the basis of the electronic device control method shown in FIG. 19, the embodiment of the present application provides an implementation of “determining whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data”, please refer to FIG. 20 , the implementation includes the following steps:
步骤4021、电子设备检测目标磁感应强度是否位于预设强度范围内。 Step 4021, the electronic device detects whether the target magnetic induction intensity is within a preset intensity range.
其中,该预设强度范围是根据地磁传感器的目标距离范围内存在磁性组件的情况下地磁传感器测得的磁感应强度所确定的。该预设强度范围可以是技术人员根据实验或者根据数据模拟得到的范围,在本申请的一个可选的实施例中,该预设强度范围可以为大于一预设强度阈值的范围。Wherein, the preset intensity range is determined according to the magnetic induction intensity measured by the geomagnetic sensor under the condition that a magnetic component exists within the target distance range of the geomagnetic sensor. The preset intensity range may be a range obtained by technicians based on experiments or data simulations. In an optional embodiment of the present application, the preset intensity range may be a range greater than a preset intensity threshold.
可选的,在本申请实施例中,电子设备可以检测地磁传感器在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度的绝对值之和是否大于预设强度阈值,以此来确定目标磁感应强度是否位于预设强度范围内。Optionally, in the embodiment of the present application, the electronic device may detect whether the sum of the absolute values of the magnetosensor intensities respectively measured by the geomagnetic sensor on the x-axis, y-axis, and z-axis of the world coordinate system is greater than a preset intensity threshold, In this way, it is determined whether the target magnetic induction intensity is within a preset intensity range.
其中,若地磁传感器在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度的绝对值之和大于预设强度阈值,则可以确定目标磁感应强度位于预设强度范围内,反之,若地磁传感器在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度的绝对值之和不大于预设强度阈值,则可以确定目标磁感应强度不位于预设强度范围内。Wherein, if the sum of the absolute values of the magnetic sensor intensities respectively measured by the geomagnetic sensor on the x-axis, y-axis and z-axis of the world coordinate system is greater than the preset intensity threshold, it can be determined that the target magnetic induction intensity is within the preset intensity range, Conversely, if the sum of the absolute values of the magnetic sensor intensities measured by the geomagnetic sensor on the x-axis, y-axis and z-axis of the world coordinate system is not greater than the preset intensity threshold, it can be determined that the target magnetic induction intensity is not within the preset intensity range Inside.
可选的,在本申请实施例中,该预设强度阈值可以为1600。Optionally, in this embodiment of the present application, the preset intensity threshold may be 1600.
步骤4022、若目标磁感应强度位于预设强度范围内,则电子设备确定在地磁传感器的目标距离范围内存在磁性组件。Step 4022: If the target magnetic induction intensity is within the preset intensity range, the electronic device determines that there is a magnetic component within the target distance range of the geomagnetic sensor.
步骤4023、若目标磁感应强度不位于预设强度范围内,则电子设备确定在地磁传感器的目标距离范围内不存在磁性组件。Step 4023: If the target magnetic induction intensity is not within the preset intensity range, the electronic device determines that there is no magnetic component within the target distance range of the geomagnetic sensor.
请参考图21,在电子设备执行的功能控制操作包括开启发光单元的操作的情况下,可以通过补光模组对前置摄像头的拍摄对象进行补光,此时,电子设备获取目标磁场测量数据的技术过程,可以包括如下步骤:Please refer to Figure 21. In the case that the function control operation performed by the electronic device includes the operation of turning on the light-emitting unit, the light supplement module can be used to supplement the light on the subject of the front camera. At this time, the electronic device obtains the target magnetic field measurement data The technical process may include the following steps:
步骤4011、电子设备检测前置摄像头是否被调用。 Step 4011, the electronic device detects whether the front camera is called.
步骤4012、在前置摄像头被调用的情况下,电子设备获取地磁传感器测得的目标磁场测量数据。 Step 4012, when the front camera is invoked, the electronic device acquires the target magnetic field measurement data measured by the geomagnetic sensor.
由于开启闪光灯的目的主要是:通过补光模组对发光单元的光线进行传导,以从出光结构中射出,从而对前置摄像头的拍摄对象进行补光,因此,在本申请的可选实施例中,电子设备可以仅在检测到前置摄像头被调用的情况下,获取 目标磁场测量数据,以基于该目标磁场测量数据来判断是否需要打开发光单元,这样,就可以避免电子设备在前置摄像头未被调用的情况下,无意义地开启发光单元实现补光,故而,可以节约电子设备的功耗,减小电子设备的计算量。Since the purpose of turning on the flash is mainly to transmit the light of the light-emitting unit through the supplementary light module to emit from the light-emitting structure, so as to supplement the light on the subject of the front camera, therefore, in the optional embodiment of this application In this method, the electronic device can obtain the target magnetic field measurement data only when it detects that the front camera is invoked, so as to determine whether to turn on the light-emitting unit based on the target magnetic field measurement data. In this way, the electronic device can be avoided. In the case of not being called, the light-emitting unit is turned on meaninglessly to realize supplementary light, so the power consumption of the electronic device can be saved, and the calculation amount of the electronic device can be reduced.
请参考图22,其示出了一种电子设备控制装置500的框图,如图22所示,该电子设备控制装置500包括获取模块501、确定模块502以及操作执行模块503。Please refer to FIG. 22 , which shows a block diagram of an electronic equipment control apparatus 500 . As shown in FIG. 22 , the electronic equipment control apparatus 500 includes an acquisition module 501 , a determination module 502 and an operation execution module 503 .
其中,该获取模块501,用于获取该电子设备中设置的地磁传感器测得的目标磁场测量数据。Wherein, the acquiring module 501 is configured to acquire target magnetic field measurement data measured by a geomagnetic sensor disposed in the electronic device.
该确定模块502,用于根据该目标磁场测量数据确定在该地磁传感器的目标距离范围内是否存在磁性组件。The determining module 502 is configured to determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data.
该操作执行模块503,用于若在该地磁传感器的该目标距离范围内存在该磁性组件,则执行相应的功能控制操作。The operation execution module 503 is configured to execute a corresponding function control operation if the magnetic component exists within the target distance range of the geomagnetic sensor.
在本申请的一个可选的实施例中,该目标磁场测量数据包括目标磁感应强度,该确定模块502,具体用于:判断该目标磁感应强度是否位于预设强度范围内,其中,该预设强度范围是根据该地磁传感器的该目标距离范围内存在该磁性组件的情况下该地磁传感器测得的磁感应强度所确定的;若该目标磁感应强度位于该预设强度范围内,则确定在该地磁传感器的该目标距离范围内存在该磁性组件;若该目标磁感应强度不位于该预设强度范围内,则确定在该地磁传感器的该目标距离范围内不存在该磁性组件。In an optional embodiment of the present application, the target magnetic field measurement data includes the target magnetic induction intensity, and the determining module 502 is specifically configured to: determine whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity The range is determined according to the magnetic induction intensity measured by the geomagnetic sensor under the condition that the magnetic component exists within the target distance range of the geomagnetic sensor; The magnetic component exists within the target distance range; if the target magnetic induction intensity is not within the preset intensity range, it is determined that the magnetic component does not exist within the target distance range of the geomagnetic sensor.
在本申请的一个可选的实施例中,该目标磁感应强度包括在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度;该确定模块502,具体用于:判断在该x轴、该y轴和该z轴上分别测得的磁感应子强度的绝对值之和是否大于预设强度阈值。In an optional embodiment of the present application, the target magnetic induction intensity includes magnetic induction electron intensities respectively measured on the x-axis, y-axis, and z-axis of the world coordinate system; the determination module 502 is specifically used to: determine the Whether the sum of the absolute values of the magnetic sensor intensities respectively measured on the x-axis, the y-axis and the z-axis is greater than a preset intensity threshold.
在本申请的一个可选的实施例中,该功能控制操作包括以下操作中的至少一种:开启发光单元的操作;启动震动马达的操作;点亮显示屏的操作;启动摄像头的操作。In an optional embodiment of the present application, the function control operation includes at least one of the following operations: an operation of turning on the light emitting unit; an operation of starting a vibration motor; an operation of lighting a display screen; and an operation of starting a camera.
在本申请的一个可选的实施例中,在该功能控制操作包括开启该发光单元的操作的情况下,该获取模块501,具体用于:检测该电子设备中的前置摄像头是否被调用;在该前置摄像头被调用的情况下,获取该地磁传感器测得的该目标磁场测量数据。In an optional embodiment of the present application, when the function control operation includes the operation of turning on the light emitting unit, the obtaining module 501 is specifically configured to: detect whether the front camera in the electronic device is invoked; When the front camera is invoked, the target magnetic field measurement data measured by the geomagnetic sensor is acquired.
在本申请的一个可选的实施例中,该操作执行模块503,还用于:若检测到在该地磁传感器的该目标距离范围内不存在该磁性组件,则执行后续功能控制操作。In an optional embodiment of the present application, the operation executing module 503 is further configured to: execute subsequent function control operations if it is detected that the magnetic component does not exist within the target distance range of the geomagnetic sensor.
本申请实施例提供的电子设备控制装置,可以实现上述方法实施例,其实现原理和技术效果类似,在此不再赘述。The electronic device control device provided in the embodiment of the present application can implement the above method embodiment, and its implementation principle and technical effect are similar, and will not be repeated here.
关于电子设备控制装置的具体限定可以参见上文中对于电子设备控制方法的限定,在此不再赘述。上述电子设备控制装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备的处理器中,也可以以软件形式存储于电子设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitations of the electronic equipment control apparatus, please refer to the above definition for the electronic equipment control method, which will not be repeated here. Each module in the above-mentioned electronic equipment control device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor of the electronic device in the form of hardware, and can also be stored in the memory of the electronic device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
图23为一个实施例中电子设备的内部结构示意图。如图23所示,该电子设备包括通过系统总线连接的处理器以及存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以上各个实施例所提供的一种电子设备控制方法。内存储器为非易失性存储介质中的操作系统以及计算机程序提供高速缓存的运行环境。Fig. 23 is a schematic diagram of the internal structure of an electronic device in one embodiment. As shown in FIG. 23, the electronic device includes a processor and a memory connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include non-volatile storage media and internal memory. Nonvolatile storage media store operating systems and computer programs. The computer program can be executed by a processor, so as to implement the method for controlling an electronic device provided in each of the above embodiments. The internal memory provides a high-speed running environment for the operating system and computer programs in the non-volatile storage medium.
本领域技术人员可以理解,图23中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 23 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the electronic equipment to which the solution of this application is applied. The specific electronic equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
在本申请的一个实施例中,提供了一种电子设备,该电子设备包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment of the present application, an electronic device is provided, the electronic device includes a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
获取该电子设备中设置的地磁传感器测得的目标磁场测量数据;根据该目标磁场测量数据确定在该地磁传感器的目标距离范围内是否存在磁性组件;若在该地磁传感器的该目标距离范围内存在该磁性组件,则执行相应的功能控制操作。Obtain the target magnetic field measurement data measured by the geomagnetic sensor set in the electronic device; determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data; if there is a magnetic component within the target distance range of the geomagnetic sensor The magnetic component then performs corresponding functional control operations.
在本申请的一个实施例中,该目标磁场测量数据包括目标磁感应强度,处理器执行计算机程序时还实现以下步骤:判断该目标磁感应强度是否位于预设强度范围内,其中,该预设强度范围是根据该地磁传感器的该目标距离范围内存在该磁性组件的情况下该地磁传感器测得的磁感应强度所确定的;若该目标磁感应强度位于该预设强度范围内,则确定在该地磁传感器的该目标距离范围内存在该磁性组件。In one embodiment of the present application, the target magnetic field measurement data includes the target magnetic induction intensity, and the processor also implements the following steps when executing the computer program: judging whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity range It is determined according to the magnetic induction intensity measured by the geomagnetic sensor under the condition that the magnetic component exists within the target distance range of the geomagnetic sensor; if the target magnetic induction intensity is within the preset intensity range, it is determined within the The magnetic assembly is present within the target distance range.
在本申请的一个实施例中,该目标磁感应强度包括在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度,处理器执行计算机程序时还实现以下步骤:判断在该x轴、该y轴和该z轴上分别测得的磁感应子强度的绝对值之和是否大于预设强度阈值。In one embodiment of the present application, the target magnetic induction intensity includes the magnetic induction sub-intensities respectively measured on the x-axis, y-axis and z-axis of the world coordinate system, and the processor also implements the following steps when executing the computer program: judging the Whether the sum of the absolute values of the magnetic sensor intensities measured on the x-axis, the y-axis and the z-axis is greater than a preset intensity threshold.
在本申请的一个实施例中,该第一控制操作包括以下操作中的至少一种:开启发光单元的操作;启动震动马达的操作;点亮显示屏的操作;启动摄像头的操作。In an embodiment of the present application, the first control operation includes at least one of the following operations: an operation of turning on the light emitting unit; an operation of starting a vibration motor; an operation of lighting a display screen; and an operation of starting a camera.
在本申请的一个实施例中,在该功能控制操作包括开启该发光单元的操作的情况下,处理器执行计算机程序时还实现以下步骤:检测该电子设备中的前置摄像头是否被调用;在该前置摄像头被调用的情况下,获取该地磁传感器测得的该目标磁场测量数据。In one embodiment of the present application, when the function control operation includes the operation of turning on the light-emitting unit, when the processor executes the computer program, the following steps are also implemented: detecting whether the front camera in the electronic device is invoked; When the front camera is invoked, the target magnetic field measurement data measured by the geomagnetic sensor is acquired.
在本申请的一个实施例中,处理器执行计算机程序时还实现以下步骤:若检测到在该地磁传感器的该目标距离范围内不存在该磁性组件,则执行后续功能控制操作。In one embodiment of the present application, when the processor executes the computer program, the following steps are further implemented: if it is detected that the magnetic component does not exist within the target distance range of the geomagnetic sensor, then perform subsequent function control operations.
本申请实施例提供的电子设备,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principles and technical effects of the electronic device provided in the embodiments of the present application are similar to those of the above method embodiments, and will not be repeated here.
在本申请的一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取该电子设备中设置的地磁传感器测得的目标磁场测量数据;根据该目标磁场测量数据确定在该地磁传感器的目标距离范围内是否存在磁性组件;若在该地磁传感器的该目标距离范围内存在该磁性组件,则执行相应的功能控制操作。Obtain the target magnetic field measurement data measured by the geomagnetic sensor set in the electronic device; determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data; if there is a magnetic component within the target distance range of the geomagnetic sensor The magnetic component then performs corresponding functional control operations.
在本申请的一个实施例中,该目标磁场测量数据包括目标磁感应强度,计算机程序被处理器执行时还实现以下步骤:判断该目标磁感应强度是否位于预设强度范围内,其中,该预设强度范围是根据该地磁传感器的该目标距离范围内存在该磁性组件的情况下该地磁传感器测得的磁感应强度所确定的;若该目标磁感应强度位于该预设强度范围内,则确定在该地磁传感器的该目标距离范围内存在该磁性组件。In one embodiment of the present application, the target magnetic field measurement data includes the target magnetic induction intensity, and the computer program is executed by the processor to further implement the following steps: judging whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity The range is determined according to the magnetic induction intensity measured by the geomagnetic sensor under the condition that the magnetic component exists within the target distance range of the geomagnetic sensor; The magnetic assembly exists within the target distance range of .
在本申请的一个实施例中,该目标磁感应强度包括在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度,计算机程序被处理器执行时还实现以下步骤:检测在该x轴、该y轴和该z轴上分别测得的磁感应子强度的绝对值之和是否大于预设强度阈值。In one embodiment of the present application, the target magnetic induction intensity includes the magnetic induction sub-intensities respectively measured on the x-axis, y-axis and z-axis of the world coordinate system, and when the computer program is executed by the processor, the following steps are also implemented: detecting Whether the sum of the absolute values of the magnetic sensor intensities respectively measured on the x-axis, the y-axis and the z-axis is greater than a preset intensity threshold.
在本申请的一个实施例中,该功能控制操作包括以下操作中的至少一种:开启发光单元的操作;启动震动马达的操作;点亮显示屏的操作;启动摄像头的操作。In an embodiment of the present application, the function control operation includes at least one of the following operations: the operation of turning on the light emitting unit; the operation of starting the vibration motor; the operation of lighting the display screen; the operation of starting the camera.
在本申请的一个实施例中,在该功能控制操作包括开启该发光单元的操作的情况下,计算机程序被处理器执行时还实现以下步骤:检测该电子设备中的前置摄像头是否被调用;在该前置摄像头被调用的情况下,获取该地磁传感器测得的该目标磁场测量数据。In one embodiment of the present application, when the function control operation includes the operation of turning on the light-emitting unit, when the computer program is executed by the processor, the following steps are also implemented: detecting whether the front camera in the electronic device is invoked; When the front camera is invoked, the target magnetic field measurement data measured by the geomagnetic sensor is acquired.
在本申请的一个实施例中,计算机程序被处理器执行时还实现以下步骤:若检测到在该地磁传感器的该目标距离范围内不存在该磁性组件,则执行后续功能控制操作。In one embodiment of the present application, when the computer program is executed by the processor, the following steps are further implemented: if it is detected that the magnetic component does not exist within the target distance range of the geomagnetic sensor, then perform subsequent function control operations.
本实施例提供的计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principle and technical effect of the computer-readable storage medium provided in this embodiment are similar to those of the above-mentioned method embodiments, and details are not repeated here.
在本申请中,除非另有明确的规定和限定,术语“相连”、“连接”等术语应做广义理解,例如,可以是直接相连,也可以是间接相连。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In this application, unless otherwise specified and limited, terms such as "connected" and "connected" should be interpreted broadly, for example, they may be directly connected or indirectly connected. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application according to specific situations.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如A和/或B,可以表示单独存在A、单独存在B及同时存在A和B三种情况。符号“/”一般表示前后关联对象是一种“或”的关系。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, such as A and/or B, which may indicate that A exists alone, B exists alone, and A and B exist simultaneously. The symbol "/" generally indicates that the contextual objects are an "or" relationship.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以M种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(SyMchliMk)DRAM(SLDRAM)、存储器总线(RaMbus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in M forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Road (SyMchliMk) DRAM (SLDRAM), memory bus (RaMbus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, should be considered as within the scope of this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (23)

  1. 一种电子设备,其中,包括:An electronic device, comprising:
    地磁传感器,用于对所述电子设备的外部磁场进行测量,得到目标磁场测量数据;The geomagnetic sensor is used to measure the external magnetic field of the electronic device to obtain target magnetic field measurement data;
    处理器,与所述地磁传感器连接,用于获取所述目标磁场测量数据,并在基于所述目标磁场测量数据确定在所述地磁传感器的目标距离范围内存在磁性组件的情况下,向功能管理模块发送目标控制指令;A processor, connected to the geomagnetic sensor, configured to acquire the target magnetic field measurement data, and send a message to the function management when it is determined based on the target magnetic field measurement data that there is a magnetic component within the target distance range of the geomagnetic sensor The module sends target control instructions;
    所述功能管理模块,与所述处理器连接,用于接收所述目标控制指令,并根据所述目标控制指令的指示执行相应的功能控制操作。The function management module is connected with the processor and configured to receive the target control instruction, and execute a corresponding function control operation according to the instruction of the target control instruction.
  2. 根据权利要求1所述的电子设备,其中,所述功能管理模块包括电源管理单元和发光单元,所述电源管理单元与所述处理器连接,所述发光单元与所述电源管理单元连接;The electronic device according to claim 1, wherein the function management module includes a power management unit and a light emitting unit, the power management unit is connected to the processor, and the light emitting unit is connected to the power management unit;
    所述电源管理单元,用于根据所述目标控制指令向所述发光单元供电,以使所述发光单元发射光线。The power management unit is configured to supply power to the light emitting unit according to the target control instruction, so that the light emitting unit emits light.
  3. 根据权利要求2所述的电子设备,其中,所述功能管理模块还包括功能扩展单元,所述功能扩展单元包括摄像头、显示屏和震动马达中的至少一种,所述功能扩展单元与所述电源管理单元连接;The electronic device according to claim 2, wherein the function management module further includes a function extension unit, the function extension unit includes at least one of a camera, a display screen, and a vibration motor, and the function extension unit is compatible with the Power management unit connection;
    所述电源管理单元,还用于根据所述目标控制指令向所述功能扩展单元供电,以使所述功能扩展单元启动。The power management unit is further configured to supply power to the function expansion unit according to the target control instruction, so as to start the function expansion unit.
  4. 根据权利要求1所述的电子设备,其中,所述目标磁场测量数据包括目标磁感应强度,所述处理器,具体用于:The electronic device according to claim 1, wherein the target magnetic field measurement data includes target magnetic induction, and the processor is specifically configured to:
    判断所述目标磁感应强度是否位于预设强度范围内,其中,所述预设强度范围是根据所述地磁传感器的所述目标距离范围内存在所述磁性组件的情况下所述地磁传感器测得的磁感应强度所确定的;judging whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity range is measured by the geomagnetic sensor when the magnetic component exists within the target distance range of the geomagnetic sensor Determined by the magnetic induction;
    若所述目标磁感应强度位于所述预设强度范围内,则确定在所述地磁传感器的所述目标距离范围内存在所述磁性组件。If the target magnetic induction intensity is within the preset intensity range, it is determined that the magnetic component exists within the target distance range of the geomagnetic sensor.
  5. 根据权利要求4所述的电子设备,其中,所述目标磁感应强度包括在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度;所述预设强度范围的最小边界为预设强度阈值,所述处理器,具体用于:The electronic device according to claim 4, wherein the target magnetic induction intensity includes the magnetic induction sub-intensities respectively measured on the x-axis, y-axis and z-axis of the world coordinate system; the minimum boundary of the preset intensity range is The preset intensity threshold, the processor, is specifically used for:
    判断在所述x轴、所述y轴和所述z轴上分别测得的磁感应子强度的绝对值之和是否大于所述预设强度阈值。It is judged whether the sum of the absolute values of the magnetic sensor intensities respectively measured on the x-axis, the y-axis and the z-axis is greater than the preset intensity threshold.
  6. 根据权利要求1-5任一所述的电子设备,其中,所述电子设备可容纳于电子设备保护壳中,所述电子设备保护壳包括相互活动连接的保护壳本体和功能扩展模组,所述功能扩展模组包括磁性组件,所述功能扩展模组可伸出所述保护壳本体或者收纳于所述保护壳本体中;The electronic device according to any one of claims 1-5, wherein the electronic device can be accommodated in a protective case for the electronic device, and the protective case for the electronic device includes a protective case body and a function expansion module that are movably connected to each other. The function expansion module includes a magnetic component, and the function expansion module can extend out of the protective case body or be accommodated in the protective case body;
    在伸出所述保护壳本体的情况下,所述磁性组件位于所述地磁传感器的所述目标距离范围内。The magnetic component is located within the target distance range of the geomagnetic sensor when extending out of the protective shell body.
  7. 根据权利要求6所述的电子设备,其中,所述功能扩展模组还包括相互连通的导光结构和出光结构;The electronic device according to claim 6, wherein the function expansion module further includes a light guide structure and a light output structure that communicate with each other;
    在所述功能扩展模组伸出所述保护壳本体的情况下,所述出光结构位于所述电子设备外,所述导光结构用于将所述电子设备的发光单元发出的光线传导至所述出光结构,以通过所述出光结构射出光线。When the function expansion module protrudes from the protective case body, the light output structure is located outside the electronic device, and the light guide structure is used to guide the light emitted by the light emitting unit of the electronic device to the The light output structure is used to emit light through the light output structure.
  8. 一种补光模组,其中,所述补光模组包括磁性组件、相互连通的导光结构和出光结构;所述补光模组连接至装置本体时可伸出所述装置本体或者收纳于所述装置本体中;A supplementary light module, wherein the supplementary light module includes a magnetic component, a light guide structure and a light output structure connected to each other; when the supplementary light module is connected to the device body, it can extend out of the device body or be stored in the In the device body;
    在所述补光模组伸出所述装置本体时,所述出光结构位于所述装置本体外,所述磁性组件位于电子设备中地磁传感器的目标距离范围内,以触发所述电子设备启动发光单元,所述导光结构用于将所述发光单元发出的光线传导至所述出光结构,以通过所述出光结构射出光线。When the supplementary light module extends out of the device body, the light output structure is located outside the device body, and the magnetic assembly is located within the target distance range of the geomagnetic sensor in the electronic device, so as to trigger the electronic device to start emitting light unit, the light guide structure is used to guide the light emitted by the light emitting unit to the light output structure, so as to emit the light through the light output structure.
  9. 根据权利要求8所述的补光模组,其中,所述补光模组与所述装置本体通过转动轴转动连接,所述补光模组在所述转动轴的转动作用下翻折伸出于所述装置本体。The supplementary light module according to claim 8, wherein the supplementary light module is rotatably connected to the device body through a rotating shaft, and the supplementary light module is folded and protruded under the rotation of the rotary shaft on the device body.
  10. 根据权利要求8所述的补光模组,其中,所述补光模组与所述装置本体滑动连接,所述补光模组滑动伸出于所述装置本体。The supplementary light module according to claim 8, wherein the supplementary light module is slidably connected with the device body, and the supplementary light module slides out of the device body.
  11. 根据权利要求8-10任一项所述的补光模组,其中,所述装置本体为所述电子设备,所述补光模组与所述电子设备的后壳可拆卸连接,所述后壳开设有第一容纳槽,所述补光模组收容于所述第一容纳槽中。The supplementary light module according to any one of claims 8-10, wherein the device body is the electronic device, the supplementary light module is detachably connected to the rear shell of the electronic device, and the rear The housing defines a first receiving groove, and the light supplement module is accommodated in the first receiving groove.
  12. 根据权利要求8-10任一项所述的补光模组,其中,所述装置本体为电子设备保护壳本体,所述电子设备保护壳本体开设有第一容纳槽以及用于容纳所述电子设备的第二容纳槽,所述补光模组收容于所述第一容纳槽中。The supplementary light module according to any one of claims 8-10, wherein the device body is an electronic device protective case body, and the electronic device protective case body is provided with a first receiving groove for accommodating the electronic device. In the second receiving slot of the device, the supplementary light module is accommodated in the first receiving slot.
  13. 一种电子设备保护壳,其中,所述电子设备保护壳包括如权利要求8-12任一项所述的补光模组。A protective case for electronic equipment, wherein the protective case for electronic equipment comprises the supplementary light module according to any one of claims 8-12.
  14. 一种电子设备,其中,所述电子设备包括后壳和如权利要求8-12任一项所述的补光模组。An electronic device, wherein the electronic device comprises a rear case and the supplementary light module according to any one of claims 8-12.
  15. 一种电子设备控制方法,其中,所述方法包括:A method for controlling an electronic device, wherein the method includes:
    获取电子设备中地磁传感器测得的目标磁场测量数据;Obtain the target magnetic field measurement data measured by the geomagnetic sensor in the electronic device;
    根据所述目标磁场测量数据确定在所述地磁传感器的目标距离范围内是否存在磁性组件;determining whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data;
    若在所述地磁传感器的所述目标距离范围内存在所述磁性组件,则执行相应的功能控制操作。If the magnetic component exists within the target distance range of the geomagnetic sensor, a corresponding function control operation is performed.
  16. 根据权利要求15所述的方法,其中,所述目标磁场测量数据包括目标磁感应强度,所述根据所述目标磁场测量数据确定在所述地磁传感器的目标距离范围内是否存在磁性组件,包括:The method according to claim 15, wherein the target magnetic field measurement data includes target magnetic induction, and determining whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data comprises:
    判断所述目标磁感应强度是否位于预设强度范围内,其中,所述预设强度范围是根据所述地磁传感器的所述目标距离范围内存在所述磁性组件的情况下所述地磁传感器测得的磁感应强度所确定的;judging whether the target magnetic induction intensity is within a preset intensity range, wherein the preset intensity range is measured by the geomagnetic sensor when the magnetic component exists within the target distance range of the geomagnetic sensor Determined by the magnetic induction;
    若所述目标磁感应强度位于所述预设强度范围内,则确定在所述地磁传感器的所述目标距离范围内存在所述磁性组件。If the target magnetic induction intensity is within the preset intensity range, it is determined that the magnetic component exists within the target distance range of the geomagnetic sensor.
  17. 根据权利要求16所述的方法,其中,所述目标磁感应强度包括在世界坐标系的x轴、y轴和z轴上分别测得的磁感应子强度;所述预设强度范围的最小边界为预设强度阈值,所述检测所述目标磁感应强度是否位于预设强度范围内,包括:The method according to claim 16, wherein the target magnetic induction intensity comprises the magnetic induction sub-intensities respectively measured on the x-axis, y-axis and z-axis of the world coordinate system; the minimum boundary of the preset intensity range is preset Setting an intensity threshold, the detection of whether the target magnetic induction intensity is within a preset intensity range includes:
    判断在所述x轴、所述y轴和所述z轴上分别测得的磁感应子强度的绝对值之和是否大于所述预设强度阈值。It is judged whether the sum of the absolute values of the magnetic sensor intensities respectively measured on the x-axis, the y-axis and the z-axis is greater than the preset intensity threshold.
  18. 根据权利要求15至17任一所述的方法,其中,所述功能控制操作包括以下操作中的至少一种:The method according to any one of claims 15 to 17, wherein the function control operation includes at least one of the following operations:
    开启闪光灯的操作;The operation of turning on the flashlight;
    控制震动马达启动的操作;The operation of controlling the activation of the vibration motor;
    控制显示屏点亮的操作;Control the operation of display lighting;
    控制摄像头启动的操作。Controls actions initiated by the camera.
  19. 根据权利要求18所述的方法,其中,在所述功能控制操作包括开启闪光灯的操作的情况下,所述获取所述电子设备中设置的地磁传感器测得的目标磁场测量数据,包括:The method according to claim 18, wherein, when the function control operation includes the operation of turning on a flashlight, the acquiring the target magnetic field measurement data measured by the geomagnetic sensor provided in the electronic device comprises:
    检测所述电子设备中的前置摄像头是否被调用;Detecting whether the front camera in the electronic device is invoked;
    在所述前置摄像头被调用的情况下,获取所述地磁传感器测得的所述目标磁场测量数据。When the front camera is invoked, the target magnetic field measurement data measured by the geomagnetic sensor is acquired.
  20. 根据权利要求15所述的方法,其中,所述执行相应的功能控制操作之后,所述方法还包括:The method according to claim 15, wherein, after performing the corresponding function control operation, the method further comprises:
    若检测到在所述地磁传感器的所述目标距离范围内不存在所述磁性组件,则执行后续功能控制操作。If it is detected that the magnetic component does not exist within the target distance range of the geomagnetic sensor, a subsequent function control operation is performed.
  21. 一种电子设备控制装置,其中,所述装置包括:An electronic device control device, wherein the device includes:
    获取模块,用于获取电子设备中设置的地磁传感器测得的目标磁场测量数据;An acquisition module, configured to acquire the target magnetic field measurement data measured by the geomagnetic sensor arranged in the electronic device;
    确定模块,用于根据所述目标磁场测量数据确定在所述地磁传感器的目标距离范围内是否存在磁性组件;A determining module, configured to determine whether there is a magnetic component within the target distance range of the geomagnetic sensor according to the target magnetic field measurement data;
    操作执行模块,用于若在所述地磁传感器的所述目标距离范围内存在所述磁性组件,则执行相应的功能控制操作。An operation executing module, configured to execute a corresponding function control operation if the magnetic component exists within the target distance range of the geomagnetic sensor.
  22. 一种电子设备,其中,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求15至20中任一项所述的方法的步骤。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, any one of claims 15 to 20 is realized A step of the described method.
  23. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求15至20中任一项所述的方法的步骤。A computer-readable storage medium on which a computer program is stored, wherein the computer program implements the steps of the method according to any one of claims 15 to 20 when executed by a processor.
PCT/CN2022/083319 2021-05-26 2022-03-28 Electronic device, light supplementing module, protective casing, control method and apparatus, and medium WO2022247435A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202121154707.X 2021-05-26
CN202110579274.0A CN115412631B (en) 2021-05-26 2021-05-26 Electronic equipment, light supplementing module, protective shell, control method, device and medium
CN202121154707.XU CN215186916U (en) 2021-05-26 2021-05-26 Electronic equipment, light filling module and electronic equipment protective housing
CN202110579274.0 2021-05-26

Publications (1)

Publication Number Publication Date
WO2022247435A1 true WO2022247435A1 (en) 2022-12-01

Family

ID=84229485

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083319 WO2022247435A1 (en) 2021-05-26 2022-03-28 Electronic device, light supplementing module, protective casing, control method and apparatus, and medium

Country Status (1)

Country Link
WO (1) WO2022247435A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820469A (en) * 2015-04-28 2015-08-05 广东欧珀移动通信有限公司 Electronic equipment and enclosure identification method
US20150233714A1 (en) * 2014-02-18 2015-08-20 Samsung Electronics Co., Ltd. Motion sensing method and user equipment thereof
CN110351479A (en) * 2019-05-30 2019-10-18 华为技术有限公司 Light supplement control method, light filling lamp fitting and electronic equipment
CN111246085A (en) * 2020-01-10 2020-06-05 维沃移动通信(杭州)有限公司 Control method and device and electronic equipment
CN112104797A (en) * 2019-06-18 2020-12-18 北京小米移动软件有限公司 Camera module, electronic equipment, and stroke detection method and device
CN215186916U (en) * 2021-05-26 2021-12-14 Oppo广东移动通信有限公司 Electronic equipment, light filling module and electronic equipment protective housing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150233714A1 (en) * 2014-02-18 2015-08-20 Samsung Electronics Co., Ltd. Motion sensing method and user equipment thereof
CN104820469A (en) * 2015-04-28 2015-08-05 广东欧珀移动通信有限公司 Electronic equipment and enclosure identification method
CN110351479A (en) * 2019-05-30 2019-10-18 华为技术有限公司 Light supplement control method, light filling lamp fitting and electronic equipment
CN112104797A (en) * 2019-06-18 2020-12-18 北京小米移动软件有限公司 Camera module, electronic equipment, and stroke detection method and device
CN111246085A (en) * 2020-01-10 2020-06-05 维沃移动通信(杭州)有限公司 Control method and device and electronic equipment
CN215186916U (en) * 2021-05-26 2021-12-14 Oppo广东移动通信有限公司 Electronic equipment, light filling module and electronic equipment protective housing

Similar Documents

Publication Publication Date Title
JP6663049B2 (en) Mobile terminal
CN108874457B (en) Method, device and system for continuous automatic adjustment of code area
US9667906B2 (en) Display apparatus
US9170912B1 (en) System and methods for power and energy modeling in computing devices using system call tracing
KR20200090438A (en) Electronic device and method for preventing damage of display
CN111752666B (en) Window display method, device and terminal
CN215186916U (en) Electronic equipment, light filling module and electronic equipment protective housing
US20180060010A1 (en) Electronic device including a plurality of touch displays and method for changing status thereof
CN110837473B (en) Application program debugging method, device, terminal and storage medium
US9723905B2 (en) Digital device emitting a scent with an image and method for controlling the same
WO2022252793A1 (en) Screen brightness adjustment method based on ambient light sensor
US11809646B1 (en) System and method for obtaining user input in portable systems
CN107917755A (en) Environment light detection method, device, storage medium and electronic equipment
WO2022247435A1 (en) Electronic device, light supplementing module, protective casing, control method and apparatus, and medium
WO2022267783A1 (en) Method for determining recommended scene, and electronic device
KR20140104220A (en) Method and apparatus for screen transition in electronic device using transparent display
CN109828915B (en) Method, device, equipment and storage medium for debugging application program
US20180335811A1 (en) Information processing apparatus, image projection control method, and program
KR102630632B1 (en) Method for acquiring background information and electronic device supporting the same
CN117079596B (en) Screen brightness adjusting method, terminal equipment and storage medium
CN115412631B (en) Electronic equipment, light supplementing module, protective shell, control method, device and medium
JP2023519403A (en) ELECTRONIC DEVICE, INTERACTION METHOD, INTERACTION DEVICE, AND STORAGE MEDIUM
CN112363950A (en) Application program debugging method and device
CN108984259B (en) Interface display method and device and terminal
KR20200132091A (en) Method and apparatus of displaying data of widget

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: 22810169

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: 22810169

Country of ref document: EP

Kind code of ref document: A1