CN110418003B - Brightness adjusting method, brightness adjusting device and mobile terminal - Google Patents

Brightness adjusting method, brightness adjusting device and mobile terminal Download PDF

Info

Publication number
CN110418003B
CN110418003B CN201910695729.8A CN201910695729A CN110418003B CN 110418003 B CN110418003 B CN 110418003B CN 201910695729 A CN201910695729 A CN 201910695729A CN 110418003 B CN110418003 B CN 110418003B
Authority
CN
China
Prior art keywords
mobile terminal
screen
visible light
brightness
brightness level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910695729.8A
Other languages
Chinese (zh)
Other versions
CN110418003A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910695729.8A priority Critical patent/CN110418003B/en
Publication of CN110418003A publication Critical patent/CN110418003A/en
Application granted granted Critical
Publication of CN110418003B publication Critical patent/CN110418003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • 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

Abstract

The application discloses a brightness adjusting method, a brightness adjusting device, a mobile terminal and a computer readable storage medium, wherein the brightness adjusting method comprises the following steps: detecting whether the mobile terminal receives a visible light communication instruction; when the mobile terminal receives the visible light communication instruction, detecting whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold value; if the brightness level exceeds a preset brightness level threshold, adjusting the brightness level of the screen so that the adjusted brightness level of the screen does not exceed the brightness level threshold; and after the brightness level of the screen is adjusted, triggering the mobile terminal to carry out visible light communication with other equipment based on the visible light communication instruction. According to the scheme, the influence of the light emitted by the screen of the mobile terminal on the visible light communication between the mobile terminal and other equipment can be reduced.

Description

