[go: up one dir, main page]

CN115022997B - Brightness adjustment method and electronic device - Google Patents

Brightness adjustment method and electronic device Download PDF

Info

Publication number
CN115022997B
CN115022997B CN202111187303.5A CN202111187303A CN115022997B CN 115022997 B CN115022997 B CN 115022997B CN 202111187303 A CN202111187303 A CN 202111187303A CN 115022997 B CN115022997 B CN 115022997B
Authority
CN
China
Prior art keywords
brightness
ambient light
adjustment
emitting device
controller
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
CN202111187303.5A
Other languages
Chinese (zh)
Other versions
CN115022997A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111187303.5A priority Critical patent/CN115022997B/en
Priority to CN202310776973.3A priority patent/CN116981125A/en
Publication of CN115022997A publication Critical patent/CN115022997A/en
Application granted granted Critical
Publication of CN115022997B publication Critical patent/CN115022997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • H05B45/12Controlling the intensity of the light using optical feedback
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • H05B47/195Controlling the light source by remote control via wireless transmission the transmission using visible or infrared light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Optical Communication System (AREA)

Abstract

The application provides a brightness adjusting method and electronic equipment, which can reduce the capability requirement on a controller while automatically adjusting the brightness of a light-emitting device, thereby reducing the cost of brightness adjustment. The method is applied to a first electronic device comprising a processor and an ambient light sensor and a second electronic device comprising a controller and a light emitting device, the method comprising: the ambient light sensor acquires the ambient light brightness; the ambient light sensor sends the ambient light level to the processor; the processor sends first information to the controller based on the current ambient light brightness, wherein the first information is used for adjusting the brightness of the light emitting device by the controller; the controller receives the first information and adjusts the brightness of the light emitting device based on the first information.

Description

亮度调节方法和电子设备Brightness adjustment method and electronic device

技术领域technical field

本申请涉及终端领域,尤其涉及一种亮度调节方法和电子设备。The present application relates to the field of terminals, and in particular to a brightness adjustment method and electronic equipment.

背景技术Background technique

为提高用户体验,开发商推出了多功能的电子设备,例如可以发光的键盘,即键盘中设有发光器件,可以使得键盘按键或者面板发光,从而保证用户在夜晚不开灯的情况下也能清楚地看到按键字母。In order to improve user experience, developers have introduced multi-functional electronic devices, such as luminous keyboards, that is, there are light-emitting devices in the keyboards, which can make the keys or panels of the keyboards glow, so as to ensure that users can use them without turning on the lights at night. Clearly see the key letters.

