CN110418003B - Brightness adjustment method, brightness adjustment device and mobile terminal - Google Patents
Brightness adjustment method, brightness adjustment device and mobile terminal Download PDFInfo
- 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
- brightness level
- visible light
- brightness
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000006854 communication Effects 0.000 claims abstract description 137
- 238000004891 communication Methods 0.000 claims abstract description 127
- 238000004590 computer program Methods 0.000 claims description 29
- 238000001514 detection method Methods 0.000 claims description 15
- 230000001960 triggered effect Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 15
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/116—Visible light communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Environmental & Geological Engineering (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Telephone Function (AREA)
- Optical Communication System (AREA)
Abstract
Description
技术领域technical field
本申请属于移动终端控制技术领域,尤其涉及一种亮度调节方法、亮度调节装置、移动终端及计算机可读存储介质。The present application belongs to the technical field of mobile terminal control, and in particular, relates to a brightness adjustment method, a brightness adjustment device, a mobile terminal and a computer-readable storage medium.
背景技术Background technique
可见光通信(Visible Light Communication,VLC)技术,是利用荧光灯或发光二极管(Light Emitting Diode,LED)等元件发出肉眼看不到的高速明暗闪烁信号来进行数据的传输,具有广泛的开发前景。当前,在移动终端与其它设备进行可见光通信时,移动终端的屏幕所产生的光信号很可能会对可见光信号的发射或接收产生影响,进而影响到移动终端与其它设备的可见光通信过程。Visible Light Communication (VLC) technology uses fluorescent lamps or light-emitting diodes (Light Emitting Diode, LED) and other components to transmit high-speed light and dark flashing signals invisible to the naked eye to transmit data, and has broad development prospects. Currently, when a mobile terminal communicates with other devices in visible light, the light signal generated by the screen of the mobile terminal is likely to affect the transmission or reception of the visible light signal, thereby affecting the visible light communication process between the mobile terminal and other devices.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供了一种亮度调节方法、亮度调节装置、移动终端及计算机可读存储介质,可减少移动终端的屏幕光亮对移动终端与其它设备的可见光通信所产生影响。In view of this, the present application provides a brightness adjustment method, a brightness adjustment device, 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, comprising:
检测移动终端是否接收到可见光通信指令;Detecting whether the mobile terminal has received a visible light communication command;
当上述移动终端接收到上述可见光通信指令时,检测上述移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值;When the above-mentioned mobile terminal receives the above-mentioned visible light communication instruction, detecting whether the brightness level of the screen of the above-mentioned mobile terminal exceeds a preset brightness level threshold;
若上述亮度等级超过预设的亮度等级阈值,则对上述屏幕的亮度等级进行调节,以使得调节后的上述屏幕的亮度等级不超过上述亮度等级阈值;If the above-mentioned brightness level exceeds the preset brightness level threshold, the brightness level of the above-mentioned screen is adjusted, so that the adjusted brightness level of the above-mentioned screen does not exceed the above-mentioned brightness level threshold;
在对上述屏幕的亮度等级进行调节后,基于上述可见光通信指令触发上述移动终端与其它设备进行可见光通信。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.
本申请的第二方面提供了一种亮度调节装置,包括:A second aspect of the present application provides a brightness adjustment device, comprising:
指令检测单元,用于检测移动终端是否接收到可见光通信指令;an instruction detection unit for detecting whether the mobile terminal receives a visible light communication instruction;
亮度检测单元,用于当上述移动终端接收到上述可见光通信指令时,检测上述移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值;a brightness detection unit, 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;
亮度控制单元,用于若上述亮度等级超过预设的亮度等级阈值,则对上述屏幕的亮度等级进行调节,以使得调节后的上述屏幕的亮度等级不超过上述亮度等级阈值;a brightness control unit, 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 is configured to trigger the mobile terminal to perform visible light communication with other devices based on the visible light communication instruction after adjusting the brightness level of the screen.
本申请的第三方面提供了一种移动终端,上述移动终端包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上述第一方面的方法的步骤。A third aspect of the present application provides a mobile terminal. The mobile terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the above-mentioned computer program is implemented. The steps of the method of the first aspect.
本申请的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上述第一方面的方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.
本申请的第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面的方法的步骤。A fifth aspect of the present application provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by one or more processors, implements the steps of the method of the first aspect.
由上可见,在本申请方案中,首先检测移动终端是否接收到可见光通信指令,当上述移动终端接收到上述可见光通信指令时,检测上述移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值,若上述亮度等级超过预设的亮度等级阈值,则对上述屏幕的亮度等级进行调节,以使得调节后的上述屏幕的亮度等级不超过上述亮度等级阈值,在对上述屏幕的亮度等级进行调节后,基于上述可见光通信指令触发上述移动终端与其它设备进行可见光通信。通过本申请方案,在移动终端进行可见光通信之前,先对移动终端的屏幕的亮度等级进行调整,以减少移动终端的屏幕所发出的光亮对该移动终端与其它设备的可见光通信所产生的影响。As can be seen from the above, in the solution of the present application, it is first detected whether the mobile terminal receives the visible light communication command, and when the mobile terminal receives the visible light communication command, it is detected whether the brightness level of the screen of the mobile terminal exceeds the preset brightness level threshold. , if the above-mentioned brightness level exceeds the preset brightness level threshold, then the brightness level of the above-mentioned screen is adjusted so that the adjusted brightness level of the above-mentioned screen does not exceed the above-mentioned brightness level threshold. After adjusting the brightness level of the above-mentioned screen , triggering the mobile terminal to perform visible light communication with other devices based on the visible light communication instruction. According to the solution of the present application, before the mobile terminal performs visible light communication, the brightness level of the screen of the mobile terminal is adjusted to reduce the influence of the light emitted by the screen of the mobile terminal on the visible light communication between the mobile terminal and other devices.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请一实施例提供的一种亮度调节方法所适用于的手机的结构示意图;1 is a schematic structural diagram of a mobile phone to which a brightness adjustment method provided by an embodiment of the present application is applicable;
图2是本申请一实施例提供的第一种亮度调节方法的流程示意图;2 is a schematic flowchart of a first brightness adjustment method provided by an embodiment of the present application;
图3是本申请一实施例提供的第二种亮度调节方法的流程示意图;3 is a schematic flowchart of a second brightness adjustment method provided by an embodiment of the present application;
图4是本申请一实施例提供的亮度调节方法中,屏幕光源的示意图;4 is a schematic diagram of a screen light source in a brightness adjustment method provided by an embodiment of the present application;
图5是本申请一实施例提供的一种亮度调节装置的结构示意图;FIG. 5 is a schematic structural diagram of a brightness adjustment device provided by an embodiment of the present application;
图6是本申请实施例提供的移动终端的结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without 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 is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其它一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其它方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其它方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean 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," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
本申请实施例提供的亮度调节方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、个人数字助理(personal digital assistant,PDA)等移动终端上,本申请实施例对移动终端的具体类型不作任何限制。The brightness adjustment method provided by the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and super mobile personal computers On mobile terminals such as (ultra-mobile personal computer, UMPC), personal digital assistant (personal digital assistant, PDA), the embodiment of the present application does not impose any restrictions on the specific type of the mobile terminal.
以移动终端为手机为例。图1示出的是与本申请实施例提供的手机的部分结构的框图。参考图1,手机包括:射频(Radio Frequency,RF)电路110、存储器120、输入单元130、显示单元140、传感器150、音频电路160、无线保真(wireless fidelity,WiFi)模块170、处理器180、以及电源190等部件。本领域技术人员可以理解,图1中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Take the mobile terminal as a mobile phone as an example. FIG. 1 is a block diagram showing a partial structure of a mobile phone provided by an embodiment of the present application. Referring to FIG. 1 , the mobile phone includes: a radio frequency (RF)
下面结合图1对手机的各个构成部件进行具体的介绍:The following describes the various components of the mobile phone in detail with reference to Figure 1:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路110还可以通过无线通信与网络和其它设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其它易失性固态存储器件。The
输入单元130可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板131以及其它输入设备132。触控面板131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131,输入单元130还可以包括其它输入设备132。具体地,其它输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元140可包括显示面板141,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图1中,触控面板131与显示面板141是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现手机的输入和输出功能。The
手机100还可包括至少一种传感器150,比如光传感器、运动传感器以及其它传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其它传感器,在此不再赘述。The cell phone 100 may also include at least one
音频电路160、扬声器161,传声器162可提供用户与手机之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。The
WiFi属于短距离无线传输技术,手机通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块170,但是可以理解的是,其并不属于手机100的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the
处理器180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;优选地,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The
手机100还包括给各个部件供电的电源190(比如电池),优选地,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the
尽管未示出,手机100还可以包括摄像头。可选地,摄像头在手机100的上的位置可以为前置的,也可以为后置的,本申请实施例对此不作限定。Although not shown, the cell phone 100 may also include a camera. Optionally, the position of the camera on the mobile phone 100 may be front or rear, which is not limited in this embodiment of the present application.
可选地,手机100可以包括单摄像头、双摄像头或三摄像头等,本申请实施例对此不作限定。Optionally, the mobile phone 100 may include a single camera, a dual camera, or a triple camera, etc., which is not limited in this embodiment of the present application.
例如,手机100可以包括三摄像头,其中,一个为主摄像头、一个为广角摄像头、一个为长焦摄像头。For example, the mobile phone 100 may include three cameras, wherein one is a main camera, one is a wide-angle camera, and one is a telephoto camera.
可选地,当手机100包括多个摄像头时,这多个摄像头可以全部前置,或者全部后置,或者一部分前置、另一部分后置,本申请实施例对此不作限定。Optionally, when the mobile phone 100 includes multiple cameras, the multiple cameras may be all front-facing, all rear-facing, or part of the front-facing camera and another part of the rear-facing camera, which is not limited in this embodiment of the present application.
另外,尽管未示出,手机100还可以包括蓝牙模块等,在此不再赘述。In addition, although not shown, the mobile phone 100 may also include a Bluetooth module, etc., which will not be described herein again.
在一种应用场景中,当用户使用移动终端与其它设备进行可见光通信时,如果移动终端的屏幕处于亮屏状态,那么移动终端的屏幕光亮则可能会影响到移动终端在可见光通信过程中所发出或接收到的可见光信号,为了解决该问题,本申请实施例通过在移动终端进行可见光通信之前调节移动终端的屏幕亮度,以避免屏幕过亮而影响到移动终端与其它设备的可见光通信。In an application scenario, when a user uses a mobile terminal to communicate with other devices in visible light, if the screen of the mobile terminal is in a bright screen state, the brightness of the screen of the mobile terminal may affect the light emitted by the mobile terminal during the visible light communication process. Or the received visible light signal, in order to solve this problem, the embodiment of the present application adjusts the screen brightness of the mobile terminal before the mobile terminal performs visible light communication, so as to avoid the screen being too bright and affecting the visible light communication between the mobile terminal and other devices.
具体地,图2示出了本申请实施例提供的第一种亮度调节方法的流程图,该亮度调节方法应用于移动终端,包括:Specifically, FIG. 2 shows a flowchart of a first brightness adjustment method provided by an embodiment of the present application. The brightness adjustment method is applied to a mobile terminal, including:
步骤201,检测移动终端是否接收到可见光通信指令;
在本申请实施例中,用户可以在移动终端启动后,向移动终端输入可见光通信指令,以后续触发移动终端与其它设备的可见光通信。上述其它设备可以是智能手机、平板电脑或智能手表等,此处不作限定。具体地,若需要移动终端向其它设备传输数据,则用户可以在移动终端的屏幕上通过点击选择待传输数据及相应的“可见光发送”虚拟按钮,向移动终端输入可见光通信指令,其中,上述虚拟按钮的名称仅作为示例;或者,若需要移动终端接收其它设备所传输的数据,则用户可以通过对移动终端的指定按键的预设操作,向移动终端输入可见光通信指令,其中,上述指定按键可以是移动终端两个以上已有的物理按键的组合,上述预设操作可以是短按操作或长按操作等,此处不作限定。In this embodiment of the present application, after the mobile terminal is started, the user may input a visible light communication instruction to the mobile terminal to subsequently trigger visible light communication between the mobile terminal and other devices. The above other devices may be smart phones, tablet computers, smart watches, etc., which are not limited here. Specifically, if the mobile terminal needs to transmit data to other devices, the user can input the visible light communication instruction to the mobile terminal by clicking on the screen of the mobile terminal to select the data to be transmitted and the corresponding "visible light transmission" virtual button, wherein the above virtual The name of the button is only an example; or, if the mobile terminal is required to receive data transmitted by other devices, the user can input a visible light communication instruction to the mobile terminal through a preset operation of the designated key of the mobile terminal, wherein the designated key can be It is a combination of two or more existing physical buttons of the mobile terminal. The above-mentioned preset operation may be a short-press operation or a long-press operation, etc., which is not limited here.
可选地,考虑到只有在亮屏状态下,移动终端的屏幕光亮才会影响到移动终端与其它设备进行可见光通信,因而,在上述步骤201之前,上述亮度调节方法还包括:Optionally, considering that only in the bright screen state, the brightness of the screen of the mobile terminal will affect the visible light communication between the mobile terminal and other devices. Therefore, before the
检测上述移动终端的屏幕状态;Detect the screen state of the above-mentioned mobile terminal;
相应地,上述步骤201,包括:Correspondingly, the
若上述移动终端为亮屏状态,则当上述移动终端接收到上述可见光通信指令时,检测上述移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值。If the mobile terminal is in a bright screen state, when the mobile terminal receives the visible light communication instruction, it is detected whether the brightness level of the screen of the mobile terminal exceeds a preset brightness level threshold.
也即是说,只有在移动终端处于亮屏状态时,才基于可见光通信指令对移动终端的屏幕亮度进行调节,而在移动终端处于熄屏状态时,则无需考虑屏幕光亮对可见光通信的影响。具体地,在移动终端处于熄屏状态时,如果移动终端需要进行可见光通信,则可以通过闪光灯发出可见光信号(作为发送端),以及通过后置摄像头接收可见光信号(作为接收端)。That is to say, the screen brightness of the mobile terminal is adjusted based on the visible light communication command only when the mobile terminal is in the bright screen state, and when the mobile terminal is in the screen off 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 a screen-off state, if the mobile terminal needs to perform visible light communication, a visible light signal can be sent through the flash (as the sender), and the visible light signal can be received through the rear camera (as the receiver).
步骤202,当上述移动终端接收到上述可见光通信指令时,检测上述移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值;
在本申请实施例中,一旦移动终端接收到上述可见光通信指令,则即刻对移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值进行检测。上述亮度等级阈值可以是移动终端在出厂时所设定的,也可以是用户所主动设定的,此处不作限定。具体地,考虑到为了减少屏幕的光亮对后续可见光通信的影响,在本申请实施例中,可以将上述亮度等级阈值设定为一较小值,例如,假定移动终端的亮度共有20级,则可以将上述亮度等级阈值设定为5级,该亮度等级阈值仅作为示例。In the embodiment of the present application, once the mobile terminal receives the above-mentioned visible light communication instruction, it immediately detects whether the brightness level of the screen of the mobile terminal exceeds the preset brightness level threshold. The above-mentioned brightness level threshold may be set by the mobile terminal when it leaves the factory, or may be set actively by the user, which is not limited here. Specifically, in order to reduce the influence of the brightness of the screen on the subsequent visible light communication, in this embodiment of the present application, the above-mentioned brightness level threshold may be set to a small value. The above-mentioned brightness level threshold may be set to 5 levels, which is only an example.
步骤203,若上述亮度等级超过预设的亮度等级阈值,则对上述屏幕的亮度等级进行调节;
在本申请实施例中,当检测发现上述亮度等级超过上述预设的亮度等级阈值时,认为移动终端的屏幕过亮,很可能会对后续的可见光通信产生影响,基于此,需要对屏幕的亮度进行调节,具体为降低上述屏幕的亮度等级,以使得调节后的屏幕的亮度等级不超过上述亮度等级阈值。可选地,可以是预先设定一目标亮度等级,则在上述亮度等级超过预设的亮度等级阈值时,可以直接将上述亮度等级调节为目标亮度等级;当然,用户也可以在移动终端自动调节其屏幕的亮度等级后,再手动微调屏幕的亮度等级,并将用户手动微调后所得到的亮度等级更新为新的目标亮度等级。In the embodiment of the present application, when it is detected and found that the above-mentioned brightness level exceeds the above-mentioned preset brightness level threshold, it is considered that the screen of the mobile terminal is too bright, which is likely to have an impact on the subsequent visible light communication. Based on this, it is necessary to adjust the brightness of the screen. The adjustment is specifically performed by reducing the brightness level of the screen, so that the brightness level of the adjusted screen does not exceed the brightness level threshold. Optionally, a target brightness level can be preset, and when the above-mentioned brightness level exceeds the preset brightness level threshold, the above-mentioned brightness level can be directly adjusted to the target brightness level; of course, the user can also automatically adjust the brightness level on the mobile terminal. After the brightness level of the screen is adjusted, the brightness level of the screen is manually fine-tuned, and the brightness level obtained by the user's manual fine-tuning is updated to a new target brightness level.
步骤204,基于上述可见光通信指令触发上述移动终端与其它设备进行可见光通信。
在本申请实施例中,在对上述屏幕的亮度等级进行调节后,才基于上述可见光通信指令触发移动终端与其它设备进行可见光通信,具体地,根据上述可见光通信指令的指示,可以是移动终端作为可见光信号的发送端向其它设备发送数据,也可以是移动终端作为可见光信号的接收端接收其它设备所发送的数据。进一步地,在上述可见光通信开始之前,以及上述可见光通信结束之后,都可以输出相应的语音提醒消息,例如,在上述可见光通信开始之前,移动终端可以语音输出“x秒后通过前置摄像头(或后置摄像头)接收可见光信号”或者“x秒后通过闪光灯(或屏幕的光源区域)发送可见光信号”;在上述可见光通信结束之后,移动终端可以语音输出“本次可见光通信已结束”。In the embodiment of the present application, after the brightness level of the above-mentioned screen is adjusted, the mobile terminal is triggered to perform visible light communication with other devices based on the above-mentioned visible light communication instruction. The sending end of the visible light signal sends data to other devices, or the mobile terminal may serve as the receiving end of the visible light signal to receive data sent by other devices. Further, before the above-mentioned visible light communication starts, and after the above-mentioned visible light communication ends, a corresponding voice reminder message can be output. For example, before the above-mentioned visible light communication starts, the mobile terminal Rear camera) to receive visible light signals” or “send visible light signals through the flash (or the light source area of the screen) after x seconds”; after the above-mentioned visible light communication ends, the mobile terminal can voice output “this visible light communication has ended”.
可选地,当上述亮度等级超过预设的亮度等级阈值时,上述亮度调节方法还包括:Optionally, when the aforementioned brightness level exceeds a preset brightness level threshold, the aforementioned brightness adjustment method further includes:
将上述移动终端当前的亮度等级记录为原始亮度等级;Record the current brightness level of the above-mentioned mobile terminal as the original brightness level;
则在对上述屏幕的亮度等级进行调节后,上述亮度调节方法还包括:Then, after adjusting the brightness level of the above-mentioned screen, the above-mentioned brightness adjustment method further includes:
当上述移动终端结束本次可见光通信时,将上述屏幕的亮度等级恢复为原始亮度等级。When the mobile terminal ends the current visible light communication, the brightness level of the screen is restored to the original brightness level.
在本申请实施例中,为了不影响用户正常使用移动终端,避免用户在移动终端进行可见光通信的前后多次手动调节屏幕的亮度等级,可以在上述亮度等级超过预设的亮度等级阈值时,先在移动终端的缓存区域记录下上述移动终端当前的亮度等级,并将该当前的亮度等级标记为原始亮度等级。一旦后续可见光通信结束,则可以即刻将上述屏幕的亮度等级恢复为原始亮度等级,使得移动终端重新回到被调暗之前的屏幕亮度,方便用户继续正常使用移动终端。In the embodiment of the present application, in order not to affect the normal use of the mobile terminal by the user, and to avoid the user from manually adjusting the brightness level of the screen many times before and after the visible light communication on the mobile terminal, when the above-mentioned brightness level exceeds the preset brightness level threshold, the The current brightness level of the mobile terminal is recorded in the cache area of the mobile terminal, and the current brightness level is marked as the original brightness level. Once the subsequent visible light communication ends, 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, so that the user can continue to use the mobile terminal normally.
由上可见,在本申请实施例中,在移动终端接收到可见光通信指令后,先对移动终端的屏幕的亮度等级进行检测,当移动终端的屏幕过亮时,降低该移动终端的屏幕亮度,随后再基于已接收到的可见光通信指令触发移动终端与其它设备进行可见光通信的操作,以减少移动终端的屏幕所发出的光亮对该移动终端与其它设备的可见光通信所产生的影响。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 first, and when the screen of the mobile terminal is too bright, the screen brightness of the mobile terminal is reduced, Then, based on the received visible light communication command, the mobile terminal and other devices are triggered to perform visible light communication operations, so as to reduce the impact of the light 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 size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
在另一实施例中,根据移动终端在可见光通信过程中所处的通信角色,移动终端可以执行不同的操作,例如,移动终端可以是作为可见光通信的接收端,接收其它设备发送的可见光信号;或者,也可以作为可见光通信的的发送端,向其它设备发送可见光信号。基于此,图3示出了本申请实施例提供的第二种亮度调节方法的流程图,该亮度调节方法应用于移动终端,包括:In another embodiment, according to the communication role of the mobile terminal in the visible light communication process, the mobile terminal may perform different operations, for example, the mobile terminal may be a receiving end of visible light communication, receiving visible light signals sent by other devices; Alternatively, it can also be used as a transmitter of visible light communication to send visible light signals to other devices. Based on this, FIG. 3 shows a flowchart of a second brightness adjustment method provided by an embodiment of the present application. The brightness adjustment method is applied to a mobile terminal, including:
在步骤301中,检测移动终端是否接收到可见光通信指令;In
在步骤302中,当上述移动终端接收到上述可见光通信指令时,检测上述移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值;In
在本申请实施例中,上述步骤301、302分别与上述步骤201、202相同,具体可参阅上述步骤201、202的实现流程,此处不作赘述。In this embodiment of the present application, the
在步骤303中,若上述亮度等级超过预设的亮度等级阈值,则对上述可见光通信指令进行解析,判断上述移动终端在上述可见光通信的过程中的通信角色;In
在本申请实施例中,上述可见光通信指令将会指示移动终端在接下来的可见光通信过程中所扮演的通信角色,上述通信角色包括发送端及接收端。其中,发送端用于向其它设备发送可见光信号,接收端用于接收其它设备发送的可见光信号。In the embodiment of the present application, the above-mentioned visible light communication instruction will indicate the communication role played by the mobile terminal in the next visible light communication process, and the above-mentioned communication role includes a sending end and a receiving end. The sending end is used to send visible light signals to other devices, and the receiving end is used to receive visible light signals sent by other devices.
在步骤304中,若上述移动终端为上述可见光通信的发射端,则基于上述可见光通信指令确定上述发射端的光源;In
在步骤305中,若上述移动终端为上述可见光通信的接收端,则基于上述可见光通信指令确定上述接收端的接收器;In
在本申请实施例中,上述可见光通信指令除了指示通信角色之外,还将指示在接下来的可见光通信过程中,移动终端所启用的部件。例如,在移动终端作为发送端时,可以采用闪光灯作为光源,也可以采用屏幕作为光源,此处不作限定。具体地,为了不影响可见光通信过程中移动终端的正常使用,在采用屏幕作为光源时,往往仅将屏幕的一小部分区域的LED元件作为光源,如图4所示,将屏幕划分为了光源区域及其它区域。而在移动终端作为接收端时,可以采用前置摄像头作为接收器,也可以采用后置摄像头作为接收器。In this embodiment of the present application, the above-mentioned visible light communication instruction not only indicates the communication role, but also indicates the components enabled by the mobile terminal in the next visible light communication process. For example, when the mobile terminal is used as the transmitting end, a flash light may be used as the light source, and a screen may also be used as the light source, which is not limited here. Specifically, in order not to affect the normal use of the mobile terminal during the visible light communication process, when the screen is used as the light source, only the LED elements in a small area of the screen are often used as the light source. As shown in Figure 4, the screen is divided into light source areas and other areas. When the mobile terminal is used as the receiving end, the front camera may be used as the receiver, and the rear camera may also be used as the receiver.
在步骤306中,根据上述光源或上述接收器确定与上述可见光通信相关联的屏幕亮度调节区域;In
具体地,当上述光源为屏幕光源时,可以基于上述光源在屏幕上的位置划定光源区域,其中,上述光源区域仅包括上述光源,随后将上述屏幕上除上述光源区域之外的其它区域确定为屏幕亮度调节区域。也即是说,不对图4中的光源区域进行调节,因为这一区域中包含光源。具体地,在通过光源区域发送可见光信号时,移动终端将会对待传输数据进行预处理,然后进行编码调制,最后驱动该光源区域的LED元件,对其亮度进行调制,将电信号转换为光信号发送出去,实现可见光的发送。也即是说,这一光源区域的亮度是基于可见光通信过程中的待传输数据所决定的。当然,当采用闪光灯作为光源时,其发送可见光信号的过程与上述通过屏幕光源发送可见光信号的过程相类似,此处不再赘述。需要注意的是,在上述光源区域向外发送可见光信号的过程中,上述屏幕亮度调节区域将保持正常工作,例如,若移动终端原本在播放视频,则在启动可见光通信后,上述光源区域基于待传输数据向外发送可见光,该光源区域的亮度基于待传输数据而动态变化;而上述屏幕亮度调节区域则继续保持正常视频播放,只是视频播放时的亮度被降低,且上述屏幕亮度调节区域的亮度等级在用户未进行手动微调的情况下保持不变。也即,可见光通信的过程中,不会改变上述屏幕亮度调节区域的显示内容。Specifically, when the above-mentioned light source is a screen light source, a light source area may be defined based on the position of the above-mentioned light source on the screen, wherein the above-mentioned light source area only includes the above-mentioned light source, and then other areas on the above-mentioned screen except the above-mentioned light source area are determined. Adjust area for screen brightness. That is, no adjustment is made to the light source area in Figure 4, since this area contains the light source. Specifically, when sending a visible light signal through the light source area, the mobile terminal will preprocess the data to be transmitted, then perform code modulation, and finally drive the LED element in the light source area to modulate its brightness, and convert the electrical signal into an optical signal Send out to realize the transmission of visible light. That is to say, the brightness of this light source area is determined based on the data to be transmitted in the visible light communication process. Of course, when a flashlight is used as the light source, the process of sending the visible light signal is similar to the above-mentioned process of sending the visible light signal through the screen light source, which will not be repeated here. It should be noted that during the process of the above-mentioned light source area sending visible light signals to the outside, the above-mentioned screen brightness adjustment area will keep working normally. The transmission data sends visible light to the outside, and the brightness of the light source area changes dynamically based on the data to be transmitted; the above-mentioned screen brightness adjustment area continues to maintain normal video playback, but the brightness during video playback is reduced, and the above-mentioned screen brightness adjustment area The brightness of the area The rating remains unchanged without manual fine-tuning by the user. That is, in the process of visible light communication, the display content of the above-mentioned screen brightness adjustment area will not be changed.
具体地,当上述接收端为前置摄像头时,考虑到屏幕与前置摄像头处于移动终端的同一侧,因而移动终端的屏幕光亮仍可能对该前置摄像头的可见光信号的接收存在一定干扰,基于此,可以将上述屏幕的所有区域确定为屏幕亮度调节区域,也即,对上述屏幕的整体进行亮度等级的调节。Specifically, when the receiving end is a front-facing camera, considering that the screen and the front-facing camera are on the same side of the mobile terminal, the brightness of the screen of the mobile terminal may still interfere with the reception of the visible light signal of the front-facing camera. Therefore, all areas of the above-mentioned screen can be determined as the screen brightness adjustment area, that is, the brightness level of the whole of the above-mentioned screen can be adjusted.
具体地,当上述移动终端为发送端,且上述光源为闪光灯时,或者,当上述移动终端为接收端,且上述接收端为后置摄像头时,由于上述闪光灯与后置摄像头均不与屏幕处于移动终端的同一侧,因而,屏幕光亮对上述闪光灯及后置摄像头的影响较小,此时,可以不对上述屏幕的亮度等级进行调节。Specifically, when the mobile terminal is the transmitting end and the light source is the flash, or, when the mobile terminal is the receiving end, and the receiving end is the rear camera, the flash and the rear camera are not in contact with the screen. On the same side of the mobile terminal, therefore, the impact of the brightness of the screen on the above-mentioned flash and the rear camera is small, and at this time, the brightness level of the above-mentioned screen may not be adjusted.
在步骤307中,对上述屏幕亮度调节区域的亮度等级进行调节;In
在步骤308中,基于上述可见光通信指令触发上述移动终端与其它设备进行可见光通信。In
在本申请实施例中,上述步骤307、308分别与上述步骤203、204相似,具体可参阅上述步骤203、204的实现流程,此处不作赘述。In this embodiment of the present application, the foregoing
由上可见,在本申请实施例中,在移动终端接收到可见光通信指令后,先对移动终端的屏幕的亮度等级进行检测,当移动终端的屏幕过亮时,基于移动终端在后续可见光通信过程中所扮演的通信角色及所启用的部件,确定对应的屏幕亮度调节区域,并降低该屏幕亮度调节区域的亮度,随后再基于已接收到的可见光通信指令触发移动终端与其它设备进行可见光通信的操作,以减少移动终端的屏幕所发出的光亮对该移动终端与其它设备的可见光通信所产生的影响。It can be seen from the above that 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 first. It determines the corresponding screen brightness adjustment area and reduces the brightness of the screen brightness adjustment area, and then triggers the mobile terminal to perform visible light communication with other devices based on the received visible light communication command. The operation is performed to reduce the influence of the light 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 size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
对应于上文实施例的亮度调节方法,图5示出了本申请实施例提供的一种亮度调节装置的结构框图,该亮度调节装置应用于移动终端,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the brightness adjustment method of the above embodiment, FIG. 5 shows a structural block diagram of a brightness adjustment apparatus provided by an embodiment of the present application, and the brightness adjustment apparatus is applied to a mobile terminal. Apply for the relevant part of the example.
参照图5,该亮度调节装置5包括:指令检测单元501,亮度检测单元502,亮度控制单元503及通信触发单元504。5 , the
其中,上述指令检测单元501,用于检测移动终端是否接收到可见光通信指令;Wherein, the above-mentioned
上述亮度检测单元502,用于当上述移动终端接收到上述可见光通信指令时,检测上述移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值;The above-mentioned
上述亮度控制单元503,用于若上述亮度等级超过预设的亮度等级阈值,则对上述屏幕的亮度等级进行调节,以使得调节后的上述屏幕的亮度等级不超过上述亮度等级阈值;The above-mentioned
上述通信触发单元504,用于在对上述屏幕的亮度等级进行调节后,基于上述可见光通信指令触发上述移动终端与其它设备进行可见光通信。The
可选地,上述亮度调节装置5还包括:Optionally, the above-mentioned
状态检测单元,用于在上述指令检测单元501检测上述移动终端是否接收到可见光通信指令之前,检测上述移动终端的屏幕状态;a state detection unit, configured to detect the screen state of the above-mentioned mobile terminal before the above-mentioned
相应地,上述指令检测单元501,具体用于若上述移动终端为亮屏状态,则当上述移动终端接收到上述可见光通信指令时,检测上述移动终端的屏幕的亮度等级是否超过预设的亮度等级阈值。Correspondingly, the above-mentioned
可选地,上述亮度控制单元503包括:Optionally, the above-mentioned
角色判断子单元,用于对上述可见光通信指令进行解析,判断上述移动终端在上述可见光通信的过程中的通信角色;a role judgment subunit, configured to parse the above-mentioned visible light communication instruction, and judge the communication role of the above-mentioned mobile terminal in the above-mentioned visible light communication process;
光源确定子单元,用于若上述移动终端为上述可见光通信的发射端,则基于上述可见光通信指令确定上述发射端的光源;a light source determination subunit, configured to determine the light source of the above-mentioned transmitting end based on the above-mentioned visible light communication instruction if the above-mentioned mobile terminal is the transmitting end of the above-mentioned visible light communication;
接收器确定子单元,用于若上述移动终端为上述可见光通信的接收端,则基于上述可见光通信指令确定上述接收端的接收器;a receiver determining subunit, configured to determine the receiver of the receiving end based on the visible light communication instruction if the mobile terminal is the receiving end of the visible light communication;
屏幕亮度调节区域确定子单元,用于根据上述光源或上述接收器确定与上述可见光通信相关联的屏幕亮度调节区域;a screen brightness adjustment area determination subunit, configured to determine a screen brightness adjustment area associated with the above-mentioned visible light communication according to the above-mentioned light source or the above-mentioned receiver;
亮度调节子单元,用于对上述屏幕亮度调节区域的亮度等级进行调节。The brightness adjustment subunit is used to adjust the brightness level of the above-mentioned screen brightness adjustment area.
可选地,上述屏幕亮度调节区域确定子单元,具体用于当上述移动终端为上述可见光通信的发射端,且上述光源为屏幕光源时,基于上述光源在屏幕上的位置划定光源区域,其中,上述光源区域仅包括上述光源;将上述屏幕上除上述光源区域之外的区域确定为屏幕亮度调节区域。Optionally, the above-mentioned screen brightness adjustment area determination subunit is specifically configured to, when the above-mentioned mobile terminal is the transmitting end of the above-mentioned visible light communication, and the above-mentioned light source is a screen light source, demarcate the light source area based on the position of the above-mentioned light source on the screen, wherein , the above-mentioned light source area only includes the above-mentioned light source; the area on the above-mentioned screen other than the above-mentioned light source area is determined as the screen brightness adjustment area.
可选地,上述屏幕亮度调节区域确定子单元,具体还用于当上述移动终端为上述可见光通信的接收端,且上述接收端为前置摄像头时,将上述屏幕的所有区域确定为屏幕亮度调节区域。Optionally, the above-mentioned screen brightness adjustment area determination subunit is specifically also used to determine all areas of the above-mentioned screen as the screen brightness adjustment when the above-mentioned mobile terminal is the receiving end of the above-mentioned visible light communication, and the above-mentioned receiving end is a front camera. area.
可选地,上述亮度控制单元503还用于当上述光源为闪光灯,或者,当上述接收端为后置摄像头时,不对上述屏幕的亮度等级进行调节。Optionally, the above-mentioned
可选地,上述亮度调节装置5还包括:Optionally, the above-mentioned
记录单元,用于当上述亮度等级超过预设的亮度等级阈值时,将上述移动终端当前的亮度等级记录为原始亮度等级;a recording unit, configured to record the current brightness level of the mobile terminal as the original brightness level when the brightness level exceeds a preset brightness level threshold;
恢复单元,用于在对上述屏幕的亮度等级进行调节后,当上述移动终端结束本次可见光通信时,将上述屏幕的亮度等级恢复为原始亮度等级。The restoring unit is configured to restore the brightness level of the screen to the original brightness level when the mobile terminal ends the current visible light communication after adjusting the brightness level of the screen.
由上可见,在本申请实施例中,在移动终端接收到可见光通信指令后,亮度调节装置先对移动终端的屏幕的亮度等级进行检测,当移动终端的屏幕过亮时,降低该移动终端的屏幕亮度,随后再基于已接收到的可见光通信指令触发移动终端与其它设备进行可见光通信的操作,以减少移动终端的屏幕所发出的光亮对该移动终端与其它设备的可见光通信所产生的影响。It can be seen from the above that in the embodiment of the present application, after the mobile terminal receives the visible light communication instruction, the brightness adjustment device first detects the brightness level of the screen of the mobile terminal, and when the screen of the mobile terminal is too bright, lowers the brightness level of the mobile terminal. The brightness of the screen is then triggered based on the received visible light communication command to trigger the operation of visible light communication between the mobile terminal and other devices, so as to reduce the impact of the light emitted by the screen of the mobile terminal on the visible light communication between the mobile terminal and other devices.
需要说明的是,上述装置中各单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the units in the above-mentioned device are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It will not be repeated here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将上述装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional units is used for illustration. The internal structure of the above device is divided into different functional units to complete all or part of the functions described above. Each functional unit in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may be implemented in the form of hardware. , can also be implemented in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working process of the units in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
图6为本申请一实施例提供的移动终端的结构示意图。如图6所示,该实施例的移动终端6包括:至少一个处理器60(图6中仅示出一个)处理器、存储器61以及存储在上述存储器61中并可在上述至少一个处理器60上运行的计算机程序62,上述处理器60执行上述计算机程序62时实现上述任意各个亮度调节方法实施例中的步骤。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
上述移动终端6可以是智能手机、平板电脑、智能手表等。该移动终端可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图6仅仅是移动终端6的举例,并不构成对移动终端6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。The above-mentioned
所称处理器60可以是中央处理单元(Central Processing Unit,CPU),该处理器60还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called
上述存储器61在一些实施例中可以是上述移动终端6的内部存储单元,例如移动终端6的硬盘或内存。上述存储器61在另一些实施例中也可以是上述移动终端6的外部存储设备,例如上述移动终端6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,上述存储器61还可以既包括上述移动终端6的内部存储单元也包括外部存储设备。上述存储器61用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其它程序等,例如上述计算机程序的程序代码等。上述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。The above-mentioned
本申请实施例还提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。The embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/移动终端的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, which can be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program is in When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/mobile terminal, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory ( RAM, RandomAccess Memory), electrical carrier signals, telecommunication signals, and software distribution media. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are only illustrative. For example, the division of the above modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or Components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that the above-mentioned embodiments can still be used for The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in this document. within the scope of protection of the application.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910695729.8A CN110418003B (en) | 2019-07-30 | 2019-07-30 | Brightness adjustment method, brightness adjustment 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 adjustment method, brightness adjustment 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 adjustment method, brightness adjustment device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110418003B (en) |
Families Citing this family (4)
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 |
CN115360786B (en) * | 2022-08-19 | 2024-07-12 | 乐思灯具(上海)有限公司 | Wireless charging control method and system for lamp and computer equipment |
Citations (9)
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)
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 | 北京科技大学 | Method and system for transmitting and receiving visible light |
-
2019
- 2019-07-30 CN CN201910695729.8A patent/CN110418003B/en active Active
Patent Citations (9)
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 |
---|---|---|
CN107451542B (en) | Iris recognition module arrangement structure and mobile terminal | |
CN110418003B (en) | Brightness adjustment method, brightness adjustment device and mobile terminal | |
US12089284B2 (en) | Method for network control and related products | |
CN107731146A (en) | Brightness adjusting method and related product | |
CN107635069B (en) | UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal | |
CN109150221B (en) | Master-slave switching method for wearable equipment and related product | |
CN107888768B (en) | Unlocking control method, terminal and computer readable storage medium | |
CN108595000A (en) | screen brightness adjusting method and device | |
CN108881778B (en) | A wearable device-based video output method and wearable device | |
CN111371705B (en) | Download task execution method and electronic device | |
CN107888758B (en) | Screen color adjusting method, mobile terminal and computer readable storage medium | |
CN107678989A (en) | UART and USB multiplexing circuit and mobile terminal | |
CN103068016B (en) | The method of mobile terminal and reduction power consumption thereof | |
CN108833683A (en) | Dynamic antenna adjusts implementation method and Related product | |
CN110100424B (en) | Method for processing streaming media data and mobile terminal | |
CN110796438B (en) | Message sending method and mobile terminal | |
US10853092B2 (en) | Method and device for sound effect processing | |
CN106851806A (en) | A transmission power control method and mobile terminal | |
CN109068000B (en) | Sensor control method, mobile terminal, and computer-readable storage medium | |
CN112351155A (en) | Electronic device, anti-candid camera for electronic device and control method thereof | |
CN106453909A (en) | A power adjustment method and mobile terminal | |
CN107704287B (en) | Installation-free method for program application, mobile terminal and computer-readable storage medium | |
CN111314900B (en) | Wireless connection method, wireless connection device and mobile terminal | |
CN108984075B (en) | Display mode switching method and device and terminal | |
CN108810261A (en) | Antenna switching method in call and related product |
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 |