Brightness adjusting method, brightness adjusting device and mobile terminal
Technical Field
The present application belongs to the technical field of mobile terminal control, and in particular, to a brightness adjusting method, a brightness adjusting device, a mobile terminal, and a computer-readable storage medium.
Background
Visible Light Communication (VLC) technology transmits data by using a fluorescent lamp or a Light Emitting Diode (LED) to emit a high-speed bright-dark flashing signal invisible to the eyes, and has a wide development prospect. Currently, when the mobile terminal performs visible light communication with other devices, an optical signal generated by a screen of the mobile terminal may affect transmission or reception of the visible light signal, and further affect a visible light communication process between the mobile terminal and the other devices.
Disclosure of Invention
In view of the above, the present application provides a brightness adjusting method, a brightness adjusting apparatus, a mobile terminal and a computer readable storage medium, which can reduce the influence of the screen brightness of the mobile terminal on the visible light communication between the mobile terminal and other devices.
A first aspect of the present application provides a brightness adjustment method, including:
detecting whether the mobile terminal receives a visible light communication instruction;
when the mobile terminal receives the visible light communication instruction, detecting whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold value;
if the brightness level exceeds a preset brightness level threshold, adjusting the brightness level of the screen so that the adjusted brightness level of the screen does not exceed the brightness level threshold;
and after the brightness level of the screen is adjusted, triggering the mobile terminal to carry out visible light communication with other equipment based on the visible light communication instruction.
A second aspect of the present application provides a luminance adjustment device, including:
the instruction detection unit is used for detecting whether the mobile terminal receives a visible light communication instruction;
the brightness detection unit is used for detecting whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold value or not when the mobile terminal receives the visible light communication instruction;
a brightness control unit, configured to adjust a brightness level of the screen if the brightness level exceeds a preset brightness level threshold, so that the adjusted brightness level of the screen does not exceed the brightness level threshold;
and the communication triggering unit is used for triggering the mobile terminal to carry out visible light communication with other equipment based on the visible light communication instruction after the brightness level of the screen is adjusted.
A third aspect of the present application provides a mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method as described in the first aspect above.
As can be seen from the above, in the present application, whether a mobile terminal receives a visible light communication instruction is detected, when the mobile terminal receives the visible light communication instruction, whether a brightness level of a screen of the mobile terminal exceeds a preset brightness level threshold is detected, and if the brightness level exceeds the preset brightness level threshold, the brightness level of the screen is adjusted, so that the adjusted brightness level of the screen does not exceed the brightness level threshold, and after the brightness level of the screen is adjusted, the mobile terminal is triggered to perform visible light communication with other devices based on the visible light communication instruction. According to the scheme, before the mobile terminal carries out visible light communication, the brightness level of the screen of the mobile terminal is adjusted, so that the influence of the light emitted by the screen of the mobile terminal on the visible light communication between the mobile terminal and other equipment is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile phone to which a brightness adjustment method according to an embodiment of the present disclosure is applied;
fig. 2 is a schematic flowchart of a first brightness adjustment method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a second brightness adjustment method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a screen light source in a brightness adjustment method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a brightness adjusting device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The brightness adjustment method provided by the embodiment of the application can be applied to mobile terminals such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, Augmented Reality (AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPCs), Personal Digital Assistants (PDAs), and the like, and the embodiment of the application does not limit the specific types of the mobile terminals at all.
Take a mobile terminal as an example. Fig. 1 is a block diagram illustrating a partial structure of a mobile phone according to an embodiment of the present disclosure. Referring to fig. 1, the cellular phone includes: a Radio Frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, and a power supply 190. Those skilled in the art will appreciate that the handset configuration shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 1:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 180; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 140 may include a display panel 141, and optionally, the display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although the touch panel 131 and the display panel 141 are shown as two separate components in fig. 1 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the mobile phone.
The handset 100 may also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 141 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, detailed description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between the user and the handset. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is then processed by the audio data output processor 180 and then transmitted to, for example, another cellular phone via the RF circuit 110, or the audio data is output to the memory 120 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 170, and provides wireless broadband Internet access for the user. Although fig. 1 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the handset 100, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Alternatively, processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The handset 100 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption via the power management system.
Although not shown, the handset 100 may also include a camera. Optionally, the position of the camera on the mobile phone 100 may be front-located or rear-located, which is not limited in this embodiment of the application.
Optionally, the mobile phone 100 may include a single camera, a dual camera, or a triple camera, which is not limited in this embodiment.
For example, the cell phone 100 may include three cameras, one being a main camera, one being a wide camera, and one being a tele camera.
Optionally, when the mobile phone 100 includes a plurality of cameras, the plurality of cameras may be all front-mounted, all rear-mounted, or a part of the cameras front-mounted and another part of the cameras rear-mounted, which is not limited in this embodiment of the present application.
In addition, although not shown, the mobile phone 100 may further include a bluetooth module or the like, which is not described herein.
In an application scenario, when a user uses a mobile terminal to perform visible light communication with other devices, if a screen of the mobile terminal is in a bright screen state, the brightness of the screen of the mobile terminal may affect a visible light signal sent or received by the mobile terminal in the visible light communication process.
Specifically, fig. 2 shows a flowchart of a first brightness adjustment method provided in an embodiment of the present application, where the brightness adjustment method is applied to a mobile terminal, and includes:
step 201, detecting whether the mobile terminal receives a visible light communication instruction;
in the embodiment of the application, after the mobile terminal is started, the user can input the visible light communication instruction to the mobile terminal, and then the visible light communication between the mobile terminal and other equipment is triggered. The other devices may be a smart phone, a tablet computer, a smart watch, or the like, which is not limited herein. Specifically, if the mobile terminal is required to transmit data to other devices, a user may select data to be transmitted and a corresponding "visible light transmission" virtual button by clicking on the screen of the mobile terminal, and input a visible light communication instruction to the mobile terminal, where names of the virtual buttons are only used as examples; or, if the mobile terminal is required to receive data transmitted by other devices, the user may input a visible light communication instruction to the mobile terminal through a preset operation on a designated key of the mobile terminal, where the designated key may be a combination of two or more existing physical keys of the mobile terminal, and the preset operation may be a short-press operation or a long-press operation, and the like, which is not limited herein.
Optionally, considering that the brightness of the screen of the mobile terminal affects the visible light communication between the mobile terminal and other devices only in the bright screen state, before step 201, the brightness adjustment method further includes:
detecting the screen state of the mobile terminal;
accordingly, the step 201 includes:
if the mobile terminal is in a bright screen state, when the mobile terminal receives the visible light communication instruction, detecting whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold value.
That is, only when the mobile terminal is in the bright screen state, the screen brightness of the mobile terminal is adjusted based on the visible light communication instruction, and when the mobile terminal is in the off screen state, the influence of the screen brightness on the visible light communication does not need to be considered. Specifically, when the mobile terminal is in the screen-off state, if the mobile terminal needs to perform visible light communication, a visible light signal may be emitted by a flash (as a transmitting end), and a visible light signal may be received by a rear camera (as a receiving end).
Step 202, when the mobile terminal receives the visible light communication instruction, detecting whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold;
in the embodiment of the application, once the mobile terminal receives the visible light communication instruction, whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold value is detected immediately. The brightness level threshold may be set by the mobile terminal when the mobile terminal leaves the factory, or may be actively set by the user, which is not limited herein. Specifically, in consideration of reducing the influence of the brightness of the screen on the subsequent visible light communication, in the embodiment of the present application, the brightness level threshold may be set to a small value, for example, assuming that the brightness of the mobile terminal has 20 levels in total, the brightness level threshold may be set to 5 levels, which is merely an example.
Step 203, if the brightness level exceeds a preset brightness level threshold, adjusting the brightness level of the screen;
in the embodiment of the present application, when it is detected that the brightness level exceeds the preset brightness level threshold, it is considered that the screen of the mobile terminal is too bright, which may possibly affect subsequent visible light communication, and based on this, the brightness of the screen needs to be adjusted, specifically, the brightness level of the screen is reduced, so that the adjusted brightness level of the screen does not exceed the brightness level threshold. Optionally, a target brightness level may be preset, and when the brightness level exceeds a preset brightness level threshold, the brightness level may be directly adjusted to the target brightness level; of course, the user may also manually fine-tune the brightness level of the screen after the mobile terminal automatically adjusts the brightness level of the screen, and update the brightness level obtained after the user manually fine-tunes to a new target brightness level.
And 204, triggering the mobile terminal to perform visible light communication with other equipment based on the visible light communication instruction.
In this embodiment of the application, after the brightness level of the screen is adjusted, the mobile terminal is triggered to perform visible light communication with other devices based on the visible light communication instruction, and specifically, according to the instruction of the visible light communication instruction, the mobile terminal may be used as a sending end of a visible light signal to send data to the other devices, or the mobile terminal may be used as a receiving end of the visible light signal to receive data sent by the other devices. Further, before the visible light communication starts, and after the visible light communication ends, the mobile terminal may output a corresponding voice alert message, for example, before the visible light communication starts, the mobile terminal may output "receive a visible light signal by a front camera (or a rear camera) after x seconds" or "send a visible light signal by a flash (or a light source area of a screen) after x seconds" in a voice; after the end of the visible light communication, the mobile terminal may output "the visible light communication is ended this time" in a voice.
Optionally, when the brightness level exceeds a preset brightness level threshold, the brightness adjusting method further includes:
recording the current brightness level of the mobile terminal as an original brightness level;
after the brightness level of the screen is adjusted, the brightness adjusting method further includes:
and when the mobile terminal finishes the visible light communication, restoring the brightness level of the screen to the original brightness level.
In the embodiment of the present application, in order to avoid affecting the normal use of the mobile terminal by the user and avoid that the user manually adjusts the brightness level of the screen before and after the visible light communication is performed by the mobile terminal, when the brightness level exceeds a preset brightness level threshold, the current brightness level of the mobile terminal may be recorded in a cache area of the mobile terminal, and the current brightness level may be marked as the original brightness level. Once the subsequent visible light communication is finished, the brightness level of the screen can be immediately restored to the original brightness level, so that the mobile terminal returns to the screen brightness before being dimmed, and the user can conveniently continue to use the mobile terminal normally.
Therefore, in the embodiment of the application, after the mobile terminal receives the visible light communication instruction, the brightness level of the screen of the mobile terminal is detected, when the screen of the mobile terminal is too bright, the brightness of the screen of the mobile terminal is reduced, and then the operation of the mobile terminal for performing visible light communication with other equipment is triggered based on the received visible light communication instruction, so that the influence of the brightness emitted by the screen of the mobile terminal on the visible light communication between the mobile terminal and other equipment is reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In another embodiment, the mobile terminal may perform different operations according to a communication role in which the mobile terminal is located in the visible light communication process, for example, the mobile terminal may be a receiving end for visible light communication, and receive a visible light signal sent by another device; alternatively, the apparatus may be configured to transmit a visible light signal to another device as a transmitting end of visible light communication. Based on this, fig. 3 shows a flowchart of a second brightness adjustment method provided in the embodiment of the present application, where the brightness adjustment method is applied to a mobile terminal, and includes:
in step 301, detecting whether the mobile terminal receives a visible light communication instruction;
in step 302, when the mobile terminal receives the visible light communication command, detecting whether a brightness level of a screen of the mobile terminal exceeds a preset brightness level threshold;
in the embodiment of the present application, the steps 301 and 302 are respectively the same as the steps 201 and 202, and reference may be specifically made to the implementation flows of the steps 201 and 202, which are not described herein again.
In step 303, if the brightness level exceeds a preset brightness level threshold, analyzing the visible light communication command, and determining a communication role of the mobile terminal in the process of the visible light communication;
in the embodiment of the present application, the visible light communication command indicates a communication role played by the mobile terminal in a subsequent visible light communication process, where the communication role includes a sending end and a receiving end. The transmitting end is used for transmitting visible light signals to other equipment, and the receiving end is used for receiving the visible light signals transmitted by the other equipment.
In step 304, if the mobile terminal is the transmitting end of the visible light communication, determining a light source of the transmitting end based on the visible light communication command;
in step 305, if the mobile terminal is a receiving end of the visible light communication, determining a receiver of the receiving end based on the visible light communication command;
in the embodiment of the present application, the visible light communication instruction indicates, in addition to the communication role, a component that is enabled by the mobile terminal in the following visible light communication process. For example, when the mobile terminal is used as a transmitting end, a flash lamp may be used as a light source, and a screen may also be used as a light source, which is not limited herein. Specifically, in order not to affect the normal use of the mobile terminal in the visible light communication process, when the screen is used as the light source, only a small area of the screen is often used as the light source, and as shown in fig. 4, the screen is divided into a light source area and other areas. When the mobile terminal is used as a receiving end, the front-facing camera can be used as a receiver, and the rear-facing camera can also be used as a receiver.
In step 306, determining a screen brightness adjustment area associated with the visible light communication according to the light source or the receiver;
specifically, when the light source is a screen light source, a light source region may be defined based on a position of the light source on a screen, wherein the light source region includes only the light source, and then other regions on the screen except the light source region may be determined as a screen brightness adjustment region. That is, the light source area in fig. 4 is not adjusted because the light source is included in this area. Specifically, when the visible light signal is sent through the light source area, the mobile terminal preprocesses data to be transmitted, performs coding modulation, finally drives the LED element in the light source area to modulate the brightness of the LED element, converts the electrical signal into an optical signal, and sends the optical signal out, so as to send the visible light. That is, the brightness of the light source region is determined based on the data to be transmitted during the visible light communication. Of course, when the flash lamp is used as the light source, the process of sending the visible light signal is similar to the process of sending the visible light signal through the screen light source, and the details are not repeated here. It should be noted that, in the process of sending the visible light signal to the outside in the light source region, the screen brightness adjustment region will keep working normally, for example, if the mobile terminal originally plays a video, after starting the visible light communication, the light source region sends visible light to the outside based on the data to be transmitted, and the brightness of the light source region dynamically changes based on the data to be transmitted; and the screen brightness adjusting area continuously keeps normal video playing, only the brightness during video playing is reduced, and the brightness level of the screen brightness adjusting area is kept unchanged under the condition that a user does not perform manual fine adjustment. That is, during the process of visible light communication, the display content of the screen brightness adjusting area is not changed.
Specifically, when the receiving end is a front-facing camera, considering that the screen and the front-facing camera are located on the same side of the mobile terminal, the screen brightness of the mobile terminal may still interfere with the reception of the visible light signal of the front-facing camera to a certain extent.
Specifically, when the mobile terminal is a transmitting terminal and the light source is a flash lamp, or when the mobile terminal is a receiving terminal and the receiving terminal is a rear camera, the flash lamp and the rear camera are not located on the same side of the mobile terminal as the screen, so that the influence of screen brightness on the flash lamp and the rear camera is small, and at this time, the brightness level of the screen may not be adjusted.
In step 307, adjusting the brightness level of the screen brightness adjusting area;
in step 308, the mobile terminal is triggered to perform visible light communication with other devices based on the visible light communication command.
In the embodiment of the present application, the steps 307 and 308 are similar to the steps 203 and 204, respectively, and reference may be specifically made to the implementation flows of the steps 203 and 204, which are not described herein again.
As can be seen from the above, in the embodiment of the present application, after the mobile terminal receives the visible light communication instruction, the brightness level of the screen of the mobile terminal is detected, when the screen of the mobile terminal is too bright, the corresponding screen brightness adjustment area is determined based on the communication role played by the mobile terminal in the subsequent visible light communication process and the enabled component, and the brightness of the screen brightness adjustment area is reduced, and then the operation of visible light communication between the mobile terminal and other devices is triggered based on the received visible light communication instruction, so as to reduce the influence of the brightness emitted by the screen of the mobile terminal on the visible light communication between the mobile terminal and other devices.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 5 shows a block diagram of a brightness adjusting device provided in an embodiment of the present application, which is applied to a mobile terminal, corresponding to the brightness adjusting method in the foregoing embodiment.
Referring to fig. 5, the brightness adjustment device 5 includes: an instruction detection unit 501, a brightness detection unit 502, a brightness control unit 503, and a communication trigger unit 504.
The instruction detecting unit 501 is configured to detect whether the mobile terminal receives a visible light communication instruction;
the brightness detection unit 502 is configured to detect whether a brightness level of a screen of the mobile terminal exceeds a preset brightness level threshold when the mobile terminal receives the visible light communication instruction;
the brightness control unit 503 is configured to adjust the brightness level of the screen if the brightness level exceeds a preset brightness level threshold, so that the adjusted brightness level of the screen does not exceed the brightness level threshold;
the communication triggering unit 504 is configured to trigger the mobile terminal to perform visible light communication with another device based on the visible light communication instruction after the brightness level of the screen is adjusted.
Optionally, the brightness adjusting device 5 further includes:
a state detection unit, configured to detect a screen state of the mobile terminal before the instruction detection unit 501 detects whether the mobile terminal receives a visible light communication instruction;
accordingly, the instruction detecting unit 501 is specifically configured to detect whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold when the mobile terminal receives the visible light communication instruction if the mobile terminal is in a bright screen state.
Alternatively, the brightness control unit 503 may include:
a role judgment subunit, configured to analyze the visible light communication instruction, and judge a communication role of the mobile terminal in the process of visible light communication;
a light source determining subunit, configured to determine, if the mobile terminal is an emitting end of the visible light communication, a light source of the emitting end based on the visible light communication instruction;
a receiver determination subunit, configured to determine, if the mobile terminal is a receiving end of the visible light communication, a receiver of the receiving end based on the visible light communication instruction;
a screen brightness adjustment area determination subunit, configured to determine a screen brightness adjustment area associated with the visible light communication according to the light source or the receiver;
and the brightness adjusting subunit is used for adjusting the brightness level of the screen brightness adjusting area.
Optionally, the screen brightness adjusting area determining subunit is specifically configured to, when the mobile terminal is an emitting end of the visible light communication and the light source is a screen light source, define a light source area based on a position of the light source on a screen, where the light source area only includes the light source; and determining the area of the screen except the light source area as a screen brightness adjusting area.
Optionally, the screen brightness adjustment area determining subunit is further configured to determine all areas of the screen as the screen brightness adjustment area when the mobile terminal is a receiving end of the visible light communication and the receiving end is a front camera.
Optionally, the brightness control unit 503 is further configured to not adjust the brightness level of the screen when the light source is a flash or when the receiving end is a rear camera.
Optionally, the brightness adjusting device 5 further includes:
the recording unit is used for recording the current brightness level of the mobile terminal as an original brightness level when the brightness level exceeds a preset brightness level threshold;
and a restoring unit, configured to restore the brightness level of the screen to an original brightness level when the mobile terminal ends the current visible light communication after adjusting the brightness level of the screen.
Therefore, in the embodiment of the application, after the mobile terminal receives the visible light communication instruction, the brightness adjusting device first detects the brightness level of the screen of the mobile terminal, reduces the screen brightness of the mobile terminal when the screen of the mobile terminal is too bright, and then triggers the mobile terminal to perform visible light communication with other equipment based on the received visible light communication instruction, so as to reduce the influence of the brightness emitted by the screen of the mobile terminal on the visible light communication between the mobile terminal and other equipment.
It should be noted that, for the information interaction, execution process, and other contents between the units in the apparatus, the specific functions and technical effects of the embodiments of the method are based on the same concept, and thus reference may be made to the section of the embodiments of the method specifically, and details are not described here.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units is merely illustrated, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the apparatus is divided into different functional units to perform all or part of the above described functions. Each functional unit in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application. The specific working process of the units in the system may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. As shown in fig. 6, the mobile terminal 6 of this embodiment includes: at least one processor 60 (only one is shown in fig. 6), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, wherein the processor 60 implements the steps of any of the various brightness adjustment method embodiments described above when executing the computer program 62.
The mobile terminal 6 may be a smart phone, a tablet computer, a smart watch, or the like. The mobile terminal may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of the mobile terminal 6 and does not constitute a limitation of the mobile terminal 6, and may include more or less components than those shown, or some components in combination, or different components, such as input output devices, network access devices, etc.
The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the mobile terminal 6, such as a hard disk or a memory of the mobile terminal 6. The memory 61 may be an external storage device of the mobile terminal 6 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the mobile terminal 6. Further, the memory 61 may include both an internal storage unit and an external storage device of the mobile terminal 6. The memory 61 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, other programs, and the like, such as a program code of the computer program. The above-mentioned memory 61 may also be used to temporarily store data that has been output or is to be output.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/mobile terminal, a recording medium, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the above modules or units is only one logical function division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A brightness adjustment method, comprising:
detecting whether the mobile terminal receives a visible light communication instruction;
when the mobile terminal receives the visible light communication instruction, detecting whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold value;
if the brightness level exceeds a preset brightness level threshold, adjusting the brightness level of the screen so that the adjusted brightness level of the screen does not exceed the brightness level threshold;
and after the brightness level of the screen is adjusted, triggering the mobile terminal to carry out visible light communication with other equipment based on the visible light communication instruction.
2. The brightness adjusting method according to claim 1, wherein before the detecting whether the mobile terminal receives the visible light communication command, the brightness adjusting method further comprises:
detecting the screen state of the mobile terminal;
correspondingly, the detecting whether the mobile terminal receives the visible light communication instruction includes:
if the mobile terminal is in a bright screen state, when the mobile terminal receives the visible light communication instruction, detecting whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold value.
3. The luminance adjustment method according to claim 1 or 2, wherein the adjusting the luminance level of the screen so that the adjusted luminance level of the screen does not exceed the luminance level threshold value includes:
analyzing the visible light communication instruction, and judging the communication role of the mobile terminal in the visible light communication process;
if the mobile terminal is the transmitting end of the visible light communication, determining a screen brightness adjusting area associated with the visible light communication according to a light source when the light source of the transmitting end is a screen light source;
if the mobile terminal is the receiving end of the visible light communication, determining a screen brightness adjusting area associated with the visible light communication according to the receiver when the receiver of the receiving end is a front camera;
and adjusting the brightness level of the screen brightness adjusting area.
4. The brightness adjustment method of claim 3, wherein said determining a screen brightness adjustment region associated with the visible light communication according to the light source comprises:
demarcating a light source area based on a position of the light source on a screen, wherein the light source area includes only the light source;
and determining other areas except the light source area on the screen as screen brightness adjusting areas.
5. The brightness adjustment method of claim 3, wherein said determining a screen brightness adjustment region associated with the visible light communication from the receiver comprises:
and determining all areas of the screen as screen brightness adjusting areas.
6. The brightness adjustment method according to claim 1 or 2, wherein when the brightness level exceeds a preset brightness level threshold, the brightness adjustment method further comprises:
recording the current brightness level of the mobile terminal as an original brightness level;
after the brightness level of the screen is adjusted, the brightness adjusting method further includes:
and when the mobile terminal finishes the visible light communication, restoring the brightness level of the screen to the original brightness level.
7. A luminance adjustment device, characterized by comprising:
the instruction detection unit is used for detecting whether the mobile terminal receives a visible light communication instruction;
the brightness detection unit is used for detecting whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold value or not when the mobile terminal receives the visible light communication instruction;
the brightness control unit is used for adjusting the brightness level of the screen if the brightness level exceeds a preset brightness level threshold value, so that the adjusted brightness level of the screen does not exceed the brightness level threshold value;
and the communication triggering unit is used for triggering the mobile terminal to carry out visible light communication with other equipment based on the visible light communication instruction after the brightness level of the screen is adjusted.
8. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910695729.8A 2019-07-30 2019-07-30 Brightness adjusting method, brightness adjusting device and mobile terminal Active CN110418003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910695729.8A CN110418003B (en) 2019-07-30 2019-07-30 Brightness adjusting method, brightness adjusting device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910695729.8A CN110418003B (en) 2019-07-30 2019-07-30 Brightness adjusting method, brightness adjusting device and mobile terminal