为了适应周围环境,提高用户体验,这种键盘的发光器件的亮度是可以调节的,用户可以通过应用手动对上述发光器件的亮度进行调节,或者,键盘中的控制器(例如嵌入式控制器(embed controller,EC)可以通过环境光传感器获取当前的环境光数据,基于该当前环境光数据自动控制上述发光器件的亮度,以实现对键盘的亮度的自动调节。In order to adapt to the surrounding environment and improve user experience, the brightness of the light-emitting device of this keyboard can be adjusted, and the user can manually adjust the brightness of the above-mentioned light-emitting device through the application, or the controller in the keyboard (such as an embedded controller ( The embed controller (EC) can acquire current ambient light data through the ambient light sensor, and automatically control the brightness of the above-mentioned light-emitting device based on the current ambient light data, so as to realize automatic adjustment of the brightness of the keyboard.

目前的自动调节方法不但需要控制器获取的环境光数据,还需要控制器对获取的环境光数据进行分析计算,对控制器的能力要求较高,导致亮度的调节成本较高。The current automatic adjustment method not only requires the ambient light data acquired by the controller, but also requires the controller to analyze and calculate the acquired ambient light data, which requires high capability of the controller, resulting in high brightness adjustment costs.

发明内容Contents of the invention

本申请提供一种亮度的调节方法,能够在对发光器件的亮度进行自动调节的同时,降低对控制器的能力要求,从而降低亮度调节的成本。The present application provides a method for adjusting brightness, which can automatically adjust the brightness of a light-emitting device and at the same time reduce the requirement on the capability of a controller, thereby reducing the cost of brightness adjustment.

第一方面,提供了一种亮度调节方法,应用于包括处理器和环境光传感器的第一电子设备以及包括控制器和发光器件的第二电子设备,该方法包括:环境光传感器获取环境光亮度;环境光传感器向处理器发送环境光亮度;处理器基于该环境光亮度,向上述控制器发送第一信息,该第一信息用于控制器调节发光器件的亮度;该控制器接收第一信息,并基于该第一信息调节发光器件的亮度。In a first aspect, a brightness adjustment method is provided, which is applied to a first electronic device including a processor and an ambient light sensor and a second electronic device including a controller and a light emitting device, and the method includes: the ambient light sensor acquires ambient light brightness The ambient light sensor sends the ambient light brightness to the processor; the processor sends the first information to the above-mentioned controller based on the ambient light brightness, and the first information is used for the controller to adjust the brightness of the light-emitting device; the controller receives the first information , and adjust the brightness of the light emitting device based on the first information.

在本申请中,处理器可以通过环境光传感器获得环境光亮度,并向控制器发送上述第一信息。控制器可以基于该第一信息调节发光器件的亮度。由于环境光亮度由处理器获取,控制器无需与环境光传感器连接,所以本申请对控制器的管脚数量要求较低,即本申请能够在对发光器件的光亮度进行自动调节的同时,降低对控制器的能力要求,从而降低发光器件亮度调节的成本。In this application, the processor may obtain ambient light brightness through an ambient light sensor, and send the above-mentioned first information to the controller. The controller may adjust the brightness of the light emitting device based on the first information. Since the brightness of the ambient light is obtained by the processor, the controller does not need to be connected to the ambient light sensor, so this application has lower requirements on the number of pins of the controller, that is, the application can automatically adjust the brightness of the light-emitting device while reducing the Capability requirements for the controller, thereby reducing the cost of brightness adjustment of the light emitting device.

结合第一方面,在第一方面的某些实现方式中,上述第一信息为第一调节指令,上述第一调节指令携带与上述环境光亮度所处的环境光亮度范围对应的目标亮度;上述方法还包括:处理器基于亮度调节策略,判断上述环境光亮度所处的环境光亮度范围是否与上述发光器件的亮度匹配,该亮度调节策略包括上述发光器件亮度的至少两个档位和与所述至少两个档位对应的环境光亮度范围;上述向控制器发送第一信息,包括:在上述当前环境光亮度所处的环境光亮度范围与上述发光器件的亮度不匹配的情况下,处理器向控制器发送上述第一调节指令;控制器接收上述第一信息,并基于上述第一信息调节发光器件的亮度,包括:控制器接收第一调节指令,并按照所述目标亮度调节上述发光器件的亮度。With reference to the first aspect, in some implementations of the first aspect, the above-mentioned first information is a first adjustment instruction, and the above-mentioned first adjustment instruction carries a target brightness corresponding to the ambient light brightness range in which the above-mentioned ambient light brightness is located; the above-mentioned The method further includes: the processor judges whether the ambient light brightness range in which the ambient light brightness is located matches the brightness of the light emitting device based on a brightness adjustment strategy, the brightness adjustment strategy includes at least two gears of the brightness of the light emitting device and the brightness of the light emitting device. The range of ambient light brightness corresponding to the at least two gears; the sending of the first information to the controller includes: when the ambient light brightness range of the current ambient light brightness does not match the brightness of the light emitting device, processing The controller sends the above-mentioned first adjustment instruction to the controller; the controller receives the above-mentioned first information, and adjusts the brightness of the light-emitting device based on the above-mentioned first information, including: the controller receives the first adjustment instruction, and adjusts the above-mentioned light emitting device according to the target brightness device brightness.

在本申请实施例中,处理器可以通过环境光传感器获得当前环境光亮度,并基于该环境光亮度,确定上述目标亮度,并向控制器发送携带有目标亮度的第一信息。控制器可以基于该第一信息将发光器件的亮度调节为上述目标亮度。换句话说,本申请中的第一信息是由处理器通过分析计算确定的,即控制器可以不作分析计算,只需要执行将发光器件的亮度调节为上述目标亮度的动作。所以本申请对控制器的逻辑计算能力没有求,且由于环境光传感器不需要与控制器连接,所以本申请对控制器的管脚数量也没有要求,即在控制器逻辑计算能力较弱,管脚数量较少的情况下,本申请依然可以实现对发光器件亮度的自动调节,有效降低了成本。In the embodiment of the present application, the processor may obtain the current ambient light brightness through the ambient light sensor, determine the target brightness based on the ambient light brightness, and send the first information carrying the target brightness to the controller. The controller may adjust the brightness of the light emitting device to the above-mentioned target brightness based on the first information. In other words, the first information in this application is determined by the processor through analysis and calculation, that is, the controller does not need to perform analysis and calculation, but only needs to perform the action of adjusting the brightness of the light emitting device to the above-mentioned target brightness. Therefore, this application does not require the logical computing capability of the controller, and since the ambient light sensor does not need to be connected to the controller, this application does not require the number of pins of the controller. In the case of a small number of pins, the present application can still realize the automatic adjustment of the brightness of the light-emitting device, which effectively reduces the cost.

结合第一方面,在第一方面的某些实现方式中,上述第一信息包括上述环境光亮度和亮度调节策略,上述亮度调节策略包括所述发光器件亮度的至少两个档位和与上述至少两个档位对应的环境光亮度范围;上述方法还包括:控制器基于亮度调节策略,判断上述环境光亮度所处的环境光亮度范围是否与上述发光器件的亮度匹配;在上述环境光亮度所处的环境光亮度范围与上述发光器件的亮度不匹配的情况下,控制器按照目标亮度调节上述发光器件的亮度,该目标亮度为与上述环境光亮度所处的环境光亮度范围对应的发光器件的亮度。With reference to the first aspect, in some implementation manners of the first aspect, the above-mentioned first information includes the above-mentioned ambient light brightness and the brightness adjustment strategy, and the above-mentioned brightness adjustment strategy includes at least two gears of the brightness of the light-emitting device and the above-mentioned at least The ambient light brightness range corresponding to the two gears; the above method also includes: the controller judges whether the ambient light brightness range of the above ambient light brightness matches the brightness of the above light emitting device based on the brightness adjustment strategy; If the ambient light brightness range at the location does not match the brightness of the above-mentioned light-emitting device, the controller adjusts the brightness of the above-mentioned light-emitting device according to the target brightness. brightness.

结合第一方面,在第一方面的某些实现方式中,上述基于第一信息调节上述发光器件的亮度,包括:控制器确定调节阶数和调节时间,该调节阶数表示上述发光器件的亮度在调节前后所经历的调节次数,该调节时间表示每连续两阶调节过程所需的时间;上述控制器按照上述调节阶数和上述调节时间,调节上述发光器件的亮度。With reference to the first aspect, in some implementation manners of the first aspect, the adjusting the brightness of the light-emitting device based on the first information includes: the controller determines the adjustment order and the adjustment time, and the adjustment order represents the brightness of the light-emitting device The number of adjustments experienced before and after adjustment, the adjustment time represents the time required for each continuous two-stage adjustment process; the controller adjusts the brightness of the light-emitting device according to the adjustment steps and the adjustment time.

在本申请实施例中,控制器可以按照该调节阶数和该调节时间,调节发光器件的亮度。避免在黑暗环境下,发光器件的亮度突变,出现刺眼等问题,保证用户体验。In the embodiment of the present application, the controller may adjust the brightness of the light emitting device according to the adjustment steps and the adjustment time. Avoid problems such as sudden changes in the brightness of light-emitting devices and glare in dark environments to ensure user experience.

结合第一方面,在第一方面的某些实现方式中,上述第一电子设备与上述第二电子设备无线连接,该第二电子设备为上述第一电子设备的输入设备;上述向控制器发送第一信息,包括:处理器通过通信模块向控制器发送上述第一信息,该通信模块支持USB或管理规范WMI技术。With reference to the first aspect, in some implementation manners of the first aspect, the above-mentioned first electronic device is wirelessly connected to the above-mentioned second electronic device, and the second electronic device is an input device of the above-mentioned first electronic device; the above-mentioned sending to the controller The first information includes: the processor sends the first information to the controller through a communication module, and the communication module supports USB or management specification WMI technology.

结合第一方面,在第一方面的某些实现方式中,上述第一电子设备与上述第二电子设备无线连接,上述第二电子设备为上述第一电子设备的输入设备;上述向所述控制器发送第一信息,包括:处理器通过通信模块向上述控制器发送所述第一信息,该通信模块支持蓝牙技术、WI-FI技术或红外通技术中的任一种。With reference to the first aspect, in some implementation manners of the first aspect, the above-mentioned first electronic device is wirelessly connected to the above-mentioned second electronic device, and the above-mentioned second electronic device is an input device of the above-mentioned first electronic device; The controller sending the first information includes: the processor sends the first information to the above-mentioned controller through a communication module, and the communication module supports any one of Bluetooth technology, WI-FI technology or infrared communication technology.

结合第一方面,在第一方面的某些实现方式中,在上述向控制器发送第一信息之前,上述方法还包括:处理器确定发光器件的当前亮度的调节方式,上述调节方式包括手动调节方式和自动调节方式;上述向控制器发送第一信息,包括:在上述发光器件的当前亮度的调节方式为自动调节方式的情况下,处理器向上述控制器发送第一信息。With reference to the first aspect, in some implementation manners of the first aspect, before sending the first information to the controller, the above method further includes: the processor determines the adjustment mode of the current brightness of the light emitting device, and the adjustment mode includes manual adjustment mode and automatic adjustment mode; the above-mentioned sending the first information to the controller includes: when the current brightness adjustment mode of the above-mentioned light-emitting device is an automatic adjustment mode, the processor sends the first information to the above-mentioned controller.

结合第一方面,在第一方面的某些实现方式中,上述方法还包括:若上述控制器在第一时间段内未检测到用户对上述第二电子设备的操作指令,关闭上述发光器件。With reference to the first aspect, in some implementation manners of the first aspect, the method further includes: if the controller detects no user operation instruction on the second electronic device within a first time period, turning off the light emitting device.

在本申请实施例中,在控制器基于该第一信息调节上述发光器件的亮度之后,若在一段时间内用户未对第二电子设备做任何操作,则可以认为用户当前停止使用第一电子设备,或者当前处于不需要使用第二电子设备的场景,所以未避免发光器件一直开启产生不必要的功耗,此时控制器可以选择关闭发光器件,降低第一电子设备或第二电子设备的功耗。In the embodiment of the present application, after the controller adjusts the brightness of the light-emitting device based on the first information, if the user does not perform any operation on the second electronic device for a period of time, it can be considered that the user stops using the first electronic device. , or it is currently in a scene where the second electronic device is not needed, so the unnecessary power consumption caused by the light-emitting device being turned on all the time is not avoided. At this time, the controller can choose to turn off the light-emitting device to reduce the power of the first electronic device or the second electronic device. consumption.

结合第一方面,在第一方面的某些实现方式中,上述方法还包括:控制器检测到用户对上述第二电子设备的操作指令;响应于上述用户对上述第二电子设备的操作指令,恢复上述发光器件的亮度。With reference to the first aspect, in some implementations of the first aspect, the method further includes: the controller detects a user's operation instruction on the second electronic device; in response to the user's operation instruction on the second electronic device, The brightness of the above-mentioned light-emitting device is restored.

在本申请实施例中,在控制器关闭发光器件之后,为保证用户下一次使用第二电子设备的体验,控制器一旦检测到用户对第二电子设备的操作,就可以将发光器件的亮度恢复为该发光器件关闭前的状态,保证用户对第二电子设备的使用,以提高用户体验。In the embodiment of the present application, after the controller turns off the light-emitting device, in order to ensure the user's experience of using the second electronic device next time, once the controller detects the user's operation on the second electronic device, the brightness of the light-emitting device can be restored. The state before the light-emitting device is turned off ensures that the user can use the second electronic device, so as to improve user experience.

结合第一方面,在第一方面的某些实现方式中,上述环境光亮度为上述第一电子设备初次开机或者重启后所对应的环境光亮度。With reference to the first aspect, in some implementation manners of the first aspect, the ambient light brightness is the corresponding ambient light brightness after the first electronic device is turned on or restarted for the first time.

第二方面,提供了一种电子设备,包括处理器、控制器、环境光传感器和发光器件,其中,上述环境光传感器用于:获取环境光亮度;以及,向上述处理器发送上述环境光亮度;上述处理器用于:基于上述环境光亮度,向上述控制器发送第一信息,该第一信息用于上述控制器调节上述发光器件的亮度;上述控制器用于:响应于接收上述第一信息,基于上述第一信息调节上述发光器件的亮度。In a second aspect, an electronic device is provided, including a processor, a controller, an ambient light sensor, and a light emitting device, wherein the above-mentioned ambient light sensor is used to: obtain the ambient light brightness; and send the above-mentioned ambient light brightness to the above-mentioned processor The above-mentioned processor is used to: send first information to the above-mentioned controller based on the above-mentioned ambient light brightness, and the first information is used for the above-mentioned controller to adjust the brightness of the above-mentioned light-emitting device; the above-mentioned controller is used to: respond to receiving the above-mentioned first information, Adjusting the brightness of the above-mentioned light-emitting device based on the above-mentioned first information.

结合第二方面,在第二方面的某种实现方式中,上述第一信息为第一调节指令,上述第一调节指令携带与上述环境光亮度所处的环境光亮度范围对应的目标亮度;上述处理器用于:基于亮度调节策略,判断上述环境光亮度所处的环境光亮度范围是否与上述发光器件的当前亮度匹配,该亮度调节策略包括上述发光器件亮度的至少两个档位和与上述至少两个档位对应的环境光亮度范围;以及,在上述环境光亮度所处的环境光亮度范围与上述发光器件亮度不匹配的情况下,向上述控制器发送上述第一调节指令;上述控制器用于:接收上述第一调节指令,并按照上述目标亮度调节上述发光器件的亮度。With reference to the second aspect, in a certain implementation manner of the second aspect, the above-mentioned first information is a first adjustment instruction, and the above-mentioned first adjustment instruction carries a target brightness corresponding to the ambient light brightness range in which the above-mentioned ambient light brightness is located; the above-mentioned The processor is configured to: judge whether the ambient light brightness range of the ambient light brightness matches the current brightness of the light emitting device based on a brightness adjustment strategy, the brightness adjustment strategy includes at least two levels of brightness of the light emitting device and at least The ambient light brightness range corresponding to the two gears; and, in the case that the ambient light brightness range of the above ambient light brightness does not match the brightness of the above light emitting device, send the above first adjustment instruction to the above controller; the above controller uses In: receiving the above-mentioned first adjustment instruction, and adjusting the brightness of the above-mentioned light-emitting device according to the above-mentioned target brightness.

结合第二方面,在第二方面的某种实现方式中,上述第一信息包括上述环境光亮度和亮度调节策略,上述亮度调节策略包括上述发光器件亮度的至少两个档位和与上述至少两个档位对应的环境光亮度范围;上述控制器用于:基于上述亮度调节策略,判断上述环境光亮度所处的环境光亮度范围是否与上述发光器件的当前亮度匹配;以及,在上述环境光亮度所处的环境光亮度范围与上述发光器件的当前亮度不匹配的情况下,按照目标亮度调节上述发光器件的亮度,该目标亮度为与上述环境光亮度所处的环境光亮度范围对应的上述发光器件的亮度。With reference to the second aspect, in a certain implementation manner of the second aspect, the above-mentioned first information includes the above-mentioned ambient light brightness and a brightness adjustment strategy, and the above-mentioned brightness adjustment strategy includes at least two levels of brightness of the above-mentioned light-emitting device and the above-mentioned at least two The ambient light brightness range corresponding to each gear position; the controller is used to: based on the brightness adjustment strategy, determine whether the ambient light brightness range where the above ambient light brightness is located matches the current brightness of the light emitting device; and, in the above ambient light brightness When the ambient light brightness range does not match the current brightness of the above-mentioned light-emitting device, adjust the brightness of the above-mentioned light-emitting device according to the target brightness. device brightness.

结合第二方面,在第二方面的某种实现方式中,上述控制器用于:确定调节阶数和调节时间,该调节阶数表示上述发光器件的亮度在调节前后所经历的调节次数,该调节时间表示每连续两阶调节过程所需的时间;以及,按照上述调节阶数和上述调节时间,调节上述发光器件的亮度。With reference to the second aspect, in a certain implementation manner of the second aspect, the above-mentioned controller is used to: determine the adjustment order and the adjustment time, the adjustment order represents the number of adjustments experienced by the brightness of the light-emitting device before and after adjustment, and the adjustment The time represents the time required for every two consecutive adjustment processes; and, the brightness of the above-mentioned light-emitting device is adjusted according to the above-mentioned adjustment steps and the above-mentioned adjustment time.

结合第二方面,在第二方面的某种实现方式中,上述处理器用于:确定上述发光器件的当前亮度的调节方式,上述调节方式包括手动调节方式和自动调节方式;以及,在上述发光器件的当前亮度的调节方式为自动调节方式的情况下,向上述控制器发送上述第一信息。With reference to the second aspect, in a certain implementation manner of the second aspect, the above-mentioned processor is configured to: determine an adjustment mode of the current brightness of the above-mentioned light-emitting device, and the above-mentioned adjustment mode includes a manual adjustment mode and an automatic adjustment mode; and, in the above-mentioned light-emitting device In a case where the current brightness adjustment mode of the user is an automatic adjustment mode, the above-mentioned first information is sent to the above-mentioned controller.

结合第二方面,在第二方面的某种实现方式中,上述控制器用于:若在第一时间段内未检测到用户对上述第二电子设备的操作指令,关闭上述发光器件。With reference to the second aspect, in a certain implementation manner of the second aspect, the above-mentioned controller is configured to: turn off the above-mentioned light-emitting device if no user operation instruction on the above-mentioned second electronic device is detected within a first time period.

结合第二方面,在第二方面的某种实现方式中,上述控制器用于:检测到用户对上述第二电子设备的操作指令;以及,响应于该用户对上述第二电子设备的操作指令,恢复上述发光器件的亮度。With reference to the second aspect, in a certain implementation manner of the second aspect, the above-mentioned controller is configured to: detect a user's operation instruction on the above-mentioned second electronic device; and, in response to the user's operation instruction on the above-mentioned second electronic device, The brightness of the above-mentioned light-emitting device is restored.

结合第二方面,在第二方面的某种实现方式中,上述环境光亮度为上述第一电子设备初次开机或者重启后所对应的环境光亮度。With reference to the second aspect, in a certain implementation manner of the second aspect, the ambient light brightness is the corresponding ambient light brightness after the first electronic device is turned on or restarted for the first time.

结合第二方面,在第二方面的某种实现方式中,上述处理器用于:通过通信模块向上述控制器发送所述第一信息,该通信模块支持USB技术或管理规范WMI技术。With reference to the second aspect, in a certain implementation manner of the second aspect, the processor is configured to: send the first information to the controller through a communication module, where the communication module supports USB technology or management specification WMI technology.

第三方面,提供了一种电子设备,包括处理器和环境光传感器,所述电子设备与第二电子设备通过有线或无线的方式连接,所述第二电子设备包括控制器和发光器件,其中,上述环境光传感器用于:获取环境光亮度;以及,向上述处理器发送上述环境光亮度;上述处理器用于:基于上述环境光亮度,向控制器发送第一信息,该第一信息用于上述控制器调节发光器件的亮度。In a third aspect, an electronic device is provided, including a processor and an ambient light sensor, the electronic device is connected to a second electronic device in a wired or wireless manner, and the second electronic device includes a controller and a light emitting device, wherein , the ambient light sensor is used to: obtain ambient light brightness; and send the ambient light brightness to the processor; the processor is configured to: send first information to the controller based on the ambient light brightness, the first information is used for The above controller adjusts the brightness of the light emitting device.

结合第三方面,在第三方面的某种实现方式中,上述第一信息为第一调节指令,上述第一调节指令携带与上述环境光亮度所处的环境光亮度范围对应的目标亮度;上述处理器用于:基于亮度调节策略,判断上述环境光亮度所处的环境光亮度范围是否与上述发光器件的当前亮度匹配,在亮度调节策略包括上述发光器件亮度的至少两个档位和与上述至少两个档位对应的环境光亮度范围;以及,在上述环境光亮度所处的环境光亮度范围与上述发光器件亮度不匹配的情况下,向上述控制器发送上述第一调节指令。With reference to the third aspect, in a certain implementation manner of the third aspect, the above-mentioned first information is a first adjustment instruction, and the above-mentioned first adjustment instruction carries a target brightness corresponding to the ambient light brightness range in which the above-mentioned ambient light brightness is located; the above-mentioned The processor is configured to: judge whether the ambient light brightness range of the ambient light brightness matches the current brightness of the light emitting device based on the brightness adjustment strategy, where the brightness adjustment strategy includes at least two gears of the brightness of the light emitting device and at least The ambient light brightness range corresponding to the two gears; and, in the case that the ambient light brightness range where the ambient light brightness is located does not match the brightness of the light emitting device, sending the first adjustment instruction to the controller.

结合第三方面,在第三方面的某种实现方式中,上述处理器用于:确定上述发光器件的当前亮度的调节方式,该调节方式包括手动调节方式和自动调节方式;With reference to the third aspect, in a certain implementation manner of the third aspect, the processor is configured to: determine an adjustment mode of the current brightness of the light emitting device, and the adjustment mode includes a manual adjustment mode and an automatic adjustment mode;

结合第三方面,在第三方面的某种实现方式中,上述环境光亮度为上述电子设备初次开机或者重启后所对应的环境光亮度。With reference to the third aspect, in a certain implementation manner of the third aspect, the ambient light brightness is the corresponding ambient light brightness after the electronic device is powered on for the first time or restarted.

结合第三方面,在第三方面的某种实现方式中,上述处理器用于:通过通信模块向上述控制器发送上述第一信息,该通信模块支持USB技术或管理规范WMI技术。With reference to the third aspect, in a certain implementation manner of the third aspect, the processor is configured to: send the first information to the controller through a communication module, where the communication module supports USB technology or management specification WMI technology.

结合第三方面,在第三方面的某种实现方式中,上述处理器用于:通过通信模块向所述控制器发送所述第一信息,该通信模块支持蓝牙技术、WI-FI技术或红外通技术中的任一种。With reference to the third aspect, in a certain implementation manner of the third aspect, the above-mentioned processor is configured to: send the first information to the controller through a communication module, and the communication module supports Bluetooth technology, WI-FI technology or infrared communication any of the techniques.

第四方面,提供了一种亮度调节系统,包括:第一电子设备和第二电子设备,该第一电子设备包括处理器和环境光传感器,该第二电子设备包括控制器和发光器件,其中,上述环境光传感器用于:获取环境光亮度;以及,向上述处理器发送上述环境光亮度;上述处理器用于:基于上述环境光亮度,向上述控制器发送第一信息,该第一信息用于上述控制器调节所述发光器件的亮度;上述控制器用于:响应于接收上述第一信息,基于上述第一信息调节上述发光器件的亮度。In a fourth aspect, a brightness adjustment system is provided, including: a first electronic device and a second electronic device, the first electronic device includes a processor and an ambient light sensor, the second electronic device includes a controller and a light emitting device, wherein , the above-mentioned ambient light sensor is used for: obtaining the ambient light brightness; and, sending the above-mentioned ambient light brightness to the above-mentioned processor; the above-mentioned processor is used for: based on the above-mentioned ambient light brightness, sending first information to the above-mentioned controller, and the first information is used The controller adjusts the brightness of the light emitting device; the controller is configured to: adjust the brightness of the light emitting device based on the first information in response to receiving the first information.

结合第四方面,在第四方面的某种实现方式中,上述第一信息为第一调节指令,上述第一调节指令携带与上述环境光亮度所处的环境光亮度范围对应的目标亮度;上述处理器用于:基于亮度调节策略,判断上述环境光亮度所处的环境光亮度范围是否与上述发光器件的当前亮度匹配,上述亮度调节策略包括上述发光器件亮度的至少两个档位和与上述至少两个档位对应的环境光亮度范围;以及,在上述环境光亮度所处的环境光亮度范围与上述发光器件亮度不匹配的情况下,向上述控制器发送上述第一调节指令;上述控制器用于:接收上述第一调节指令,并按照上述目标亮度调节上述发光器件的亮度。With reference to the fourth aspect, in a certain implementation manner of the fourth aspect, the above-mentioned first information is a first adjustment instruction, and the above-mentioned first adjustment instruction carries a target brightness corresponding to the ambient light brightness range in which the above-mentioned ambient light brightness is located; the above-mentioned The processor is configured to: judge whether the ambient light brightness range in which the ambient light brightness is located matches the current brightness of the light emitting device based on a brightness adjustment strategy. The brightness adjustment strategy includes at least two levels of brightness of the light emitting device and at least The ambient light brightness range corresponding to the two gears; and, in the case that the ambient light brightness range of the above ambient light brightness does not match the brightness of the above light emitting device, send the above first adjustment instruction to the above controller; the above controller uses In: receiving the above-mentioned first adjustment instruction, and adjusting the brightness of the above-mentioned light-emitting device according to the above-mentioned target brightness.

结合第四方面,在第四方面的某种实现方式中,上述第一信息包括上述环境光亮度和亮度调节策略,上述亮度调节策略包括上述发光器件亮度的至少两个档位和与上述至少两个档位对应的环境光亮度范围;上述控制器用于:基于上述亮度调节策略,判断上述环境光亮度所处的环境光亮度范围是否与上述发光器件的当前亮度匹配;以及,在上述环境光亮度所处的环境光亮度范围与上述发光器件的当前亮度不匹配的情况下,按照目标亮度调节上述发光器件的亮度,上述目标亮度为与上述环境光亮度所处的环境光亮度范围对应的所述发光器件的亮度。With reference to the fourth aspect, in a certain implementation manner of the fourth aspect, the above-mentioned first information includes the above-mentioned ambient light brightness and a brightness adjustment strategy, and the above-mentioned brightness adjustment strategy includes at least two gears of the brightness of the above-mentioned light-emitting device and the above-mentioned at least two levels of brightness. The ambient light brightness range corresponding to each gear position; the controller is used to: based on the brightness adjustment strategy, determine whether the ambient light brightness range where the above ambient light brightness is located matches the current brightness of the light emitting device; and, in the above ambient light brightness When the ambient light brightness range does not match the current brightness of the above-mentioned light-emitting device, adjust the brightness of the above-mentioned light-emitting device according to the target brightness. The brightness of the light emitting device.

结合第四方面,在第四方面的某种实现方式中,上述控制器用于:确定调节阶数和调节时间,上述调节阶数表示上述发光器件的亮度在调节前后所经历的调节次数,上述调节时间表示每连续两阶调节过程所需的时间;以及,按照上述调节阶数和上述调节时间,调节上述发光器件的亮度。With reference to the fourth aspect, in a certain implementation manner of the fourth aspect, the above-mentioned controller is used to: determine the adjustment order and the adjustment time, the above-mentioned adjustment order represents the number of adjustments experienced by the brightness of the above-mentioned light-emitting device before and after adjustment, and the above-mentioned adjustment The time represents the time required for every two consecutive adjustment processes; and, the brightness of the above-mentioned light-emitting device is adjusted according to the above-mentioned adjustment steps and the above-mentioned adjustment time.

结合第四方面,在第四方面的某种实现方式中,上述处理器用于:确定上述发光器件的当前亮度的调节方式,上述调节方式包括手动调节方式和自动调节方式;以及,在上述发光器件的当前亮度的调节方式为自动调节方式的情况下,向上述控制器发送上述第一信息。With reference to the fourth aspect, in a certain implementation manner of the fourth aspect, the above-mentioned processor is configured to: determine an adjustment mode of the current brightness of the above-mentioned light-emitting device, and the above-mentioned adjustment mode includes a manual adjustment mode and an automatic adjustment mode; and, in the above-mentioned light-emitting device In a case where the current brightness adjustment mode of the user is an automatic adjustment mode, the above-mentioned first information is sent to the above-mentioned controller.

结合第四方面,在第四方面的某种实现方式中,上述控制器用于:在第一时间段内未检测到用户对所述第二电子设备的操作指令,关闭上述发光器件。With reference to the fourth aspect, in a certain implementation manner of the fourth aspect, the above-mentioned controller is configured to: turn off the above-mentioned light-emitting device if no user operation instruction on the second electronic device is detected within a first time period.

结合第四方面,在第四方面的某种实现方式中,上述控制器用于:检测到用户对上述第二电子设备的操作指令;以及,响应于上述用户对上述第二电子设备的操作指令,恢复上述发光器件的亮度。With reference to the fourth aspect, in a certain implementation manner of the fourth aspect, the controller is configured to: detect a user's operation instruction on the second electronic device; and, in response to the user's operation instruction on the second electronic device, The brightness of the above-mentioned light-emitting device is restored.

结合第四方面,在第四方面的某种实现方式中,上述环境光亮度为上述第一电子设备初次开机或者重启后所对应的环境光亮度。With reference to the fourth aspect, in a certain implementation manner of the fourth aspect, the ambient light brightness is the corresponding ambient light brightness after the first electronic device is turned on or restarted for the first time.

结合第四方面,在第四方面的某种实现方式中,上述处理器用于:通过通信模块向上述控制器发送上述第一信息,上述通信模块支持蓝牙技术、WI-FI技术或红外通技术中的任一种。With reference to the fourth aspect, in a certain implementation manner of the fourth aspect, the above-mentioned processor is configured to: send the above-mentioned first information to the above-mentioned controller through a communication module, and the above-mentioned communication module supports Bluetooth technology, WI-FI technology or infrared communication technology. of any kind.

第五方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面中任一种可能实现方式中处理器对应的步骤。In a fifth aspect, a computer program product is provided, and the computer program product includes: a computer program (also referred to as code, or an instruction), which, when the computer program is executed, causes the computer to perform any one of the above-mentioned first aspects. The steps corresponding to the processor in the possible implementation modes.

第六方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序(也可以称为代码,或指令),当其在计算机上运行时,使得计算机执行上述第一方面中任一种可能实现方式中处理器对应的步骤。According to the sixth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program (also referred to as code, or instruction), and when it is run on a computer, it causes the computer to perform the above-mentioned first aspect. Steps corresponding to the processor in any one of the possible implementation manners.

附图说明Description of drawings

图1为本申请实施例适用的一种场景示意图;FIG. 1 is a schematic diagram of a scene applicable to an embodiment of the present application;

图2为本申请实施例适用的另一种场景示意图;FIG. 2 is a schematic diagram of another scenario applicable to the embodiment of the present application;

图3是本申请实施例提供键盘的示意图;Fig. 3 is a schematic diagram of a keyboard provided by an embodiment of the present application;

图4是本申请实施例提供的键盘中按键的一种结构的示意图;Fig. 4 is a schematic diagram of a structure of keys in a keyboard provided by an embodiment of the present application;

图5是本申请实施例提供的键盘的一种电路连接结构的示意图;Fig. 5 is a schematic diagram of a circuit connection structure of a keyboard provided by an embodiment of the present application;

图6是本申请实施例提供的第一电子设备和键盘一体设置的示意图;Fig. 6 is a schematic diagram of an integrated arrangement of a first electronic device and a keyboard provided by an embodiment of the present application;

图7是本申请实施例提供的第一电子设备和键盘分体设置的连接示意图;Fig. 7 is a schematic diagram of the connection between the first electronic device and the separate arrangement of the keyboard provided by the embodiment of the present application;

图8是本申请实施例提供的亮度调节方法的示意性流程图;FIG. 8 is a schematic flowchart of a brightness adjustment method provided by an embodiment of the present application;

图9是本申请实施例提供的第一电子设备的一种软件结构的示意性框图;Fig. 9 is a schematic block diagram of a software structure of the first electronic device provided by the embodiment of the present application;

图10是本申请实施例提供的又一亮度调节方法的示意性流程图。Fig. 10 is a schematic flow chart of another brightness adjustment method provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.

为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect, and do not Its sequence is limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

需要说明的是,本申请中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplarily" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a concrete manner.

此外,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b和c中的至少一项(个),可以表示:a,或b,或c,或a和b,或a和c,或b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。In addition, "at least one" means one or more, and "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (one) of a, b and c may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b, c can be single or multiple.

图1为本申请实施例适用的一种场景示意图。参照图1,该场景中包括第一电子设备100,图1中以第一电子设备100为笔记本电脑为例进行说明。第一电子设备100包括:显示屏101和第二电子设备102,图1中以第二电子设备102为键盘为例进行说明,第二电子设备102与第一电子设备100一体设置,第一电子设备100和第二电子设备102可以通过有线通信网络进行互联。FIG. 1 is a schematic diagram of a scene applicable to an embodiment of the present application. Referring to FIG. 1 , the scene includes a first electronic device 100 , and in FIG. 1 , the first electronic device 100 is a notebook computer as an example for illustration. The first electronic device 100 includes: a display screen 101 and a second electronic device 102. In FIG. The device 100 and the second electronic device 102 may be interconnected through a wired communication network.

图2为本申请实施例适用的另一种场景示意图。参照图2,该场景中包括第一电子设备100和第二电子设备102,同上,图2中以第一电子设备100为笔记本电脑,第二电子设备102为键盘为例进行说明。第一电子设备100和第二电子设备102分体设置,第一电子设备100和第二电子设备102可以通过无线通信网络进行互联。该通信网络可以但不限于为:WI-FI热点网络、WI-FI点对点(peer-to-peer,P2P)网络、蓝牙网络、红外或近场通信(nearfield communication,NFC)网络等近距离通信网络。FIG. 2 is a schematic diagram of another scenario applicable to this embodiment of the present application. Referring to FIG. 2 , the scene includes a first electronic device 100 and a second electronic device 102 , as above, in FIG. 2 , the first electronic device 100 is a notebook computer, and the second electronic device 102 is a keyboard as an example for illustration. The first electronic device 100 and the second electronic device 102 are arranged separately, and the first electronic device 100 and the second electronic device 102 may be interconnected through a wireless communication network. The communication network can be, but not limited to: WI-FI hotspot network, WI-FI point-to-point (peer-to-peer, P2P) network, Bluetooth network, infrared or near field communication (nearfield communication, NFC) network and other short-distance communication networks .

在本申请实施例中,第一电子设备100可以但不限于为:平板电脑、笔记本电脑等可以采用键盘作为输入的电子设备。可选地,第一电子设备100还可以为个人数字处理(personal digital assistant,PDA)、计算设备、虚拟现实(virtual reality,VR)终端设备、无人机设备、增强现实(augmented reality,AR)终端设备等。本申请实施例中对第一电子设备100的形态不做限定。In the embodiment of the present application, the first electronic device 100 may be, but not limited to, an electronic device that can use a keyboard as an input, such as a tablet computer or a notebook computer. Optionally, the first electronic device 100 may also be a personal digital assistant (PDA), a computing device, a virtual reality (virtual reality, VR) terminal device, a drone device, an augmented reality (augmented reality, AR) terminal equipment, etc. The form of the first electronic device 100 is not limited in the embodiment of the present application.

在本申请实施例中,第二电子设备102可以但不限于为:键盘、鼠标等可以发光的电子设备,本申请实施例对此不作限定。In the embodiment of the present application, the second electronic device 102 may be, but not limited to, an electronic device that can emit light, such as a keyboard and a mouse, which is not limited in the embodiment of the present application.

下述结合图3,以图1和图2中的第二电子设备102为键盘为例进行说明。图3为键盘102的俯视图,参照图3,键盘102可以包括:按键区域1021和键盘框架1022。按键区域1021包括多个按键10211,用户通过按压按键10211,可以实现第一电子设备100的输入。键盘框架1022用于实现按键区域的分区和承载。应理解,图3中所有按键的加和为按键区域。在一种实施例中,键盘102还可以包括触控区域(图3中未示出),用户可以通过触摸触控区域,实现终端设备的输入。在一种实施例中,键盘102还可以包括指示灯区域(图3中未示出),本申请实施例对键盘102不做限制。The following description will be made with reference to FIG. 3 , taking the second electronic device 102 in FIG. 1 and FIG. 2 as a keyboard as an example. FIG. 3 is a top view of the keyboard 102 . Referring to FIG. 3 , the keyboard 102 may include: a key area 1021 and a keyboard frame 1022 . The button area 1021 includes a plurality of buttons 10211 , by pressing the buttons 10211 , the user can realize the input of the first electronic device 100 . The keyboard frame 1022 is used for partitioning and carrying key areas. It should be understood that the sum of all keys in FIG. 3 is the key area. In an embodiment, the keyboard 102 may further include a touch area (not shown in FIG. 3 ), and the user may touch the touch area to realize input of the terminal device. In an embodiment, the keyboard 102 may further include an indicator light area (not shown in FIG. 3 ), and the embodiment of the present application does not limit the keyboard 102 .

图4为本申请实施例提供的键盘中按键的一种结构示意图。参照图4,按键10211可以包括:键盘帽10、剪刀脚20、剪刀脚承载台30、硅胶按键40、导电膜50和底板60。本申请实施例对按键10211中各部件的设置方式和设置位置不做赘述,可以参照目前按键10211的结构。键盘帽10用于承受用户的按压,剪刀脚20用于支撑和回弹键盘帽10。剪刀脚承载台30用于承载剪刀脚20,剪刀脚20可以在剪刀脚承载台30上沿着水平方向滑动。底板60通常为金属材质的卡钩设计,用于固定按键10211。在一种实施例中,键盘帽10的外沿可以与剪刀脚承载台30、导电膜50和底板60的外沿对齐。FIG. 4 is a schematic structural diagram of a key in a keyboard provided by an embodiment of the present application. Referring to FIG. 4 , the button 10211 may include: a keyboard cap 10 , scissors 20 , a scissors stand 30 , a silicone button 40 , a conductive film 50 and a bottom plate 60 . In the embodiment of the present application, the setting method and setting position of each component in the button 10211 will not be described in detail, and the structure of the current button 10211 can be referred to. The keyboard cap 10 is used to bear the pressure of the user, and the scissor feet 20 are used to support and rebound the keyboard cap 10 . The scissor foot support platform 30 is used for carrying the scissor foot 20 , and the scissor foot 20 can slide along the horizontal direction on the scissor foot support platform 30 . The bottom plate 60 is generally designed as a hook made of metal for fixing the button 10211 . In one embodiment, the outer edges of the keyboard cap 10 can be aligned with the outer edges of the scissors stand 30 , the conductive film 50 and the bottom plate 60 .

在一种实施例中,导电膜50具有三层结构,包括第一层、第二层和第三层,图4中未示出。第一层远离底板60设置,第三层靠近底板60设置,第二层位于第一层和第三层的中间。硅胶按键40设置在第一层上,第一层对应硅胶按键40的设置位置处设置有导电银粉,硅胶按键40在第三层的垂直投影位置处也设有导电银粉,第二层为间隔层。第二层用于在用户未按压键盘帽10时,防止第一层和第二层连通。当用户按压键盘帽10时,键盘帽10朝向底板60的方向运动,可以带动剪刀脚20在剪刀脚承载台30上沿着水平方向滑动,也可以带动硅胶按键40朝向底板60的方向运动。在硅胶按键40运动的作用下,第二层被挤压至硅胶按键40与导电膜50的接触点的外围,使得导电膜50中的第一层和第三层连通,形成导电通路,该导电通路的形成用于指示用户按压按键10211。在一种实施例中,键盘102中每个按键10211对应的底板60为一体设置,导电膜50也可以为一体设置。应理解,当用户松开按键10211后,在剪刀脚的弹力作用下,第一层和第三层因为第二层的隔断而分离。In one embodiment, the conductive film 50 has a three-layer structure, including a first layer, a second layer and a third layer, not shown in FIG. 4 . The first layer is disposed away from the base plate 60, the third layer is disposed close to the base plate 60, and the second layer is located in the middle of the first layer and the third layer. The silicone button 40 is arranged on the first layer, and the first layer is provided with conductive silver powder at the position corresponding to the silicone button 40, and the silicone button 40 is also provided with conductive silver powder at the vertical projection position of the third layer, and the second layer is a spacer layer. . The second layer is used to prevent the communication between the first layer and the second layer when the user does not press the keyboard cap 10 . When the user presses the keyboard cap 10 , the keyboard cap 10 moves toward the bottom plate 60 , which can drive the scissor feet 20 to slide horizontally on the scissor foot support platform 30 , and can also drive the silicone button 40 to move toward the bottom plate 60 . Under the action of the movement of the silicone button 40, the second layer is squeezed to the periphery of the contact point between the silicone button 40 and the conductive film 50, so that the first layer and the third layer in the conductive film 50 are connected to form a conductive path. The path is formed to instruct the user to press the key 10211. In one embodiment, the bottom plate 60 corresponding to each key 10211 in the keyboard 102 is integrally arranged, and the conductive film 50 may also be integrally arranged. It should be understood that when the user releases the button 10211, under the elastic force of the scissors feet, the first layer and the third layer are separated due to the partition of the second layer.

基于上述的键盘102的结构,用户可以用过键盘102向第一电子设备100输入文字、数字、字母等内容。Based on the above structure of the keyboard 102 , the user can use the keyboard 102 to input text, numbers, letters and other content into the first electronic device 100 .

为了提高用户体验,键盘102中设有发光器件和控制器,控制器可以控制发光器件进行导通或断开或者亮度强弱的变化,使得键盘按键或者面板显示不同亮度,从而保证键盘102的亮度与环境亮度匹配。上述控制器例如可以为嵌入式控制器(embed controller,EC),上述发光器件可以包括但不限于发光二极管(light emitting diode,LED)、有机发光二极管(organic light emitting diode,OLED)、量子点发光二极管(quantum dot lightemitting diodes,QLED)等,下述实施例中以发光器件为LED为例进行说明。In order to improve the user experience, the keyboard 102 is provided with a light-emitting device and a controller, and the controller can control the light-emitting device to be turned on or off or to change the intensity of brightness, so that the keys of the keyboard or the panel display different brightness, thereby ensuring the brightness of the keyboard 102 Match the ambient brightness. The aforementioned controller may be, for example, an embedded controller (embed controller, EC), and the aforementioned light emitting device may include but not limited to light emitting diode (light emitting diode, LED), organic light emitting diode (organic light emitting diode, OLED), quantum dot light emitting Diodes (quantum dot light emitting diodes, QLED), etc., in the following embodiments, the light emitting device is an LED as an example for illustration.

为了适应周围环境,上述键盘102的LED的亮度是可以调节的,用户可以通过应用手动对键盘的LED亮度进行调节,或者,控制器可以通过环境光传感器获取的环境光数据,基于该环境光数据自动控制键盘的LED亮度,以实现对键盘的LED亮度的自动调节。In order to adapt to the surrounding environment, the brightness of the LED of the above-mentioned keyboard 102 can be adjusted, and the user can manually adjust the brightness of the LED of the keyboard through the application, or the controller can use the ambient light data obtained by the ambient light sensor, based on the ambient light data Automatically control the LED brightness of the keyboard to realize the automatic adjustment of the LED brightness of the keyboard.

对于用户对键盘的LED亮度手动调节的方式,用户可以按压上述图3所示的按键区域中的至少一个按键,控制器检测到用户的按压操作,响应于该按压操作,控制LED导通、断开或者亮度强弱。For the way that the user manually adjusts the LED brightness of the keyboard, the user can press at least one button in the button area shown in Figure 3 above, and the controller detects the user's pressing operation, and controls the LED to be turned on and off in response to the pressing operation. On or brightness level.

对于键盘的LED亮度的自动调节的方式,需要借助环境光传感器来实现,下面对键盘的LED的亮度的自动调节的方式进行详细介绍。The automatic adjustment method of the LED brightness of the keyboard needs to be realized by means of an ambient light sensor, and the automatic adjustment method of the LED brightness of the keyboard is introduced in detail below.

在一种实现方式中,键盘102中除了LED1024和控制器1021之外,还设置有环境光传感器1022。图5为键盘102的一种电路连接结构示意图。参照图5,键盘102可以包括:控制器1021、环境光传感器1022、存储器1023、LED1024和电源1025。其中,控制器1021与环境光传感器1022和LED1024连接,通过环境光传感器1022获取环境光数据,进而根据环境光数据对键盘102的LED1024亮度进行调节。存储1023器用于存储LED1024亮度的调节参数、LED1024亮度的调节策略等内容,还可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。电源1025为键盘102及其各元件(如控制器1021、存储器1023、LED1024等)进行供电。In one implementation manner, besides the LED 1024 and the controller 1021 , an ambient light sensor 1022 is also provided in the keyboard 102 . FIG. 5 is a schematic diagram of a circuit connection structure of the keyboard 102 . Referring to FIG. 5 , the keyboard 102 may include: a controller 1021 , an ambient light sensor 1022 , a memory 1023 , an LED 1024 and a power supply 1025 . Wherein, the controller 1021 is connected with the ambient light sensor 1022 and the LED 1024 , acquires ambient light data through the ambient light sensor 1022 , and then adjusts the brightness of the LED 1024 of the keyboard 102 according to the ambient light data. The memory 1023 is used for storing the adjustment parameters of the LED 1024 brightness, the adjustment strategy of the LED 1024 brightness, etc., and can also be used for storing one or more computer programs, and the one or more computer programs include instructions. The power supply 1025 provides power for the keyboard 102 and its components (such as the controller 1021, memory 1023, LED 1024, etc.).

上述方式需要控制器1021对获取的环境光数据进行分析计算,且由于控制器1021需要和环境光传感器1022连接,所以对控制器1021的管脚数量和能力都要求较高,导致键盘的LED1024亮度的调节成本较高。The above method requires the controller 1021 to analyze and calculate the acquired ambient light data, and since the controller 1021 needs to be connected with the ambient light sensor 1022, the number and capability of the pins of the controller 1021 are required to be relatively high, resulting in the brightness of the LED 1024 of the keyboard The adjustment cost is higher.

在一种实施例中,若键盘102与第一电子设备100一体设置,本申请将其统称为第一电子设备100,此时,第一电子设备100还可以包括:通信模块1003。键盘102可以通过通信模块1003与第一电子设备100实现通信,例如进行环境光数据的传输。该通信模块1003可以但不限于为:管理规范(windows management instrumentation,WMI)模块等。图6为与图1对应的第一电子设备和第二电子设备一体设置的结构示意图。参照图6,第一电子设备100包括:键盘102、环境光传感器1001、处理器1002和通信模块1003,其中,处理器1001通过总线与环境光传感器1001连接。键盘102中包括:存储器1023、电源1025、LED1024以及控制器1021。In one embodiment, if the keyboard 102 is integrated with the first electronic device 100 , this application will collectively refer to them as the first electronic device 100 , at this time, the first electronic device 100 may further include: a communication module 1003 . The keyboard 102 can communicate with the first electronic device 100 through the communication module 1003, for example, transmit ambient light data. The communication module 1003 may be, but not limited to, a management specification (windows management instrumentation, WMI) module and the like. FIG. 6 is a schematic structural diagram corresponding to FIG. 1 in which the first electronic device and the second electronic device are integrated. Referring to FIG. 6 , the first electronic device 100 includes: a keyboard 102 , an ambient light sensor 1001 , a processor 1002 and a communication module 1003 , wherein the processor 1001 is connected to the ambient light sensor 1001 through a bus. The keyboard 102 includes: a memory 1023 , a power supply 1025 , an LED 1024 and a controller 1021 .

在另一种实施例中,若键盘102与第一电子设备100分体设置,则键盘102还可以包括:第一通信模块1026,第一电子设备100还可以包括:第二通信模块1004。键盘102可以通过第一通信模块1026和第二通信模块1004与第一电子设备100实现通信,例如进行环境光数据的传输。在本实施例中,第一通信模块1026和第二通信模块1004可以支持的技术包括但不限于为:支持蓝牙技术、支持WI-FI技术或支持红外技术等。图7为与图2对应的第一电子设备100和第二电子设备102分体设置的连接结构示意图。参照图7,键盘102包括控制器1021、LED1024、第一通信模块1026、存储器1023和电源1025,其中,控制器1021与第一通信模块1026连接,用于控制第一通信模块1026和第二通信模块1004进行通信。第一电子设备100包括:环境光传感器1001、处理器1002和第二通信模块1004,其中,处理器1002通过总线与环境光传感器1001连接,处理器1002还与第二通信模块1004连接。In another embodiment, if the keyboard 102 is set separately from the first electronic device 100 , the keyboard 102 may further include: a first communication module 1026 , and the first electronic device 100 may further include: a second communication module 1004 . The keyboard 102 can communicate with the first electronic device 100 through the first communication module 1026 and the second communication module 1004, for example, transmit ambient light data. In this embodiment, the technologies supported by the first communication module 1026 and the second communication module 1004 include but are not limited to: support for Bluetooth technology, support for WI-FI technology, or support for infrared technology. FIG. 7 is a schematic diagram of a connection structure corresponding to FIG. 2 in which the first electronic device 100 and the second electronic device 102 are arranged separately. Referring to Fig. 7, keyboard 102 comprises controller 1021, LED1024, first communication module 1026, memory 1023 and power supply 1025, wherein, controller 1021 is connected with first communication module 1026, is used to control first communication module 1026 and second communication module Module 1004 communicates. The first electronic device 100 includes: an ambient light sensor 1001 , a processor 1002 and a second communication module 1004 , wherein the processor 1002 is connected to the ambient light sensor 1001 through a bus, and the processor 1002 is also connected to the second communication module 1004 .

在上述图5至图7所示的存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flashstorage,UFS)等。控制器用于控制LED导通、断开或者亮度强弱,以实现键盘LED亮度的调节。控制器可以通过运行存储在存储器的指令,从而对键盘的LED亮度进行调节。在一种实施例中,控制器可以但不限于为芯片、处理器或微控制单元(micro controller unit,MCU)、嵌入式控制器(embed controller,EC)等。The memories shown in FIGS. 5 to 7 above may include high-speed random access memories, and may also include non-volatile memories, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The controller is used to control the LED on, off or the intensity of brightness, so as to realize the adjustment of keyboard LED brightness. The controller can adjust the brightness of the LEDs of the keyboard by running instructions stored in the memory. In an embodiment, the controller may be, but not limited to, a chip, a processor, a micro controller unit (micro controller unit, MCU), an embedded controller (embed controller, EC) and the like.

图8为本申请实施例提供的一种亮度调节方法800的流程示意图。图8可以应用于上述图1或图2所示的场景中,具体可以对应图6或图7所示的电路连接结构,除此之外还可以适用于其他应用场景,本申请对此不作限定。参照图8,方法800可以包括:FIG. 8 is a schematic flowchart of a method 800 for adjusting brightness provided by an embodiment of the present application. Figure 8 can be applied to the scenario shown in Figure 1 or Figure 2 above, and can specifically correspond to the circuit connection structure shown in Figure 6 or Figure 7, and can also be applied to other application scenarios, which is not limited in this application . Referring to FIG. 8, method 800 may include:

S801,环境光传感器获取环境光亮度。S801. The ambient light sensor acquires ambient light brightness.

应理解,该环境光亮度可以为一段时间内的环境光亮度,该一段时间的长短,可以是预设的,也可以是用户手动设置的,本申请对此不作限定。It should be understood that the ambient light brightness may be the ambient light brightness within a period of time, and the length of the period of time may be preset or manually set by the user, which is not limited in the present application.

示例性地,环境光传感器可以获取10s的环境光亮度。Exemplarily, the ambient light sensor may acquire ambient light brightness for 10s.

可选地,该环境光亮度也可以周期获取,该周期可以预设,也可以由用户设置,本申请对此不作限定。Optionally, the ambient light brightness can also be acquired periodically, and the period can be preset or set by the user, which is not limited in this application.

示例性地,环境光传感器可以每5s获取一次环境光亮度。Exemplarily, the ambient light sensor may acquire ambient light brightness every 5s.

S802,环境光传感器向处理器发送环境光亮度。对应地,处理器接收来自环境光传感器的环境光亮度。S802. The ambient light sensor sends ambient light brightness to the processor. Correspondingly, the processor receives ambient light brightness from the ambient light sensor.

S803,处理器基于该环境光亮度,确定第一信息。S803. The processor determines first information based on the ambient light brightness.

S804,处理器向控制器发送第一信息,该第一信息用于该控制器调节发光器件的亮度。对应地,控制器接收来自处理器的第一信息。S804. The processor sends first information to the controller, where the first information is used by the controller to adjust the brightness of the light emitting device. Correspondingly, the controller receives the first information from the processor.

S805,响应于接收上述第一信息,控制器基于该第一信息调节上述发光器件的亮度。S805. In response to receiving the first information, the controller adjusts the brightness of the light emitting device based on the first information.

在一种可能的实现方式中,控制器接收上述第一信息(第一调节指令),并按照该目标亮度调节发光器件的亮度。In a possible implementation manner, the controller receives the above-mentioned first information (first adjustment instruction), and adjusts the brightness of the light emitting device according to the target brightness.

示例性地,控制器接基于第一信息,将发光器件的亮度调节为上述目标亮度。Exemplarily, the controller then adjusts the brightness of the light emitting device to the above-mentioned target brightness based on the first information.

本申请实施例的亮度调节方法,处理器可以通过环境光传感器获得环境光亮度,并向控制器发送上述第一信息。控制器可以基于该第一信息调节发光器件的亮度。由于环境光传感器由处理器获取,且控制器与处理器一直保持连接,所以控制器无需与环境光传感器连接,如上述控制器为8位的控制器,由于环境光光感器件必须独占一组系统管理总线(system management bus,SMbus)管脚,而上述8位的控制器芯片只支持两组SMbus管脚,分别由USB充电和电池芯片占用,所以该控制器无法再连接环境光传感器感。换句话说,在本申请中可以将环境光传感器连接至处理器,对控制器的管脚数量要求较低,即本申请能够在对发光器件的亮度进行自动调节的同时,降低对控制器的能力要求,从而降低第二电子设备的发光器件的亮度调节成本。In the brightness adjustment method of the embodiment of the present application, the processor may obtain the brightness of the ambient light through the ambient light sensor, and send the above-mentioned first information to the controller. The controller may adjust the brightness of the light emitting device based on the first information. Since the ambient light sensor is acquired by the processor, and the controller is always connected to the processor, the controller does not need to be connected to the ambient light sensor. For example, the above-mentioned controller is an 8-bit controller. Since the ambient light sensor must occupy a group System management bus (system management bus, SMbus) pins, and the above 8-bit controller chip only supports two sets of SMbus pins, which are occupied by USB charging and battery chips respectively, so the controller can no longer connect to the ambient light sensor. In other words, in this application, the ambient light sensor can be connected to the processor, and the number of pins of the controller is relatively low, that is, the application can automatically adjust the brightness of the light-emitting device while reducing the number of Capability requirements, thereby reducing the brightness adjustment cost of the light emitting device of the second electronic device.

作为一个可选的实施例,该处理器可以基于发光器件的亮度调节策略,判断并确定上述环境光亮度所处的环境光亮度范围与上述发光器件的亮度不匹配的情况下,将与当前环境光亮度所处的环境光亮度范围对应的发光器件的亮度确定为上述目标亮度,上述发光器件的亮度的至少两个档位和与该至少两个档位对应的环境光亮度范围。处理器向控制器发送第一信息,该第一信息为第一调节指令,该第一调节指令携带与上述环境光亮度所处的环境光亮度范围对应的目标亮度。控制器可以基于上述第一信息,将发光器件的亮度调节为目标亮度。As an optional embodiment, the processor may judge and determine that the ambient light brightness range in which the ambient light brightness is located does not match the brightness of the light emitting device based on the brightness adjustment strategy of the light emitting device, and will The brightness of the light-emitting device corresponding to the range of ambient light brightness in which the light brightness is located is determined as the above-mentioned target brightness, at least two gears of the brightness of the above-mentioned light-emitting device and the range of ambient light brightness corresponding to the at least two gears. The processor sends first information to the controller, where the first information is a first adjustment instruction, and the first adjustment instruction carries a target brightness corresponding to the ambient light brightness range in which the ambient light brightness is located. The controller may adjust the brightness of the light emitting device to the target brightness based on the above first information.

表一示出了发光器件亮度的档位和环境光亮度的关系。Table 1 shows the relationship between the gears of the brightness of the light emitting device and the brightness of the ambient light.

当前发光器件亮度的档位The gear of the brightness of the current light-emitting device 环境光亮度Ambient brightness 发光器件目标亮度的档位The gear of the target brightness of the light emitting device 第一档first gear 暗环境亮度Brightness in dark environment 第三档third gear 第一档first gear 普通环境亮度Normal ambient brightness 第二档second gear 第一档first gear 亮环境亮度Bright ambient brightness 第一档first gear 第二档second gear 暗环境亮度Brightness in dark environment 第三档third gear 第二档second gear 普通环境亮度Normal ambient brightness 第二档second gear 第二档second gear 亮环境亮度Bright ambient brightness 第一档first gear 第三档third gear 暗环境亮度Brightness in dark environment 第三档third gear 第三档third gear 普通环境亮度Normal ambient brightness 第二档second gear 第三档third gear 亮环境亮度Bright ambient brightness 第一档first gear

示例性地,上述发光器件的亮度可以包括第一档、第二档和第三档,随着档位的升高,发光器件的亮度越高。环境光亮度可以包括暗环境亮度、普通环境亮度和亮环境亮度三个亮度范围。第一电子设备所处环境亮度越高,第二电子设备的发光器件的亮度越暗或者直接关闭,第一电子设备所处环境亮度越低,为保证用户可以看清第二电子设备,保障用户正常使用第二电子设备,此时第二电子设备的发光器件的亮度需要调亮。所以上述发光器件的亮度的第一档可以与上述环境光亮度中的亮环境亮度对应、上述发光器件的亮度的第二档可以与上述环境光亮度中的普通环境亮度对应和上述发光器件的亮度的第三档可以与上述环境光亮度中的暗环境亮度对应。Exemplarily, the brightness of the above-mentioned light emitting device may include a first level, a second level and a third level, and as the level increases, the brightness of the light emitting device becomes higher. The ambient light brightness may include three brightness ranges: dark ambient brightness, normal ambient brightness, and bright ambient brightness. The higher the brightness of the environment where the first electronic device is located, the darker the brightness of the light-emitting device of the second electronic device or directly turn it off, the lower the brightness of the environment where the first electronic device is located. In order to ensure that the user can see the second electronic device clearly, the user The second electronic device is normally used, and at this time, the brightness of the light emitting device of the second electronic device needs to be adjusted brighter. Therefore, the first level of the brightness of the above-mentioned light-emitting device can correspond to the bright environment brightness in the above-mentioned ambient light brightness, and the second level of the brightness of the above-mentioned light-emitting device can correspond to the normal environment brightness in the above-mentioned ambient light brightness and the brightness of the above-mentioned light-emitting device. The third level of may correspond to the dark ambient brightness in the above-mentioned ambient light brightness.

如表一所示若当前发光器件的亮度为第一档,环境光亮度为暗环境亮度,由于环境光亮度和发光器件的亮度都太低,导致用户可能存在影响用户使用第二电子设备的问题,所以将发光器件亮度的档位调节为与上述暗环境亮度对应的第三档位。同理,如表一所示当前发光器件的亮度为第一档,环境光亮度为普通环境亮度的情况下,可以将发光器件亮度的档位调节为与上述普通环境亮度对应的第二档位。当前发光器件的亮度为第二档,环境光亮度为暗环境亮度的情况下,可以将发光器件亮度的档位调节为与上述暗环境亮度对应的第三档位。当前发光器件的亮度为第二档,环境光亮度为亮环境亮度的情况下,可以将发光器件亮度的档位调节为与上述亮环境亮度对应的第一档位。当前发光器件的亮度为第三档,环境光亮度为普通环境亮度的情况下,可以将发光器件亮度的档位调节为与上述普通环境亮度对应的第二档位。当前发光器件的亮度为第三档,环境光亮度为亮环境亮度的情况下,可以将发光器件亮度的档位调节为与上述亮环境亮度对应的第一档位。As shown in Table 1, if the brightness of the current light-emitting device is the first level, and the brightness of the ambient light is the brightness of the dark environment, since the brightness of the ambient light and the brightness of the light-emitting device are too low, the user may have problems that affect the user's use of the second electronic device , so the gear of the brightness of the light-emitting device is adjusted to the third gear corresponding to the brightness of the above-mentioned dark environment. Similarly, as shown in Table 1, when the brightness of the current light-emitting device is the first gear and the ambient light brightness is the normal ambient brightness, the gear of the brightness of the light-emitting device can be adjusted to the second gear corresponding to the above-mentioned normal ambient brightness . When the brightness of the light-emitting device is at the second level and the brightness of the ambient light is at the brightness of the dark environment, the brightness level of the light-emitting device can be adjusted to the third level corresponding to the brightness of the dark environment. When the brightness of the light-emitting device is at the second level and the brightness of the ambient light is at the brightness of the bright environment, the brightness level of the light-emitting device can be adjusted to the first level corresponding to the brightness of the bright environment. When the current brightness of the light-emitting device is the third gear and the ambient light brightness is the normal ambient brightness, the brightness gear of the light-emitting device can be adjusted to the second gear corresponding to the normal ambient brightness. When the brightness of the light-emitting device is at the third level and the brightness of the ambient light is the brightness of the bright environment, the brightness level of the light-emitting device can be adjusted to the first level corresponding to the brightness of the bright environment.

示例性地,当前第二电子设备的发光器件的亮度为第二档,若用户开启照明灯,环境光传感器获取环境光亮度,并将该环境光亮度发送至处理器。处理器收到环境光亮度为亮环境亮度,并确定该亮环境亮度与上述发光器件的亮度的第二档不对应,并确定与该亮环境亮度对应的发光器件的亮度的档位为第一档。处理器可以向控制器发送第一调节指令,该指令携带有第一档位对应的发光器件的亮度,控制器可以基于该第一指令,将当前发光器件的亮度调节为第一档位对应的亮度。Exemplarily, the brightness of the light-emitting device of the second electronic device is currently at the second level, and if the user turns on the light, the ambient light sensor acquires the brightness of the ambient light and sends the brightness of the ambient light to the processor. The processor receives the brightness of the ambient light as bright ambient brightness, and determines that the bright ambient brightness does not correspond to the second level of brightness of the above-mentioned light-emitting device, and determines that the brightness level of the light-emitting device corresponding to the bright ambient brightness is the first files. The processor may send a first adjustment instruction to the controller, the instruction carries the brightness of the light-emitting device corresponding to the first gear, and the controller may adjust the brightness of the current light-emitting device to the brightness corresponding to the first gear based on the first instruction. brightness.

应理解,此处仅仅以三档为例,除此之外还可以根据调节精度设置对应的档位数,本申请对此不作限定。It should be understood that the third gear is taken as an example here, and the corresponding gear number can also be set according to the adjustment accuracy, which is not limited in the present application.

应理解,档位越多,调节精度越高。It should be understood that the more gears, the higher the adjustment accuracy.

可选地,处理器还可以将当前环境光亮度和存储的上一次接收的环境光亮度进行比较,在确定当前环境光亮度和上一次接收的环境光亮度之间的亮度差大于预设阈值的情况下,确定满足发光器件亮度的自动调节的条件。此时,处理器可以基于上述发光器件亮度的自动调节策略,确定上述第一信息,并向控制器发送第一信息。上述满足发光器件亮度的自动调节的条件,也就是当前环境光亮度和上一次接收的环境光亮度之间的亮度差太大,如果继续保持发光器件的亮度不变,可能导致用户体验不好。Optionally, the processor may also compare the current ambient light brightness with the stored last received ambient light brightness, and determine that the brightness difference between the current ambient light brightness and the last received ambient light brightness is greater than the preset threshold In this case, it is determined that the condition for automatic adjustment of the brightness of the light emitting device is satisfied. At this time, the processor may determine the above-mentioned first information based on the above-mentioned automatic adjustment strategy for the brightness of the light-emitting device, and send the first information to the controller. The above-mentioned conditions for automatically adjusting the brightness of the light-emitting device are satisfied, that is, the brightness difference between the current ambient light brightness and the last received ambient light brightness is too large. If the brightness of the light-emitting device is kept unchanged, user experience may be poor.

示例性地,上述第一电子设备为笔记本电脑,第二电子器件为键盘,发光器件为LED,夜间在开灯的室内(LED亮度低或者关闭)的情况下,用户关闭照明灯,此时由于环境光亮度前后差别过大(环境光亮度从高变低),如果继续以开灯时的LED亮度显示,则可能导致用户看不清键盘,打断用户使用键盘的连续性,用户体验感差。Exemplarily, the above-mentioned first electronic device is a notebook computer, the second electronic device is a keyboard, and the light-emitting device is an LED. In a room where the light is turned on at night (the LED brightness is low or turned off), the user turns off the light. The difference in ambient light brightness before and after is too large (the ambient light brightness changes from high to low). If the LED brightness continues to be displayed when the light is turned on, the user may not be able to see the keyboard clearly, interrupting the continuity of the user's use of the keyboard, and poor user experience. .

示例性地,上述预设阈值可以为120lux,当前环境光亮度为15lux、上一次接收的环境光亮度为,则由于150lux-15lux>120lux,所以可以确定满足上述发光器件亮度的自动调节的条件。Exemplarily, the above-mentioned preset threshold may be 120lux, the current ambient light brightness is 15lux, and the last received ambient light brightness is , then since 150lux-15lux>120lux, it can be determined that the above-mentioned conditions for automatic adjustment of the brightness of the light-emitting device are satisfied.

应理解,上述预设阈值可以是预设的,也可以是用户手动设置的,本申请对此不作限定。It should be understood that the above preset threshold may be preset or manually set by the user, which is not limited in the present application.

此外,由于在确定当前环境光亮度和上一次接收的环境光亮度之间的亮度差大于预设阈值的情况下,才可以满足上述发光器件亮度的自动调节的条件,所以避免了环境光轻微变化导致对第二电子设备的发光器件亮度的频繁调节,降低功耗,提高用户体验。In addition, since the above-mentioned condition for automatic adjustment of the brightness of the light-emitting device can only be satisfied when the brightness difference between the current ambient light brightness and the last received ambient light brightness is greater than a preset threshold, a slight change in the ambient light is avoided. This leads to frequent adjustment of the brightness of the light emitting device of the second electronic device, reduces power consumption, and improves user experience.

在本申请实施例中,处理器可以通过环境光传感器获得当前环境光亮度,并基于该当前环境光亮度,确定上述目标亮度,并向控制器发送携带有目标亮度的第一信息。控制器可以基于该第一信息将第二电子设备的发光器件的亮度调节为上述目标亮度。换句话说,本申请中的第一信息是由处理器通过分析计算确定的,即控制器可以不作分析计算,只需要执行将上述发光器件的亮度调节为上述目标亮度的动作。所以本申请对控制器的逻辑计算能力没有求,且由于环境光传感器不需要与控制器连接,所以本申请对控制器的管脚数量也没有要求,即在控制器逻辑计算能力较弱,管脚数量较少的情况下,本申请依然可以实现对亮度的自动调节,有效降低了成本。In the embodiment of the present application, the processor may obtain the current ambient light brightness through the ambient light sensor, determine the target brightness based on the current ambient light brightness, and send the first information carrying the target brightness to the controller. The controller may adjust the brightness of the light emitting device of the second electronic device to the above-mentioned target brightness based on the first information. In other words, the first information in this application is determined by the processor through analysis and calculation, that is, the controller does not need to perform analysis and calculation, but only needs to perform the action of adjusting the brightness of the above-mentioned light-emitting device to the above-mentioned target brightness. Therefore, this application does not require the logical computing capability of the controller, and since the ambient light sensor does not need to be connected to the controller, this application does not require the number of pins of the controller. In the case of a small number of feet, the present application can still realize the automatic adjustment of the brightness, which effectively reduces the cost.

可选地,对应上述S805,上述第一信息还可以包括上述当前环境光亮度和发光器件的亮度调节策略,该发光器件亮度的调节策略包括上述发光器件的亮度的至少两个档位和与该至少两个档位对应的环境光亮度范围。在该种情况下,控制器接收上述第一信息,可以基于第一信息中的发光器件亮度的调节策略,判断当前环境光亮度的环境光亮度范围是否与发光器件的当前亮度匹配。在当前环境光亮度所处的环境光亮度范围与发光器件的当前亮度不匹配的情况下,控制器按照目标亮度调节发光器件的亮度,该目标亮度为与上述当前环境光亮度所处的环境光亮度范围对应的发光器件的亮度,由于控制器不需要和环境光传感器连接,所以本申请能够通过管脚数量较少的控制器对发光器件亮度进行自动调节,降低对控制器的能力要求,降低亮度调节成本。Optionally, corresponding to the above-mentioned S805, the above-mentioned first information may also include the above-mentioned current ambient light brightness and the brightness adjustment strategy of the light-emitting device, and the brightness adjustment strategy of the light-emitting device includes at least two gears of the brightness of the above-mentioned light-emitting device and the The ambient light brightness range corresponding to at least two gears. In this case, the controller receives the above first information, and may judge whether the ambient light brightness range of the current ambient light brightness matches the current brightness of the light emitting device based on the adjustment strategy of the brightness of the light emitting device in the first information. When the ambient light brightness range of the current ambient light brightness does not match the current brightness of the light-emitting device, the controller adjusts the brightness of the light-emitting device according to the target brightness, the target brightness being the ambient light of the above-mentioned current ambient light brightness. The brightness of the light-emitting device corresponding to the brightness range, because the controller does not need to be connected to the ambient light sensor, so this application can automatically adjust the brightness of the light-emitting device through a controller with a small number of pins, reducing the ability requirements for the controller and reducing Brightness adjustment cost.

可选地,在向控制器发送第一信息之前,处理器还可以确定发光器件亮度的调节方式,该调节方式包括手动调节方式和自动调节方式,且可以在发光器件亮度的调节方式为自动调节方式的情况下,向控制器发送上述第一信息。Optionally, before sending the first information to the controller, the processor may also determine the adjustment mode of the brightness of the light emitting device, the adjustment mode includes manual adjustment mode and automatic adjustment mode, and the adjustment mode of the brightness of the light emitting device may be automatic adjustment In the case of the mode, the above-mentioned first information is sent to the controller.

在第一种可能的场景中,第一电子设备为笔记本电脑,第二电子设备键盘,发光器件为LED,在笔记本电脑开机(例如首次开机或者重启),且用户未对键盘做任何操作的情况下,键盘的LED亮度调节方式默认为自动调节。In the first possible scenario, the first electronic device is a notebook computer, the second electronic equipment is a keyboard, and the light-emitting device is an LED. When the notebook computer is turned on (for example, it is turned on for the first time or restarted), and the user does not perform any operations on the keyboard Under the default setting, the LED brightness adjustment method of the keyboard is automatically adjusted by default.

在第二种可能的场景中,若笔记本电脑休眠唤醒前,键盘LED的亮度为自动调节,则笔记本电脑休眠唤醒后,键盘的LED的亮度按照上一次自动调节的亮度进行点亮,且在笔记本电脑一直正常运行,用户未对键盘做任何操作的情况下,键盘LED亮度可以一直按照自动调节来显示,即键盘的LED亮度可以根据环境光的亮度进行自动调节。In the second possible scenario, if the brightness of the keyboard LED is automatically adjusted before the notebook computer wakes up from hibernation, then after the notebook computer wakes up from hibernation, the brightness of the keyboard LED will be lit according to the brightness that was automatically adjusted last time, The computer is always running normally, and the keyboard LED brightness can always be displayed according to automatic adjustment when the user does not perform any operations on the keyboard, that is, the keyboard LED brightness can be automatically adjusted according to the brightness of the ambient light.

在上述两种情况下,处理器可以向控制器发送上述第一信息。In the above two cases, the processor may send the above first information to the controller.

可选地,若上述键盘的LED亮度的调节方式为手动调节方式,可以认为当前键盘的LED的亮度为用户所需的亮度,为保障用户需求,可以不改变当前键盘的LED亮度,即处理器可以不作任何操作。Optionally, if the adjustment method of the LED brightness of the above-mentioned keyboard is a manual adjustment method, it can be considered that the brightness of the LED of the current keyboard is the brightness required by the user. You can do nothing.

对应上述第一种可能的场景,若笔记本电脑开机,用户按压键盘以调节LED的亮度,那么默认当前LED亮度的调节方式为手动调节方式。即在笔记本电脑正常运行的过程中,键盘的LED亮度不会随着环境光的亮度改变而改变,只有用户对键盘操作(如点击热键),键盘的LED亮度才会改变,否则键盘的LED亮度一直不改变。Corresponding to the above-mentioned first possible scenario, if the laptop is turned on and the user presses the keyboard to adjust the brightness of the LED, then the current LED brightness adjustment mode is the manual adjustment mode by default. That is, during the normal operation of the notebook computer, the LED brightness of the keyboard will not change with the brightness of the ambient light. Only when the user operates the keyboard (such as clicking a hot key), the LED brightness of the keyboard will change. Brightness never changes.

对应上述第二种可能的场景,若笔记本电脑休眠前,键盘的LED亮度为手动调节,则笔记本电脑休眠唤醒后,键盘的LED亮度按照上一次手动调节的亮度进行点亮,且如果笔记本电脑一直正常运行,则键盘的LED亮度一直按照手动调节来显示,即用户点击热键,键盘的LED亮度才会改变,否则键盘的LED亮度可以一直不改变。Corresponding to the second possible scenario above, if the LED brightness of the keyboard is manually adjusted before the laptop goes to sleep, then after the laptop wakes up from sleep, the LED brightness of the keyboard will be lit according to the last manually adjusted brightness, and if the laptop has been In normal operation, the LED brightness of the keyboard is always displayed according to the manual adjustment, that is, the user clicks the hotkey, the LED brightness of the keyboard will change, otherwise the LED brightness of the keyboard can remain unchanged.

应理解,上述两个场景仅仅为示例性地,除此之外还可以为其他场景,本申请对此不作限定。It should be understood that the above two scenarios are only exemplary, and other scenarios may also be used, which are not limited in the present application.

综上,手动调节的优先级别高于自动调节。不论手动将发光器件的亮度关闭,调高,或者调低,在第一电子设备正常的运行的过程中,自动调节都不会生效。除非第一电子设备重启或睡眠唤醒,自动调节才可以生效。In summary, manual adjustment has a higher priority than automatic adjustment. Regardless of whether the brightness of the light-emitting device is turned off, turned up, or turned down manually, the automatic adjustment will not take effect during the normal operation of the first electronic device. The automatic adjustment can take effect unless the first electronic device is restarted or awakened from sleep.

可选地,控制器还可以在调节上述发光器件亮度之前,确定调节阶数和调节时间,该调节阶数表示发光器件的亮度在调节前后所经历的调节次数,该调节时间表示每连续两阶调节过程所需的时间;控制器可以按照该调节阶数和该调节时间,调节键盘的发光器件的亮度。避免在黑暗环境下,第二电子设备的发光器件的亮度突变,出现刺眼等问题,保证用户体验。Optionally, the controller can also determine the adjustment order and adjustment time before adjusting the brightness of the above-mentioned light-emitting device. The time required for the adjustment process; the controller can adjust the brightness of the light-emitting device of the keyboard according to the adjustment steps and the adjustment time. In a dark environment, the sudden change in brightness of the light emitting device of the second electronic device, causing glare and other problems, ensures user experience.

应理解,上述调节阶数和调节时间可以预设的,也可以用户手动设置的。It should be understood that the above adjustment order and adjustment time may be preset or manually set by the user.

可选地,由于人眼对于光线的敏感程度来讲,从亮变暗的适应时间比较长,从暗变亮的适应时间比较短,上述调节阶数和调节时间也可以针对从亮变暗和从暗变亮两种场景,设置不同的调节阶数和调节时间。Optionally, due to the sensitivity of the human eye to light, the adaptation time from bright to dark is relatively long, and the adaptation time from dark to bright is relatively short. For two scenes from dark to bright, set different adjustment steps and adjustment time.

示例性地,从亮变暗时的场景下对应的调节阶数和调节时间可以大于从暗变亮场景下对应的调节阶数和调节时间,以进一步提高用户体验。For example, the adjustment order and adjustment time corresponding to the scene changing from bright to dark may be greater than the corresponding adjustment steps and adjustment time in the scene changing from dark to bright, so as to further improve user experience.

接着上述S805,在控制器基于该第一信息调节上述发光器件的亮度之后,若控制器在第一时间段内未检测到用户对第二电子设备的操作指令,控制器可以关闭上述发光器件。Next to the above S805, after the controller adjusts the brightness of the above-mentioned light-emitting device based on the first information, if the controller does not detect the user's operation instruction on the second electronic device within the first time period, the controller may turn off the above-mentioned light-emitting device.

示例性地,第一电子设备为笔记本电脑,第二电子设备为键盘,发光器件为LED,在控制器基于该第一信息调节上述键盘的LED亮度之后,若在15s之内用户未对键盘做任何操作,则可以认为用户当前停止使用笔记本电脑,或者当前处于不需要使用键盘的场景,如在使用笔记本电脑查看文档,图片等,所以为避免LED一直开启产生不必要的功耗,此时控制器可以选择关闭LED,降低功耗。Exemplarily, the first electronic device is a notebook computer, the second electronic device is a keyboard, and the light emitting device is an LED. Any operation, it can be considered that the user is currently stopping using the laptop, or is currently in a scene that does not need to use the keyboard, such as using the laptop to view documents, pictures, etc., so in order to avoid unnecessary power consumption caused by the LED being turned on all the time, the control at this time The controller can choose to turn off the LED to reduce power consumption.

可选地,在控制器关闭第二电子设备的发光器件之后,为保证用户下一次使用第二电子设备的体验,控制器检测到用户对上述第二电子设备的操作指令;响应于该用户对第二电子设备的操作指令,恢复第二电子设备的发光器件的亮度。即控制器一旦检测到用户对第二电子设备的操作,就可以将第二电子设备的发光器件的亮度恢复为该该发光器件关闭前的亮度,以提高用户体验。Optionally, after the controller turns off the light-emitting device of the second electronic device, in order to ensure the experience of the user using the second electronic device next time, the controller detects the user's operation instruction on the second electronic device; The operation instruction of the second electronic device restores the brightness of the light emitting device of the second electronic device. That is, once the controller detects the user's operation on the second electronic device, it can restore the brightness of the light emitting device of the second electronic device to the brightness before the light emitting device is turned off, so as to improve user experience.

示例性地,第二电子设备为键盘,发光器件为LED,在控制器关闭键盘的LED之后,为保证用户下一次使用键盘的连续性,控制器检测到用户对键盘的操作指令(点击任意按键);响应于该用户对键盘的操作指令,恢复键盘的LED的亮度。即控制器一旦检测到用户对键盘的点击操作,就可以将第键盘的LED的亮度恢复为该LED关闭前的亮度,避免环境光亮度太低,看不清键盘的问题,保障用户体验。Exemplarily, the second electronic device is a keyboard, and the light-emitting device is an LED. After the controller turns off the LED of the keyboard, in order to ensure the continuity of the user's next use of the keyboard, the controller detects the user's operation instruction on the keyboard (click any button) ); in response to the user's operation instruction on the keyboard, restore the brightness of the LED of the keyboard. That is, once the controller detects the user's click operation on the keyboard, it can restore the brightness of the LED of the second keyboard to the brightness before the LED was turned off, so as to avoid the problem that the ambient light brightness is too low and the keyboard cannot be seen clearly, and guarantee the user experience.

可选地,上述第一时间段可以是预设的,也可以是用户手动设置的,本申请对此不作限定。Optionally, the above-mentioned first time period may be preset or manually set by the user, which is not limited in this application.

可选地,在上述自动调节第二电子设备的发光器件亮度之后,用户还可以手动调节该发光器件的亮度。即在本申请实施例中,除可以实现对发光器件的自动调节之外,用户还可以根据自身需求对发光器件的亮度进行调节,用户体验高。Optionally, after the above automatic adjustment of the brightness of the light emitting device of the second electronic device, the user may also manually adjust the brightness of the light emitting device. That is, in the embodiment of the present application, in addition to the automatic adjustment of the light emitting device, the user can also adjust the brightness of the light emitting device according to his own needs, and the user experience is high.

表二示出了再手动调节方式下发光器件亮度的档位切换。Table 2 shows the gear switching of the brightness of the light-emitting device in the manual adjustment mode.

当前LED亮度的档位The gear of the current LED brightness 手动调节的次数Number of manual adjustments LED目标亮度的档位LED target brightness level 第一档first gear 一次once 第二档second gear 第二档second gear 一次once 第三档third gear 第三档third gear 一次once 第一档first gear 第一档first gear 两次twice 第三档third gear 第二档second gear 两次twice 第一档first gear 第三档third gear 两次twice 第二档second gear

以第一电子设备为笔记本电脑,第二电子设备为键盘,发光器件为LED为例,在自动调节生效的情况下,由于笔记本电脑所处的环境频繁变化,即环境光亮度频繁变化,导致键盘的LED亮度随着环境亮度频繁改变,用户体验感不好,此时,用户就可以根据自身需求,手动将键盘的LED调节至其满意的亮度,并保持不变,避免了键盘的LED亮度自动频繁改变带来的不适。如表一所示,若当前LED亮度的档位为第一档,用户可能由于处于暗环境,为更好的使用键盘,通过一次的手动调节将LED的亮度提高一个档位,或者也可以通过两次的调节实现将LED的亮度从一档调节至第三档。同理,在LED处于其他亮度的情况下,也可以通过上述方法进行调档。Taking the first electronic device as a notebook computer, the second electronic device as a keyboard, and the light-emitting device as an LED as an example, when the automatic adjustment takes effect, the environment of the notebook computer changes frequently, that is, the brightness of the ambient light changes frequently, causing the keyboard to The LED brightness of the keyboard changes frequently with the brightness of the environment, and the user experience is not good. At this time, the user can manually adjust the LED brightness of the keyboard to a satisfactory brightness according to his own needs, and keep it unchanged, avoiding the automatic adjustment of the LED brightness of the keyboard. Discomfort from frequent changes. As shown in Table 1, if the current level of LED brightness is the first level, the user may increase the brightness of the LED by one level through manual adjustment for better use of the keyboard due to the dark environment, or through Two adjustments realize the adjustment of the brightness of the LED from the first gear to the third gear. Similarly, when the LED is at other brightness levels, the above method can also be used to adjust the gear.

在一种可能的实现方式中,用户可以点击上述键盘中的热键实现手动调节键盘的LED亮度。In a possible implementation manner, the user may click the hotkey on the keyboard to manually adjust the LED brightness of the keyboard.

可选地,该热键可以是预设的,也可以是用户手动设置的,本申请对此不作限定。Optionally, the hotkey may be preset or manually set by the user, which is not limited in this application.

示例性地,用户可以点击键盘中的按键“F3”,以调亮键盘的LED亮度,也可以点击键盘中的按键“F5”,以调低键盘的LED亮度。或者,用户也可以点击键盘中的按键“Fn”实现对上述LED亮度档位从低到高或者从高到低的切换(即亮度档位的切换),即实现对键盘的LED亮度的调节。Exemplarily, the user can click the key "F3" on the keyboard to increase the LED brightness of the keyboard, or click the key "F5" on the keyboard to decrease the LED brightness of the keyboard. Alternatively, the user can also click the button "Fn" on the keyboard to switch the above-mentioned LED brightness level from low to high or from high to low (that is, switch the brightness level), that is, to realize the adjustment of the LED brightness of the keyboard.

应理解,上述热键仅仅以按键“F3”、按键“F5”和按键“Fn”为例,除此之外调节LED亮度的热键还可以为其他按键,本申请对此不作限定。It should be understood that the above-mentioned hotkeys only take the button "F3", the button "F5" and the button "Fn" as examples, and the hotkeys for adjusting the LED brightness can also be other buttons, which are not limited in this application.

应理解,表一示出的通过操作次数(点击热键的次数)实现调节LED亮度的档位数仅仅为示例性地,除此之外用户还可以通过一次操作(长按热键)实现对上述LED亮度档位的平滑调节,本申请对此不作限定。It should be understood that the number of gears for adjusting the brightness of the LED through the number of operations (the number of times the hotkey is clicked) shown in Table 1 is only exemplary. The above-mentioned smooth adjustment of the LED brightness level is not limited in this application.

在本申请实施例中,用户可以通过该第一电子设备中的应用(如管家应用)实现对上述热键、预设阈值、调节阶数、调节时间和第一时间段等参数的手动设置。In this embodiment of the present application, the user can manually set parameters such as the above-mentioned hotkey, preset threshold, adjustment order, adjustment time, and first time period through an application (such as a housekeeper application) in the first electronic device.

图9为本申请实施例适用的第一电子设备的一种软件结构框图。分层架构将第一电子设备100的软件系统分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在本申请实施例中,可以将系统分为四层,分别为应用层、系统层、驱动层以及硬件层,应理解,上述软件结构以第一电子设备100和第二电子设备102一体设置为例。FIG. 9 is a block diagram of a software structure of a first electronic device applicable to the embodiment of the present application. The layered architecture divides the software system of the first electronic device 100 into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In the embodiment of the present application, the system can be divided into four layers, namely the application layer, the system layer, the driver layer and the hardware layer. It should be understood that the above-mentioned software structure is set as example.

如图9所示,应用层可以包括上述第一电子设备的管家应用,管家应用可以理解为安装在第一电子设备上的应用,用于获取环境光亮度,并生成发光器件亮度的调节参数(如目标亮度或者环境光亮度和亮度调节策略)。系统层包括传感器服务模块和通信服务模块,其中,传感器服务模块用于向上述管家应用发送环境光数据(即环境光亮度),通信服务模块用于发送亮度调节参数。驱动层包括传感器驱动和通信驱动模块,其中,传感器驱动用于向上述管家应用发送环境光数据,通信驱动模块用于向控制器传输亮度调节参数。硬件层包括控制器、系统级芯片(system on chip,SOC)、环境光传感器和发光器件,其中,控制器用于调节第二电子设备的发光器件的亮度,SOC芯片可以用于传输环境光数据,环境光传感器可以用于获取上述环境光亮度,以及发光器件用于亮度。As shown in FIG. 9, the application layer may include the housekeeper application of the above-mentioned first electronic device. The housekeeper application may be understood as an application installed on the first electronic device, and is used to obtain the brightness of the ambient light and generate an adjustment parameter for the brightness of the light emitting device ( Such as target brightness or ambient light brightness and brightness adjustment strategy). The system layer includes a sensor service module and a communication service module, wherein the sensor service module is used to send ambient light data (ie ambient light brightness) to the housekeeper application, and the communication service module is used to send brightness adjustment parameters. The driver layer includes a sensor driver and a communication driver module, wherein the sensor driver is used to send ambient light data to the housekeeper application, and the communication driver module is used to transmit brightness adjustment parameters to the controller. The hardware layer includes a controller, a system on chip (SOC), an ambient light sensor, and a light emitting device, wherein the controller is used to adjust the brightness of the light emitting device of the second electronic device, and the SOC chip can be used to transmit ambient light data, An ambient light sensor can be used to obtain the above ambient light brightness, and a light emitting device can be used for brightness.

下面以上述第一电子设备为笔记本电脑,第二电子设备为键盘,发光器件为LED为例,结合图9和图10对本申请提供的亮度调节方法进行进一步的描述。Taking the above-mentioned first electronic device as a notebook computer, the second electronic device as a keyboard, and the light-emitting device as an LED as an example, the brightness adjustment method provided by the present application will be further described with reference to FIG. 9 and FIG. 10 .

图10为本申请实施例提供的又一亮度调节方法1000的示意性流程图。参照图10,方法1000可以包括以下步骤:FIG. 10 is a schematic flowchart of another brightness adjustment method 1000 provided by the embodiment of the present application. Referring to FIG. 10, method 1000 may include the following steps:

S1001,环境光传感器获取环境光亮度。S1001. The ambient light sensor acquires ambient light brightness.

应理解,为保证自动调节可以生效,本申请实施例所获取的环境光亮度为笔记本电脑初次开机或者重启后所对应的环境光亮度。该环境光亮度可以为一段时间内的环境光亮度,该一段时间的长短,可以是预设的,也可以是用户手动设置的,本申请对此不作限定。It should be understood that, in order to ensure that the automatic adjustment can take effect, the ambient light brightness obtained in the embodiment of the present application is the corresponding ambient light brightness after the notebook computer is started for the first time or restarted. The ambient light brightness may be the ambient light brightness within a period of time, and the length of the period of time may be preset or manually set by the user, which is not limited in this application.

示例性地,环境光传感器可以获取10s的环境光亮度。Exemplarily, the ambient light sensor may acquire ambient light brightness for 10s.

可选地,该环境光亮度也可以周期获取,该周期可以预设,也可以由用户设置,本申请对此不作限定。Optionally, the ambient light brightness can also be acquired periodically, and the period can be preset or set by the user, which is not limited in this application.

示例性地,环境光传感器可以5s获取一次环境光亮度。Exemplarily, the ambient light sensor may acquire the ambient light brightness once every 5s.

S1002,环境光传感器将当前环境光亮度发送至SOC芯片。对应地,SOC芯片接收来自环境光传感器的当前环境光亮度。S1002. The ambient light sensor sends the current ambient light brightness to the SOC chip. Correspondingly, the SOC chip receives the current ambient light brightness from the ambient light sensor.

S1003,SOC芯片将当前环境光亮度发送至传感器驱动。对应地,感器驱动接收来自SOC芯片的当前环境光亮度。S1003, the SOC chip sends the current ambient light brightness to the sensor driver. Correspondingly, the sensor driver receives the current ambient light brightness from the SOC chip.

S1004,传感器驱动将当前环境光亮度发送至传感器服务。对应地,感器服务接收来自传感器驱动的当前环境光亮度。S1004, the sensor driver sends the current ambient light brightness to the sensor service. Correspondingly, the sensor service receives the current ambient light level from the sensor driver.

S1005,传感器服务器将当前环境光亮度发送至管家应用。对应地,管家应用接收来传感器服务的当前环境光亮度。S1005. The sensor server sends the current ambient light brightness to the housekeeper application. Correspondingly, the housekeeper application receives the current ambient light level from the sensor service.

S1006,管家应用基于当前环境光亮度,确定第一信息。S1006. The housekeeper application determines first information based on the current ambient brightness.

在一种可能的实现方式中,上述第一信息为第一调节指令,该第一调节指令携带与上述环境光亮度所处的环境光亮度范围对应的目标亮度。In a possible implementation manner, the above-mentioned first information is a first adjustment instruction, and the first adjustment instruction carries a target brightness corresponding to an ambient light brightness range in which the above-mentioned ambient light brightness is located.

示例性地,该管家应用可以基于亮度调节策略,判断上述环境光亮度所处的环境光亮度范围是否与上述键盘的LED当前亮度匹配,且在环境光亮度所处的环境光亮度范围与上述键盘的LED当前亮度匹配的情况下,将上述环境光亮度所处的环境光亮度范围对应的LED亮度确定为目标亮度。Exemplarily, the housekeeper application may judge whether the ambient light brightness range of the ambient light brightness matches the current brightness of the LED of the keyboard based on the brightness adjustment strategy, and if the ambient light brightness range of the ambient light brightness is in the same range as the keyboard When the current brightness of the LEDs matches, the LED brightness corresponding to the ambient light brightness range where the ambient light brightness is located is determined as the target brightness.

或者,管家应用还可以在接收到环境光亮度之后,将环境光亮度和上一次接收的环境光亮度进行比较,在确定当前环境光亮度和上一次接收的环境光亮度之间的亮度差大于预设阈值的情况下,将上述当前环境光亮度所处的环境光亮度范围对应的LED亮度确定目标亮度。Alternatively, the housekeeper application may also compare the ambient light brightness with the last received ambient light brightness after receiving the ambient light brightness, and determine that the brightness difference between the current ambient light brightness and the last received ambient light brightness is greater than the preset In the case of setting a threshold value, the target brightness is determined from the LED brightness corresponding to the ambient light brightness range in which the current ambient light brightness is located.

S1007,管家应用向通信服务模块发送第一信息,该第一信息用于控制器调节键盘的LED亮度。对应地,通信服务模块接收来自管家应用的第一信息。S1007, the housekeeper application sends first information to the communication service module, where the first information is used by the controller to adjust the LED brightness of the keyboard. Correspondingly, the communication service module receives the first information from the butler application.

示例性地,上述管家应用向管理规范(windows management instrumentation,WMI)通信服务模块发送第一信息。Exemplarily, the housekeeper application above sends the first information to a management specification (windows management instrumentation, WMI) communication service module.

S1008,通信服务模块向通信驱动模块发送第一信息。对应地,通信驱动模块接收来自通信服务模块的第一信息。S1008. The communication service module sends the first information to the communication driver module. Correspondingly, the communication driver module receives the first information from the communication service module.

示例性地,WMI通信服务模块向WMI通信驱动模块发送第一信息。Exemplarily, the WMI communication service module sends the first information to the WMI communication driver module.

S1009,通信驱动模块向控制器发送第一信息。对应地,控制器接收来自通信驱动模块的第一信息。S1009. The communication driving module sends the first information to the controller. Correspondingly, the controller receives the first information from the communication driving module.

示例性地,WMI通信驱动模块向控制器发送第一信息。Exemplarily, the WMI communication driver module sends the first information to the controller.

S1010,控制器基于第一信息,调节LED的亮度。S1010. The controller adjusts the brightness of the LED based on the first information.

示例性地,将LED的亮度调节为目标亮度。Exemplarily, the brightness of the LED is adjusted to a target brightness.

在一种可能的实现方式,控制器接收第一调节指令,并按照该第一指令携带的目标亮度调节键盘的LED的亮度。In a possible implementation manner, the controller receives the first adjustment instruction, and adjusts the brightness of the LED of the keyboard according to the target brightness carried by the first instruction.

在本申请中,管家应用可以通过环境光传感器获得当前环境光亮度,并基于该当前环境光亮度,确定目标亮度,并向控制器发送第一信息。控制器可以基于该第一信息获得上述目标亮度,并将键盘的LED亮度调节为目标亮度。换句话说,本申请中的目标亮度是由管家应用通过分析计算确定的,控制器并未作分析计算,仅仅执行将键盘的LED亮度调节为目标亮度的动作。所以本申请对控制器的逻辑计算能力没有要求,且环境光传感器不需要和控制器连接,所以本申请对控制机管脚数量也没有要求,即在控制器逻辑计算能力较弱,管脚数量较少的情况下,依然可以实现对键盘的LED亮度的自动调节,有效降低了成本。In this application, the housekeeper application may obtain the current ambient light brightness through the ambient light sensor, determine the target brightness based on the current ambient light brightness, and send the first information to the controller. The controller can obtain the above-mentioned target brightness based on the first information, and adjust the LED brightness of the keyboard to the target brightness. In other words, the target brightness in this application is determined by the housekeeper application through analysis and calculation, and the controller does not perform analysis and calculation, but only performs the action of adjusting the LED brightness of the keyboard to the target brightness. Therefore, this application does not require the logic computing capability of the controller, and the ambient light sensor does not need to be connected to the controller, so this application does not require the number of pins of the controller, that is, when the logic computing capability of the controller is weak, the number of pins In less cases, the automatic adjustment of the LED brightness of the keyboard can still be realized, which effectively reduces the cost.

可选地,对应上述S1006,上述第一信息还可以包括上述环境光亮度和键盘的LED亮度的调节策略,该键盘的LED亮度的调节策略包括上述键盘的LED亮度的至少两个档位和与该至少两个档位对应的环境光亮度范围。控制器接收该第一信息,可以基于第一信息中的LED亮度的调节策略,判断当前环境光亮度的环境光亮度范围是否与LED的当前亮度匹配。在当前环境光亮度所处的环境光亮度范围与LED的当前亮度不匹配的情况下,控制器按照目标亮度调节键盘的LED的亮度,该目标亮度为与上述当前环境光亮度所处的环境光亮度范围对应的LED亮度,由于控制器不需要和环境光传感器连接,所以控制器的管脚可以减少,降低键盘的LED亮度调节的成本。Optionally, corresponding to the above-mentioned S1006, the above-mentioned first information may also include an adjustment strategy of the above-mentioned ambient light brightness and the LED brightness of the keyboard, and the adjustment strategy of the LED brightness of the keyboard includes at least two gears of the LED brightness of the keyboard and a combination of The ambient light brightness range corresponding to the at least two gears. The controller receives the first information, and may judge whether the ambient light brightness range of the current ambient light brightness matches the current brightness of the LED based on the adjustment strategy of the LED brightness in the first information. When the ambient light brightness range of the current ambient light brightness does not match the current brightness of the LED, the controller adjusts the brightness of the LED of the keyboard according to the target brightness. The LED brightness corresponding to the brightness range, since the controller does not need to be connected with the ambient light sensor, the pins of the controller can be reduced, reducing the cost of adjusting the LED brightness of the keyboard.

可选地,在上述第一电子设备与第二电子设备分体设置,第二电子设备为第一电子设备的输入设备的情况下,上述通信驱动模块和上述通信服务模块可以支持蓝牙技术、WI-FI技术或红外技术等中的任一种技术,本申请对此不作限定。Optionally, in the case where the above-mentioned first electronic device and the second electronic device are arranged separately, and the second electronic device is an input device of the first electronic device, the above-mentioned communication driver module and the above-mentioned communication service module may support Bluetooth technology, WI -Any one of FI technology or infrared technology, etc., which is not limited in this application.

可选地,在环境光传感器获取环境光亮度之前,处理器还可以通过相应的接口查询控制器支持的亮度调节功能。Optionally, before the ambient light sensor acquires the ambient light brightness, the processor may also query the brightness adjustment function supported by the controller through a corresponding interface.

示例性地,在上述第一电子设备为笔记本电脑,第二电子设备为键盘,发光器件为LED的情况下,处理器通过BIOS WMI接口查询控制器支持的LED亮度的调节功能的实例如下:Exemplarily, in the case where the above-mentioned first electronic device is a notebook computer, the second electronic device is a keyboard, and the light-emitting device is an LED, an example of the processor querying the LED brightness adjustment function supported by the controller through the BIOS WMI interface is as follows:

Input Parameter:Input Parameter:

Byte 0:Main Function IDByte 0: Main Function ID

Byte 1:Sub-Function IDByte 1: Sub-Function ID

Output Parameter:Output Parameter:

Status:Status:

0x0:Success0x0: Success

0x1:Fail0x1: Fail

Return data:Return data:

Byte1~2:Byte1~2:

键盘的LED亮度自动调节模式,低位在前高位在后。The LED brightness of the keyboard is automatically adjusted, the low position is in the front and the high position is in the back.

0x00:自动调节关闭;0x00: automatic adjustment is off;

0x01:自动调节开启;0x01: automatic adjustment is turned on;

0x10:不支持自动调节。0x10: Autoscale is not supported.

可选地,处理器还可以通过相应的接口,实现对键盘的LED亮度的自动调节的模式。Optionally, the processor can also implement a mode of automatically adjusting the brightness of the LEDs of the keyboard through a corresponding interface.

示例性地,处理器通过Sub-Function 20接口查询控制器支持的键盘的LED亮度调节功能的实例如下:Exemplarily, the example of the processor querying the LED brightness adjustment function of the keyboard supported by the controller through the Sub-Function 20 interface is as follows:

Input Parameter:Input Parameter:

Byte 0:Main Function IDByte 0: Main Function ID

Byte 1:Sub-Function IDByte 1: Sub-Function ID

Byte 2:低位在前高位在后Byte 2: The low bit is in the front and the high bit is in the back

0x00关闭键盘的LED亮度自动调节;键盘的LED亮度为三档:关闭(开机默认)、低亮、高亮,OS开机默认三档且LED亮度关闭。0x00 Turn off the automatic adjustment of the LED brightness of the keyboard; the LED brightness of the keyboard has three levels: off (default at startup), low brightness, and high brightness. The OS defaults to three levels and the LED brightness is off.

0x01开启键盘的LED亮度自动调节;键盘的LED亮度为四档:关闭、低亮、高亮、自动调节。0x01 Turn on the automatic adjustment of the LED brightness of the keyboard; the LED brightness of the keyboard has four levels: off, low brightness, high brightness, and automatic adjustment.

0x10开启键盘的LED亮度自动调节且强制设为自动调节档位。0x10 Turn on the automatic adjustment of the LED brightness of the keyboard and force it to be set to the automatic adjustment gear.

Output Parameter:Output Parameter:

Status:Status:

0x0:Successful0x0: Successful

0x1:Fail0x1: Fail

可选地,处理器还可以通过相应的接口,实现对键盘的LED亮度档位(level)的设置。Optionally, the processor can also implement setting of the LED brightness level of the keyboard through a corresponding interface.

示例性地,处理器通过Sub-Function 21接口查询控制器支持的键盘的LED亮度调节功能的实例如下:Exemplarily, the example of the processor querying the LED brightness adjustment function of the keyboard supported by the controller through the Sub-Function 21 interface is as follows:

Input Parameter:Input Parameter:

Byte 0:Main Function IDByte 0: Main Function ID

Byte 1:Sub-Function IDByte 1: Sub-Function ID

Byte 2:光感level参数:0x00-0xffByte 2: light level parameters: 0x00-0xff

Output Parameter:Output Parameter:

Status:Status:

0x0:Successful0x0: Successful

0x1:Fail0x1: Fail

应理解,上述实施例仅仅第二电子设备为键盘为例,对本申请提供的亮度调节方法进行了描述,除此之外,上述第二电子设备还可以为包括发光器件的电子设备,本申请对此不作限定。It should be understood that the above-mentioned embodiment only takes the second electronic device as a keyboard as an example, and describes the brightness adjustment method provided by the present application. In addition, the above-mentioned second electronic device can also be an electronic device including a light-emitting device. This is not limited.

应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

为了实现上述本申请实施例提供的方法中的各功能,第一电子设备和第二电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In order to realize the various functions in the methods provided by the above embodiments of the present application, the first electronic device and the second electronic device may include a hardware structure and/or a software module, in the form of a hardware structure, a software module, or a hardware structure plus a software module. Realize the above functions. Whether one of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (16)

1.一种亮度调节方法,其特征在于,应用于包括处理器和环境光传感器的第一电子设备以及包括控制器和发光器件的第二电子设备,所述方法包括:1. A brightness adjustment method, characterized in that it is applied to a first electronic device comprising a processor and an ambient light sensor and a second electronic device comprising a controller and a light emitting device, the method comprising: 所述环境光传感器获取环境光亮度;The ambient light sensor acquires ambient light brightness; 所述环境光传感器向所述处理器发送所述环境光亮度;The ambient light sensor sends the ambient light brightness to the processor; 所述处理器基于所述环境光亮度,向所述控制器发送第一信息,所述第一信息用于所述控制器调节所述发光器件的亮度;The processor sends first information to the controller based on the ambient light brightness, and the first information is used by the controller to adjust the brightness of the light emitting device; 响应于接收所述第一信息,所述控制器基于所述第一信息调节所述发光器件的亮度;In response to receiving the first information, the controller adjusts brightness of the light emitting device based on the first information; 在所述向所述控制器发送第一信息之前,所述方法还包括:Before the sending of the first information to the controller, the method further includes: 所述处理器确定所述发光器件的当前亮度的调节方式,所述调节方式包括手动调节方式和自动调节方式;The processor determines an adjustment mode of the current brightness of the light emitting device, and the adjustment mode includes a manual adjustment mode and an automatic adjustment mode; 在确定所述发光器件的当前亮度的调节方式为自动调节方式时,所述方法还包括:When determining that the current brightness adjustment mode of the light emitting device is an automatic adjustment mode, the method further includes: 所述处理器确定是否满足发光器件亮度的自动调节的条件;其中,所述满足发光器件亮度的自动调节的条件为:当前环境光亮度和存储的上一次接收的环境光亮度之间的亮度差大于预设阈值;The processor determines whether the condition for automatic adjustment of the brightness of the light-emitting device is satisfied; wherein, the condition for satisfying the automatic adjustment of the brightness of the light-emitting device is: the brightness difference between the current ambient light brightness and the stored ambient light brightness received last time greater than a preset threshold; 所述向所述控制器发送第一信息,包括:The sending the first information to the controller includes: 在确定满足所述发光器件亮度的自动调节的条件的情况下,所述处理器向所述控制器发送所述第一信息;In case it is determined that a condition for automatic adjustment of brightness of the light emitting device is met, the processor sends the first information to the controller; 所述基于所述第一信息调节所述发光器件的亮度,包括:The adjusting the brightness of the light emitting device based on the first information includes: 所述控制器确定调节阶数和调节时间,所述调节阶数表示所述发光器件的亮度在调节前后所经历的调节次数,所述调节时间表示每连续两阶调节过程所需的时间;The controller determines an adjustment order and an adjustment time, the adjustment order represents the number of adjustments experienced by the brightness of the light-emitting device before and after adjustment, and the adjustment time represents the time required for every two consecutive adjustment processes; 所述控制器按照所述调节阶数和所述调节时间,调节所述发光器件的亮度;The controller adjusts the brightness of the light emitting device according to the adjustment steps and the adjustment time; 其中,所述环境光亮度从亮变暗时的场景下对应的调节阶数和调节时间大于所述环境光亮度从暗变亮场景下对应的调节阶数和调节时间。Wherein, the adjustment order and adjustment time corresponding to the scene when the ambient light brightness changes from bright to dark are greater than the corresponding adjustment steps and adjustment time in the scene where the ambient light brightness changes from dark to bright. 2.根据权利要求1所述的方法,其特征在于,所述第一信息为第一调节指令,所述第一调节指令携带与所述环境光亮度所处的环境光亮度范围对应的目标亮度;2. The method according to claim 1, wherein the first information is a first adjustment instruction, and the first adjustment instruction carries a target brightness corresponding to the ambient light brightness range in which the ambient light brightness is located. ; 所述方法还包括:The method also includes: 所述处理器基于亮度调节策略,判断所述环境光亮度所处的环境光亮度范围是否与所述发光器件的当前亮度匹配,所述亮度调节策略包括所述发光器件亮度的至少两个档位和与所述至少两个档位对应的环境光亮度范围;The processor judges whether the ambient light brightness range in which the ambient light brightness is located matches the current brightness of the light emitting device based on a brightness adjustment strategy, and the brightness adjustment strategy includes at least two levels of brightness of the light emitting device and an ambient light brightness range corresponding to the at least two gears; 所述向所述控制器发送第一信息,包括:The sending the first information to the controller includes: 在所述当前环境光亮度所处的环境光亮度范围与所述发光器件亮度不匹配的情况下,所述处理器向所述控制器发送所述第一调节指令;When the ambient light brightness range of the current ambient light brightness does not match the brightness of the light emitting device, the processor sends the first adjustment instruction to the controller; 所述控制器接收所述第一信息,并基于所述第一信息调节所述发光器件的亮度,包括:The controller receives the first information, and adjusts the brightness of the light emitting device based on the first information, including: 所述控制器接收所述第一调节指令,并按照所述目标亮度调节所述发光器件的亮度。The controller receives the first adjustment instruction, and adjusts the brightness of the light emitting device according to the target brightness. 3.根据权利要求1所述的方法,其特征在于,所述第一信息包括所述环境光亮度和亮度调节策略,所述亮度调节策略包括所述发光器件亮度的至少两个档位和与所述至少两个档位对应的环境光亮度范围;3. The method according to claim 1, wherein the first information includes the brightness of the ambient light and a brightness adjustment strategy, and the brightness adjustment strategy includes at least two gears of the brightness of the light-emitting device and The ambient light brightness range corresponding to the at least two gears; 所述方法还包括:The method also includes: 所述控制器基于所述亮度调节策略,判断所述环境光亮度所处的环境光亮度范围是否与所述发光器件的当前亮度匹配;The controller judges whether the ambient light brightness range where the ambient light brightness is located matches the current brightness of the light emitting device based on the brightness adjustment strategy; 在所述环境光亮度所处的环境光亮度范围与所述发光器件的当前亮度不匹配的情况下,所述控制器按照目标亮度调节所述发光器件的亮度,所述目标亮度为与所述环境光亮度所处的环境光亮度范围对应的所述发光器件的亮度。In the case that the ambient light brightness range of the ambient light brightness does not match the current brightness of the light emitting device, the controller adjusts the brightness of the light emitting device according to the target brightness, and the target brightness is the same as the current brightness of the light emitting device. The brightness of the light emitting device corresponding to the ambient light brightness range where the ambient light brightness is located. 4.根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:4. The method according to any one of claims 1-3, wherein the method further comprises: 若所述控制器在第一时间段内未检测到用户对所述第二电子设备的操作指令,关闭所述发光器件。If the controller does not detect the user's operation instruction on the second electronic device within the first time period, turn off the light emitting device. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. method according to claim 4, is characterized in that, described method also comprises: 所述控制器检测到用户对所述第二电子设备的操作指令;The controller detects a user's operation instruction on the second electronic device; 响应于所述用户对所述第二电子设备的操作指令,恢复所述发光器件的亮度。In response to the user's operation instruction on the second electronic device, the brightness of the light emitting device is restored. 6.根据权利要求1-3,5中任一项所述的方法,其特征在于,所述环境光亮度为所述第一电子设备初次开机或者重启后所对应的环境光亮度。6. The method according to any one of claims 1-3, 5, wherein the ambient light brightness is the corresponding ambient light brightness after the first electronic device is turned on or restarted. 7.根据权利要求1-3,5中任一项所述的方法,其特征在于,所述第一电子设备与所述第二电子设备有线连接,所述第二电子设备为所述第一电子设备的输入设备;7. The method according to any one of claims 1-3, 5, wherein the first electronic device is connected to the second electronic device by wire, and the second electronic device is the first electronic device Input devices for electronic devices; 所述向所述控制器发送第一信息,包括:The sending the first information to the controller includes: 所述处理器通过通信模块向所述控制器发送所述第一信息,所述通信模块支持USB技术或管理规范WMI技术。The processor sends the first information to the controller through a communication module, and the communication module supports USB technology or management specification WMI technology. 8.根据权利要求1-3,5中任一项所述的方法,其特征在于,所述第一电子设备与所述第二电子设备无线连接,所述第二电子设备为所述第一电子设备的输入设备;8. The method according to any one of claims 1-3, 5, wherein the first electronic device is wirelessly connected to the second electronic device, and the second electronic device is the first Input devices for electronic devices; 所述向所述控制器发送第一信息,包括:The sending the first information to the controller includes: 所述处理器通过通信模块向所述控制器发送所述第一信息,所述通信模块支持蓝牙技术、WI-FI技术或红外通信技术中的任一种。The processor sends the first information to the controller through a communication module, and the communication module supports any one of Bluetooth technology, WI-FI technology or infrared communication technology. 9.一种电子设备,其特征在于,包括:处理器和环境光传感器,所述电子设备与第二电子设备通过有线或无线的方式连接,所述第二电子设备包括控制器和发光器件;9. An electronic device, comprising: a processor and an ambient light sensor, the electronic device is connected to a second electronic device in a wired or wireless manner, and the second electronic device includes a controller and a light emitting device; 所述环境光传感器用于:获取环境光亮度;以及,向所述处理器发送所述环境光亮度;The ambient light sensor is used to: acquire ambient light brightness; and send the ambient light brightness to the processor; 所述处理器用于:基于所述环境光亮度,向所述控制器发送第一信息,所述第一信息用于所述控制器调节发光器件的亮度;所述第一信息具体用于所述控制器确定调节阶数和调节时间,所述调节阶数表示所述发光器件的亮度在调节前后所经历的调节次数,所述调节时间表示每连续两阶调节过程所需的时间,所述控制器按照所述调节阶数和所述调节时间,调节所述发光器件的亮度;其中,所述环境光亮度从亮变暗时的场景下对应的调节阶数和调节时间大于所述环境光亮度从暗变亮场景下对应的调节阶数和调节时间;The processor is configured to: send first information to the controller based on the brightness of the ambient light, the first information is used for the controller to adjust the brightness of the light emitting device; the first information is specifically used for the The controller determines the adjustment order and the adjustment time, the adjustment order represents the number of adjustments experienced by the brightness of the light-emitting device before and after adjustment, the adjustment time represents the time required for each continuous two-stage adjustment process, and the control The device adjusts the brightness of the light-emitting device according to the adjustment order and the adjustment time; wherein, the corresponding adjustment order and adjustment time in the scene when the ambient light brightness changes from bright to dark are greater than the ambient light brightness The corresponding adjustment order and adjustment time in the scene from dark to bright; 所述处理器用于:确定所述发光器件的当前亮度的调节方式,所述调节方式包括手动调节方式和自动调节方式;在确定所述发光器件的当前亮度的调节方式为自动调节方式时,所述处理器还用于:确定是否满足发光器件亮度的自动调节的条件;其中,所述满足发光器件亮度的自动调节的条件为:当前环境光亮度和存储的上一次接收的环境光亮度之间的亮度差大于预设阈值;在确定满足所述发光器件亮度的自动调节的条件的情况下,向所述控制器发送所述第一信息。The processor is configured to: determine an adjustment mode of the current brightness of the light emitting device, the adjustment mode includes a manual adjustment mode and an automatic adjustment mode; when it is determined that the current brightness adjustment mode of the light emitting device is an automatic adjustment mode, the The processor is also used to: determine whether the condition for automatic adjustment of the brightness of the light-emitting device is met; wherein, the condition for satisfying the automatic adjustment of the brightness of the light-emitting device is: between the current ambient light brightness and the stored ambient light brightness received last time The brightness difference is greater than a preset threshold; when it is determined that the condition for automatic adjustment of the brightness of the light emitting device is met, the first information is sent to the controller. 10.根据权利要求9所述的电子设备,其特征在于,所述第一信息为第一调节指令,所述第一调节指令携带与所述环境光亮度所处的环境光亮度范围对应的目标亮度;10. The electronic device according to claim 9, wherein the first information is a first adjustment instruction, and the first adjustment instruction carries a target corresponding to the ambient light brightness range in which the ambient light brightness is located. brightness; 所述处理器用于:基于亮度调节策略,判断所述环境光亮度所处的环境光亮度范围是否与所述发光器件的当前亮度匹配,所述亮度调节策略包括所述发光器件亮度的至少两个档位和与所述至少两个档位对应的环境光亮度范围;The processor is configured to: judge whether the ambient light brightness range in which the ambient light brightness is located matches the current brightness of the light emitting device based on a brightness adjustment strategy, where the brightness adjustment strategy includes at least two of the brightness of the light emitting device. gears and ambient light brightness ranges corresponding to the at least two gears; 在所述当前环境光亮度所处的环境光亮度范围与所述发光器件亮度不匹配的情况下,向所述控制器发送所述第一调节指令。When the ambient light brightness range of the current ambient light brightness does not match the brightness of the light emitting device, the first adjustment instruction is sent to the controller. 11.根据权利要求9或10所述的电子设备,其特征在于,所述环境光亮度为所述电子设备初次开机或者重启后所对应的环境光亮度。11. The electronic device according to claim 9 or 10, wherein the ambient light brightness is the corresponding ambient light brightness after the electronic device is turned on for the first time or restarted. 12.根据权利要求9或10所述的电子设备,其特征在于,所述电子设备与所述第二电子设备有线连接,所述第二电子设备为所述电子设备的输入设备;12. The electronic device according to claim 9 or 10, wherein the electronic device is wired to the second electronic device, and the second electronic device is an input device of the electronic device; 所述处理器用于:通过通信模块向所述控制器发送所述第一信息,所述通信模块支持USB技术或管理规范WMI技术。The processor is configured to: send the first information to the controller through a communication module, and the communication module supports USB technology or management specification WMI technology. 13.根据权利要求9或10所述的电子设备,其特征在于,所述电子设备与所述第二电子设备无线连接,所述第二电子设备为所述电子设备的输入设备;13. The electronic device according to claim 9 or 10, wherein the electronic device is wirelessly connected to the second electronic device, and the second electronic device is an input device of the electronic device; 所述处理器用于:通过通信模块向所述控制器发送所述第一信息,所述通信模块支持蓝牙技术、WI-FI技术或红外通信技术中的任一种。The processor is configured to: send the first information to the controller through a communication module, and the communication module supports any one of Bluetooth technology, WI-FI technology or infrared communication technology. 14.一种电子设备,其特征在于,包括:处理器、环境光传感器、控制器和发光器件,所述电子设备用于通过所述处理器、所述环境光传感器以及所述控制器执行如权利要求1至8中任一项所述的方法。14. An electronic device, characterized in that it comprises: a processor, an ambient light sensor, a controller, and a light emitting device, and the electronic device is used to execute the following steps through the processor, the ambient light sensor, and the controller The method according to any one of claims 1 to 8. 15.一种亮度调节系统,其特征在于,包括:第一电子设备和第二电子设备,所述第一电子设备包括处理器和环境光传感器,所述第二电子设备包括控制器和发光器件,所述第一电子设备和所述第二电子设备用于通过所述处理器、所述环境光传感器以及所述控制器执行如权利要求1至8中任一项所述的方法。15. A brightness adjustment system, characterized by comprising: a first electronic device and a second electronic device, the first electronic device includes a processor and an ambient light sensor, and the second electronic device includes a controller and a light emitting device , the first electronic device and the second electronic device are configured to execute the method according to any one of claims 1 to 8 through the processor, the ambient light sensor and the controller. 16.一种计算机可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序包括用于实现如权利要求1至8中任一项所述的方法中处理器对应的步骤的指令。16. A computer-readable storage medium, characterized in that it is used to store a computer program, the computer program comprising instructions for implementing the steps corresponding to the processor in the method according to any one of claims 1 to 8 .
CN202111187303.5A 2021-10-12 2021-10-12 Brightness adjustment method and electronic device Active CN115022997B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111187303.5A CN115022997B (en) 2021-10-12 2021-10-12 Brightness adjustment method and electronic device
CN202310776973.3A CN116981125A (en) 2021-10-12 2021-10-12 Brightness adjusting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111187303.5A CN115022997B (en) 2021-10-12 2021-10-12 Brightness adjustment method and electronic device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310776973.3A Division CN116981125A (en) 2021-10-12 2021-10-12 Brightness adjusting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115022997A CN115022997A (en) 2022-09-06
CN115022997B true CN115022997B (en) 2023-07-11

Family

ID=83064257

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111187303.5A Active CN115022997B (en) 2021-10-12 2021-10-12 Brightness adjustment method and electronic device
CN202310776973.3A Pending CN116981125A (en) 2021-10-12 2021-10-12 Brightness adjusting method and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202310776973.3A Pending CN116981125A (en) 2021-10-12 2021-10-12 Brightness adjusting method and electronic equipment

Country Status (1)

Country Link
CN (2) CN115022997B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118190152A (en) * 2022-12-14 2024-06-14 荣耀终端有限公司 Ambient light sensor data acquisition method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427647A (en) * 2011-12-16 2012-04-25 广东朗视光电技术有限公司 Lighting lamp capable of automatically adjusting brightness and light color
CN102612245A (en) * 2012-03-28 2012-07-25 上海阿卡得电子有限公司 Segmented dimming control circuit for electronic ballast of fluorescent lamp
CN102833905A (en) * 2011-06-17 2012-12-19 博西华电器(江苏)有限公司 PWM (pulse width modulation) dimming method and device for LED (light-emitting diode)
CN105282945A (en) * 2015-11-26 2016-01-27 上海斐讯数据通信技术有限公司 Control method and control system of intelligent lamplight
CN207168290U (en) * 2017-02-17 2018-04-03 东莞市名展展示柜有限公司 Intelligent dimming lamp

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7049575B2 (en) * 2003-09-09 2006-05-23 Apple Computer Inc. System for sensing ambient light having ambient stability probability
US7351947B2 (en) * 2006-05-23 2008-04-01 Dell Products L.P. System and method for ambient light sensor testing for an information handling system display
CN101197865A (en) * 2006-12-07 2008-06-11 乐金电子(中国)研究开发中心有限公司 Illumination method of mobile communication terminal and mobile communication terminal thereof
US8031164B2 (en) * 2007-01-05 2011-10-04 Apple Inc. Backlight and ambient light sensor system
CN101789230B (en) * 2009-01-24 2013-09-04 联想(北京)有限公司 Electronic equipment and display device screen brightness adjusting method thereof
CN201477523U (en) * 2009-07-09 2010-05-19 古绍仑 Driver module of flashing keyboard and flashing keyboard with driver module
US8860653B2 (en) * 2010-09-01 2014-10-14 Apple Inc. Ambient light sensing technique
CN202331277U (en) * 2011-10-20 2012-07-11 中国矿业大学 Notebook computer capable of automatically adjusting keyboard brightness
CN104684212B (en) * 2015-01-28 2019-02-12 广州萃智信息科技有限公司 A kind of light source drive device
CN108391351A (en) * 2018-03-02 2018-08-10 联想(北京)有限公司 A kind of brightness adjusting method of keyboard light, device and electronic equipment
CN111090298A (en) * 2018-10-24 2020-05-01 大连恒天魔力网络科技有限公司 A light-emitting device control system and method based on a computer keyboard

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833905A (en) * 2011-06-17 2012-12-19 博西华电器(江苏)有限公司 PWM (pulse width modulation) dimming method and device for LED (light-emitting diode)
CN102427647A (en) * 2011-12-16 2012-04-25 广东朗视光电技术有限公司 Lighting lamp capable of automatically adjusting brightness and light color
CN102612245A (en) * 2012-03-28 2012-07-25 上海阿卡得电子有限公司 Segmented dimming control circuit for electronic ballast of fluorescent lamp
CN105282945A (en) * 2015-11-26 2016-01-27 上海斐讯数据通信技术有限公司 Control method and control system of intelligent lamplight
CN207168290U (en) * 2017-02-17 2018-04-03 东莞市名展展示柜有限公司 Intelligent dimming lamp

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Peripheral Dimming: A New Low-Power Technology for OLED Display Based on Gaze Tracking;Jeong-Sik Kim;《IEEE Access》;全文 *
基于低压电力线载波通信的隧道照明控制系统研究;黄颖;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;全文 *

Also Published As

Publication number Publication date
CN115022997A (en) 2022-09-06
CN116981125A (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN111782102B (en) Window display method and related device
US11429439B2 (en) Task scheduling based on performance control conditions for multiple processing units
US10949012B2 (en) Electronic device comprising force sensor
CN106020990B (en) Control method of central processing unit and terminal equipment
KR102599383B1 (en) Electronic device for displaying an executable application on a split screen and method for the same
US20200177726A1 (en) Method for switching applications in split screen mode, computer device and computer-readable storage medium
US10146582B2 (en) Method for assigning priority to multiprocessor tasks and electronic device supporting the same
KR102691293B1 (en) Method and apparatus for reducing power consumption of electronic device
CN107484231B (en) Screen parameter adjusting method, device, terminal and computer readable storage medium
CN105761672B (en) A kind of driving voltage method of adjustment, device and terminal
WO2019015569A1 (en) Method and device for adjusting screen brightness
US10402222B2 (en) Task migration method and apparatus
WO2018032581A1 (en) Method and apparatus for application program control
CN105940770A (en) Indoor lighting device, indoor lighting system and method of operation thereof
CN107250969A (en) Screen opening method, device and electronic equipment
CN112445407B (en) Display method and electronic device
CN114995676A (en) Fingerprint anti-mistouch method, graphical interface and electronic device
US20140118263A1 (en) Information processing apparatus and operation control method
CN116027880A (en) Resource scheduling method and electronic device
CN115022997B (en) Brightness adjustment method and electronic device
CN106791021A (en) The control method and mobile terminal of a kind of flash lamp
US10871875B2 (en) Cursor identification on an IHS display
CN108762838B (en) Application program preloading method and device, storage medium and terminal
CN107291213B (en) Mode selection method, apparatus, terminal, and computer-readable storage medium
CN105916267A (en) Method, device and mobile terminal for adjusting brightness of flash light

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China