Publications (2)

Publication Number Publication Date
CN110418003A CN110418003A (en) 2019-11-05
CN110418003B true CN110418003B (en) 2020-09-18

Family

ID=68364295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910695729.8A Active CN110418003B (en) 2019-07-30 2019-07-30 Brightness adjusting method, brightness adjusting device and mobile terminal

Country Status (1)

Country Link
CN (1) CN110418003B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935866B (en) * 2020-07-08 2021-06-11 武汉理工大学 Navigation mark brightness adjusting method, device and system based on light pollution evaluation
CN114389700A (en) * 2021-12-31 2022-04-22 联想(北京)有限公司 Electronic equipment
CN115166975B (en) * 2022-06-30 2023-12-22 上海摩勤智能技术有限公司 Dynamic brightness adjustment method, dynamic brightness adjustment device, terminal and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661734A (en) * 2009-09-09 2010-03-03 深圳市融创天下科技发展有限公司 Method and system for regulating screen display of camera terminal
US9330257B2 (en) * 2012-08-15 2016-05-03 Qualcomm Incorporated Adaptive observation of behavioral features on a mobile device
CN105723632A (en) * 2013-11-21 2016-06-29 松下电器(美国)知识产权公司 Information communication method
CN105933519A (en) * 2016-04-22 2016-09-07 广东欧珀移动通信有限公司 Screen brightness adjusting method and device and mobile terminal
CN106941378A (en) * 2017-04-17 2017-07-11 胡燕红 A kind of closely data sink and the means of communication
CN106982094A (en) * 2017-04-09 2017-07-25 深圳市先通网信息科技有限公司 Visible light communication method and system
CN107943385A (en) * 2017-11-03 2018-04-20 腾讯科技(深圳)有限公司 Parameter adjusting method and parameter adjustment control
CN103885675B (en) * 2014-02-20 2018-10-12 联想(北京)有限公司 A kind of control method and electronic equipment
CN108848268A (en) * 2018-06-27 2018-11-20 努比亚技术有限公司 Intelligent adjusting method, mobile terminal and the readable storage medium storing program for executing of screen intensity

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130008422A (en) * 2011-07-12 2013-01-22 삼성전자주식회사 Visible light communication method using illuminance sensor and mobile communication terminal therefor
CN102801471A (en) * 2012-07-09 2012-11-28 中国科学院半导体研究所 Visible light communication system and method for portable device
CN104780238A (en) * 2015-03-26 2015-07-15 惠州Tcl移动通信有限公司 Handheld terminal, computer and visible light communication system
CN105898827A (en) * 2016-04-05 2016-08-24 深圳市文鼎创数据科技有限公司 Wireless device connection method, wireless device and intelligent terminal
CN108229450A (en) * 2018-03-07 2018-06-29 北京上古视觉科技有限公司 The method and living creature characteristic recognition system of light filling are carried out based on screen display
CN108833013B (en) * 2018-06-11 2020-02-21 北京科技大学 Visible light transceiving method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661734A (en) * 2009-09-09 2010-03-03 深圳市融创天下科技发展有限公司 Method and system for regulating screen display of camera terminal
US9330257B2 (en) * 2012-08-15 2016-05-03 Qualcomm Incorporated Adaptive observation of behavioral features on a mobile device
CN105723632A (en) * 2013-11-21 2016-06-29 松下电器(美国)知识产权公司 Information communication method
CN103885675B (en) * 2014-02-20 2018-10-12 联想(北京)有限公司 A kind of control method and electronic equipment
CN105933519A (en) * 2016-04-22 2016-09-07 广东欧珀移动通信有限公司 Screen brightness adjusting method and device and mobile terminal
CN106982094A (en) * 2017-04-09 2017-07-25 深圳市先通网信息科技有限公司 Visible light communication method and system
CN106941378A (en) * 2017-04-17 2017-07-11 胡燕红 A kind of closely data sink and the means of communication
CN107943385A (en) * 2017-11-03 2018-04-20 腾讯科技(深圳)有限公司 Parameter adjusting method and parameter adjustment control
CN108848268A (en) * 2018-06-27 2018-11-20 努比亚技术有限公司 Intelligent adjusting method, mobile terminal and the readable storage medium storing program for executing of screen intensity

Also Published As

Publication number Publication date
CN110418003A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN108900231B (en) Dynamic antenna adjustment method and related product
CN110418003B (en) Brightness adjusting method, brightness adjusting device and mobile terminal
WO2021036711A1 (en) Network control method and related product
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
CN108040209B (en) Shooting method and mobile terminal
CN109407948B (en) Interface display method and mobile terminal
CN108322599B (en) Network access method and mobile terminal
CN107635072B (en) Control method of mobile terminal and mobile terminal
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN109086101B (en) Terminal application software starting method, terminal and computer readable storage medium
CN107967418B (en) Face recognition method and mobile terminal
CN111371705B (en) Download task execution method and electronic device
CN107888758B (en) Screen color adjusting method, mobile terminal and computer readable storage medium
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN108810261B (en) Antenna switching method in call and related product
CN106339391B (en) Webpage display method and terminal equipment
CN110100424B (en) Streaming media data processing method and mobile terminal
CN108388459B (en) Message display processing method and mobile terminal
CN108984075B (en) Display mode switching method and device and terminal
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN106454083B (en) Image acquisition method and device of mobile terminal and mobile terminal
CN110851107B (en) Control method of electronic equipment and electronic equipment
CN112351155B (en) Electronic device, anti-candid camera for electronic device and control method thereof
CN110224732B (en) Antenna switching method and terminal equipment
CN111372003A (en) Camera switching method and device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant