WO2019061283A1 - 色温传感器的自动测试方法、系统 - Google Patents

色温传感器的自动测试方法、系统 Download PDF

Info

Publication number
WO2019061283A1
WO2019061283A1 PCT/CN2017/104350 CN2017104350W WO2019061283A1 WO 2019061283 A1 WO2019061283 A1 WO 2019061283A1 CN 2017104350 W CN2017104350 W CN 2017104350W WO 2019061283 A1 WO2019061283 A1 WO 2019061283A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
color temperature
temperature sensor
data
thread
Prior art date
Application number
PCT/CN2017/104350
Other languages
English (en)
French (fr)
Inventor
缪威
Original Assignee
深圳传音通讯有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/104350 priority Critical patent/WO2019061283A1/zh
Publication of WO2019061283A1 publication Critical patent/WO2019061283A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Definitions

  • the present application relates to the field of sensor testing technologies, and in particular, to an automatic testing method for a color temperature sensor, and to an automatic testing system for a color temperature sensor.
  • color temperature sensors such as mobile phones.
  • the color temperature sensor works by adjusting the AWB (Auto White Balance) according to the color temperature to process the picture for a more realistic and closer to the human eye.
  • AWB Auto White Balance
  • the purpose of the present application is to provide an automatic test method and system for a color temperature sensor, which can realize an automated online test color temperature sensor without manual participation, and can effectively ensure the accuracy and success rate of the test.
  • the present application provides an automatic test method for a color temperature sensor, wherein the automatic test method includes:
  • the step of creating a color temperature sensor test thread specifically includes:
  • a color temperature sensor test thread of rgb_sensor_test_thread is created in the factory architecture and kernel layer of the MTK platform, wherein the version of the Android is higher than or equal to the version of Android 6.0, and the kernel driver based on kemel-3.18 is used. .
  • the step of waking up the color temperature sensor by the test thread specifically includes:
  • the step of acquiring the test data returned by the color temperature sensor in the preset test scenario operation comprises: performing a read operation on the file node RGB_SENSOR_DATA of the kernel layer by the test thread to obtain the Test data
  • the step of determining whether the test data is consistent according to the standard data of the preset test scenario includes: using a show-factory-values node to determine the test data according to the standard data of the preset test scenario. is it right or not.
  • the method further includes:
  • the present application provides an automatic test system for a color temperature sensor, wherein the automatic test system includes a processor, and the processor is configured to execute an automatic test program of a color temperature sensor.
  • the steps to achieve include:
  • a color temperature sensor test thread of rgb_sensor_test_thread is created in the factory architecture and kernel layer of the MTK platform, wherein the version of the Android is higher than or equal to the version of Android 6.0, and the kernel driver based on kemel-3.18 is used.
  • the processor wakes up the color temperature sensor by using the test thread, and the implemented steps specifically include
  • the processor obtains test data returned by the color temperature sensor in a preset test scenario
  • the implemented steps specifically include:: using the test thread to the file node of the kernel layer, RGB_SEN
  • SOR_DATA performs a read operation to obtain the test data
  • the processor determines, according to the standard data of the preset test scenario, whether the test data is consistent, and the implementing step specifically includes: determining, by using a show-factory-values node, the standard data of the preset test scenario. Whether the test data is correct.
  • the processor according to whether the standard data and the test data match, output a corresponding test result, and then further comprising: implementing, by the test thread, a file node of the kernel layer, RGB_S
  • ENSOR_SLEEP performs a read operation to notify the color temperature sensor to enter a standby state, and destroys the test thread
  • the automatic test system further includes: a memory for storing automatic test program data of the color temperature sensor.
  • the automatic test method and system for the color temperature sensor of the present application in the test mode, creating a color temperature sensor test thread, waking up the color temperature sensor by the test thread, triggering the color temperature sensor to work in a preset test scenario, and obtaining the The test data returned by the color temperature sensor in the preset test scenario, determining whether the test data matches according to the standard data of the preset test scenario, and finally outputting a corresponding test according to whether the standard data and the test data match result.
  • the color temperature sensor of the present application does not require manual participation, so the labor cost can be effectively reduced.
  • the manual operation of the device is no longer required, and the camera function is no longer required.
  • the wake-up color temperature sensor can be triggered to work, which greatly shortens the test process and improves the test efficiency.
  • the application no longer judges the test result by manual participation, and avoids the test method of the human eye and the feeling in the prior art. The problem of deviation, and thus the accuracy of the test results. It is not difficult to see that this application can realize an automated online test color temperature sensor without manual intervention and can effectively guarantee the accuracy and success rate of the test.
  • FIG. 1 is a flow chart of an embodiment of an automatic test method for a color temperature sensor of the present application.
  • FIG. 2 is a block diagram of an embodiment of an automatic test system for a color temperature sensor of the present application.
  • FIG. 3 is a flow chart of a specific application example of an automatic test method for a color temperature sensor of the present application.
  • the term “if” may be interpreted to mean “when" or "once” or “in response to determining” or “in response to detecting” depending on the context.
  • the phrase “if determined” or “if a condition or event is stated” is optionally interpreted as meaning “once determined” or “in response to determining” or “once detected” The stated condition or event] or “in response to the detection of [stated condition or event]”.
  • FIG. 1 is a flowchart of an embodiment of an automatic test method for a color temperature sensor of the present application.
  • the automatic test method of the color temperature sensor includes, but is not limited to, the following steps.
  • Step S101 In the test mode, a color temperature sensor test thread is created.
  • the step S101 creates a color temperature sensor test thread, which may specifically include: a factory architecture on the MTK (Lianfa Technology Co., Ltd.) platform under a software architecture based on Google (Google) Android (Android) And creating a color temperature sensor test thread of rgb_sensor_test_thread in the kernel layer, wherein the version of the Android is higher than or equal to Android
  • the solution of the present application is based on a Google Android software architecture and a three-way color temperature sensor core
  • the slice is implemented, and the relevant code can be pre-written into the factory architecture and the kernel layer involving the MTK platform.
  • this application is mainly for Android system smart devices with color temperature sensors, such as mobile phones, tablets, etc. Of course, it can also be used for TVs, digital cameras and games with color temperature sensors and Android technology. Machine and so on.
  • Step S102 the color temperature sensor is awakened by the test thread, and the color temperature sensor is triggered to work in a preset test scenario.
  • the step S102 waking up the color temperature sensor by using the test thread may specifically include: performing a read operation on the file node RGB_SENSOR_AWKE of the kernel layer by the test thread to wake up the color temperature sensor. .
  • Step S103 Acquire test data returned by the color temperature sensor after working in a preset test scenario.
  • the test data returned by the color temperature sensor in the preset test scenario is obtained, which may include: the file node RGB_S of the kernel layer by the test thread
  • ENSOR_DATA performs a read operation to obtain the test data
  • Step S104 Determine, according to the standard data of the preset test scenario, whether the test data matches.
  • the step of determining, by the step S104, whether the test data is consistent according to the standard data of the preset test scenario may specifically include: using a show-factory-values node according to the standard of the preset test scenario The data determines whether the test data is correct.
  • Step S105 according to whether the standard data and the test data match, output corresponding test results.
  • the step S105 may further include: after the step of outputting the corresponding test result according to whether the standard data and the test data are consistent, the file node of the kernel layer by using the test thread RGB_SENSOR_SLEEP performs a read operation to notify the color temperature sensor to enter a standby state and destroy the test thread.
  • the present application applies a preset test scenario to the color temperature sensor for performing an automatic test method, for example, a color temperature test device may be used, and the color temperature test device is provided with a box body.
  • the housing includes a chamber, a light source and a carrying platform, the light source is disposed in the chamber, the light source is configured to generate predetermined light according to a first control instruction, and the carrying platform is disposed in the chamber, the bearing
  • the mobile station is configured to carry a mobile phone with a color temperature sensor, and the loading platform is further configured to rotate within a first predetermined angle range according to the second control instruction, to drive the mobile phone to rotate within a second predetermined angle range, wherein the mobile phone
  • the color temperature sensor is configured to acquire the predetermined light provided by the light source when the mobile phone is located at a predetermined orientation, and generate test data of a color temperature.
  • the standard data of the preset test scenario can be obtained by other means. Then, according to the standard data, it can be judged whether the test data is correct.
  • FIG. 2 is a block diagram of an embodiment of an automatic test system for a color temperature sensor of the present application.
  • the automatic test system includes, but is not limited to, a processor 21 and a memory 22.
  • the processor 21 is configured to execute an automatic test program data of the color temperature sensor, and the implemented steps include: creating a color temperature sensor test thread in the test mode; and awakening the color temperature sensor by the test thread The color temperature sensor is triggered to work in a preset test scenario; the test data returned by the color temperature sensor in the preset test scenario is obtained; and the test data is determined according to the standard data of the preset test scenario; Corresponding test results are output according to whether the standard data and the test data match.
  • the processor 21 creates a color temperature sensor test thread, and the implemented steps specifically include:
  • a color temperature sensor test thread of rgb_sensor_test_thread is created in the factory architecture and kernel layer of the MTK platform, wherein the version of the Android is higher than or equal to the version of Android 6.0, and the kernel driver based on kemel-3.18 is used. .
  • the processor 21, by using the test thread to wake up the color temperature sensor may further include: performing a read operation on the file node RGB_SENSOR_AWKE of the kernel layer by the test thread to wake up the color temperature. sensor.
  • the processor 21 obtains test data returned by the color temperature sensor in a preset test scenario, and the implemented steps specifically include: performing, by using the test thread, the file node RGB_SENSOR_DATA of the kernel layer A read operation is performed to obtain the test data.
  • the processor 21 determines, according to the standard data of the preset test scenario, whether the test data is consistent, and the implementing step specifically includes: using the show-factory-values node according to the preset test scenario.
  • the standard data determines whether the test data is correct.
  • the processor 21 outputs a corresponding test result according to whether the standard data and the test data match, and further includes an implementation step:: using the test thread to a file node of a kernel layer RGB_SENSOR_SLEEP performs a read operation to notify the color temperature sensor to enter a standby state and destroy the test thread.
  • the memory 22 is configured to store automatic test program data of the color temperature sensor.
  • the automatic test program data of the color temperature sensor may not be stored in the cloud, and is not limited herein.
  • FIG. 3 is a flowchart of a specific application example of an automatic test method for a color temperature sensor of the present application.
  • RGB_SENSOR_SLEEP causes the color temperature sensor to sleep.
  • the present application may further provide a readable storage medium, where the readable storage medium stores color temperature sensing
  • the program data of the automatic test of the device, the program data of the automatic test of the color temperature sensor is executed, and the actual steps include but are not limited to the following.
  • creating a color temperature sensor test thread may specifically include:
  • a color temperature sensor test thread of rgb_sensor_test_thread is created in the factory architecture and kernel layer of the MTK platform, wherein the version of the Android is higher than or equal to the version of Android 6.0, and the kernel driver based on kemel-3.18 is used.
  • the solution of the present application is implemented based on the Google Android software architecture and the three-party color temperature sensor chip, wherein the relevant code can be pre-written into the factory architecture and the kem el layer involving the MTK platform.
  • the present application is mainly directed to an Android system smart device equipped with a color temperature sensor, such as a mobile phone, a tablet computer, etc., of course, it is also possible to provide a television, a digital camera and a color temperature sensor that are applied with the Androi d technology. Game consoles, etc.
  • the color temperature sensor is awakened by the test thread, and the color temperature sensor is triggered to work in a preset test scenario.
  • the second step of waking up the color temperature sensor by using the test thread may include: performing a read operation on the file node RGB_SENSOR_AWKE of the kernel layer by the test thread to wake up the color temperature sensor.
  • the third step is to obtain test data returned by the color temperature sensor after working in a preset test scenario.
  • the test data returned by the color temperature sensor in the preset test scenario is obtained, which may include: the file node RGB_SEN of the kernel layer by the test thread
  • SOR_DATA performs a read operation to obtain the test data
  • the step of determining, according to the standard data of the preset test scenario, whether the test data is consistent may include: using a show-factory-values node according to the preset test scenario The standard data determines whether the test data is correct.
  • the corresponding test result is output according to whether the standard data and the test data match.
  • the fifth step may further include: using the test thread to the file node of the kernel layer RGB_SENSOR_SLEEP performs a read operation to notify the color temperature sensor to enter a standby state and destroy the test thread.
  • the readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-0 nly Memory), a random access memory (RAM), a magnetic disk, or an optical disk.
  • the readable storage medium can be executed by a smart terminal processor with data processing capability, such as a mobile phone, a tablet computer, a notebook computer, etc., wherein data transmission can be performed through a wired connection or a wireless connection between the two. limited.
  • the automatic test method and system for the color temperature sensor of the present application in the test mode, creating a color temperature sensor test thread, waking up the color temperature sensor by the test thread, triggering the color temperature sensor to work in a preset test scenario, acquiring the The test data returned by the color temperature sensor in the preset test scenario, determining whether the test data matches according to the standard data of the preset test scenario, and finally outputting a corresponding test according to whether the standard data and the test data match result.
  • the color temperature sensor of the present application does not require manual participation, so the labor cost can be effectively reduced.
  • the manual operation of the device is no longer required, and the camera function is no longer required.
  • the wake-up color temperature sensor can be triggered to work, which greatly shortens the test process and improves the test efficiency.
  • the application no longer judges the test result by manual participation, and avoids the test method of the human eye and the feeling in the prior art. The problem of deviation, and thus the accuracy of the test results.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

本申请提供一种色温传感器的自动测试方法和系统,在测试模式下创建色温传感器测试线程,通过测试线程唤醒色温传感器,触发色温传感器在预设测试场景进行工作,获取色温传感器在预设测试场景工作时所返回的测试数据,根据预设测试场景的标准数据判断测试数据是否相符,最终根据标准数据和测试数据是否相符输出对应的测试结果。通过上述方式,本申请不再需要人工参与,因此可以有效地降低人力成本;同时,通过自动测试的方式,不再需要人工操作启动设备、也不再需要启动相机功能,即可触发唤醒色温传感器工作,很大程度上缩短了测试过程、提高了测试效率;此外,本申请不再通过人工参与判断测试结果,避免人眼和感觉所导致的偏差问题,保证准确率。

Description

色温传感器的自动测试方法、 系统 技术领域
[0001] 本申请涉及传感器测试技术领域, 具体涉及一种色温传感器的自动测试方法、 还涉及一种色温传感器的自动测试系统。
背景技术
[0002] 现有技术中, 很多智能终端都配置有色温传感器, 比如手机。 色温传感器的作 用是根据色温实吋调节 AWB (自动白平衡) 以处理图片, 得到更逼真, 更接近 人眼的照相效果。
[0003] 需要说明的是, 在生产过程中需要测试手机各个功能模块是否正常, 比如, 在 产线上就需要对色温传感器这颗芯片进行测试以确认其是否正常工作。
[0004] 具体而言, 测试色温传感器功能是否正常, 既需要测试其是否已经可以工作, 也需要测试其数据是否正常。 但是, 现有技术一般是依靠人眼判断芯片是否正 常工作以及数据是否正常, 而这种人为判断的方式往往影响判断的准确率; 此 夕卜, 每次测试吋, 都需要进入相机才能使色温传感器工作, 因此伴随着长吋间 的幵机吋间, 严重影响测试效率。
技术问题
[0005] 现有技术中, 测试色温传感器吋, 需要人工参与, 导致需要较高的人力成本。
而且在测试的过程中, 需要人工操作启动设备、 再通过操作设备启动相机功能 , 接着才能触发色温传感器工作, 这个测试过程耗吋长、 效率低下。 此外, 在 测试结果分析吋, 会需要人工参与判断测试结果, 这种依靠人眼和感觉的测试 方式, 容易给测试结果带来较大的偏差, 甚至造成完全错误的测试结果。
问题的解决方案
技术解决方案
[0006] 本申请的目的在于, 提供一种色温传感器的自动测试方法、 系统, 其可以实现 自动化的在线测试色温传感器, 无需人工参与、 且能够有效地保证测试的准确 率和成功率。 [0007] 基于上述技术问题, 本申请提供一种色温传感器的自动测试方法, 其中, 所述 自动测试方法包括:
[0008] 在测试模式下, 创建色温传感器测试线程;
[0009] 通过所述测试线程唤醒色温传感器, 触发所述色温传感器在预设测试场景进行 工作;
[0010] 获取所述色温传感器在预设测试场景工作吋所返回的测试数据;
[0011] 根据所述预设测试场景的标准数据判断所述测试数据是否相符;
[0012] 根据所述标准数据和所述测试数据是否相符输出对应的测试结果。
[0013] 其中, 所述创建色温传感器测试线程的步骤, 具体包括:
[0014] 在基于 Google
Android的软件架构下, 在 MTK平台的工厂架构及 kernel层中创建 rgb_sensor_test— thread的色温传感器测试线程, 其中, 所述 Android的版本高于或等于 Android 6.0 版本、 且采用基于 kemel-3.18的内核驱动。
[0015] 其中, 所述通过所述测试线程唤醒色温传感器的步骤, 具体包括:
[0016] 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_AWKE进行读取操作
, 以唤醒所述色温传感器。
[0017] 其中: 所述获取所述色温传感器在预设测试场景工作吋所返回的测试数据的步 骤, 具体包括: 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_DATA 进行读取操作, 以获取所述测试数据;
[0018] 所述根据所述预设测试场景的标准数据判断所述测试数据是否相符的步骤, 具 体包括: 利用 show—factory—values节点根据所述预设测试场景的标准数据判断所 述测试数据是否正确。
[0019] 其中, 所述根据所述标准数据和所述测试数据是否相符输出对应的测试结果的 步骤之后, 还包括:
[0020] 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_SLEEP进行读取操作
, 以通知色温传感器进入待机状态, 并销毁所述测试线程。
[0021] 基于上述技术问题, 本申请提供一种色温传感器的自动测试系统, 其中, 所述 自动测试系统包括处理器, 所述处理器用于执行色温传感器的自动测试程序数 据吋, 实现的步骤包括:
[0022] 在测试模式下, 创建色温传感器测试线程;
[0023] 通过所述测试线程唤醒色温传感器, 触发所述色温传感器在预设测试场景进行 工作;
[0024] 获取所述色温传感器在预设测试场景工作吋所返回的测试数据;
[0025] 根据所述预设测试场景的标准数据判断所述测试数据是否相符;
[0026] 根据所述标准数据和所述测试数据是否相符输出对应的测试结果。
[0027] 其中, 所述处理器, 创建色温传感器测试线程, 实现的步骤具体包括:
[0028] 在基于 Google
Android的软件架构下, 在 MTK平台的工厂架构及 kernel层中创建 rgb_sensor_test_ thread的色温传感器测试线程, 其中, 所述 Android的版本高于或等于 Android 6.0 版本、 且采用基于 kemel-3.18的内核驱动。
[0029] 其中, 所述处理器, 通过所述测试线程唤醒色温传感器, 实现的步骤具体包括
[0030] 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_AWKE进行读取操作
, 以唤醒所述色温传感器。
[0031] 其中: 所述处理器, 获取所述色温传感器在预设测试场景工作吋所返回的测试 数据, 实现的步骤具体包括: 通过所述测试线程对 kernel层的文件节点 RGB_SEN
SOR_DATA进行读取操作, 以获取所述测试数据;
[0032] 所述处理器, 根据所述预设测试场景的标准数据判断所述测试数据是否相符, 实现的步骤具体包括: 利用 show—factory—values节点根据所述预设测试场景的标 准数据判断所述测试数据是否正确。
[0033] 其中, 所述处理器, 根据所述标准数据和所述测试数据是否相符输出对应的测 试结果, 之后还包括实现步骤: 通过所述测试线程对 kernel层的文件节点 RGB_S
ENSOR_SLEEP进行读取操作, 以通知色温传感器进入待机状态, 并销毁所述测 试线程;
[0034] 所述自动测试系统还包括: 存储器, 所述存储器用于存储所述色温传感器的自 动测试程序数据。 发明的有益效果
有益效果
[0035] 本申请色温传感器的自动测试方法和系统, 在测试模式下, 创建色温传感器测 试线程, 通过所述测试线程唤醒色温传感器, 触发所述色温传感器在预设测试 场景进行工作, 获取所述色温传感器在预设测试场景工作吋所返回的测试数据 , 根据所述预设测试场景的标准数据判断所述测试数据是否相符, 最终根据所 述标准数据和所述测试数据是否相符输出对应的测试结果。 通过上述方式, 本 申请测试色温传感器吋, 不再需要人工参与, 因此可以有效地降低人力成本; 同吋, 通过自动测试的方式, 不再需要人工操作启动设备、 也不再需要启动相 机功能, 即可触发唤醒色温传感器工作, 很大程度上缩短了测试过程、 提高了 测试效率; 此外, 本申请不再通过人工参与判断测试结果, 避免现有技术中人 眼和感觉的测试方式所导致的偏差问题, 进而保证测试结果的准确率。 不难看 出, 本申请可以实现自动化的在线测试色温传感器, 无需人工参与、 且能够有 效地保证测试的准确率和成功率。
对附图的简要说明
附图说明
[0036] 图 1为本申请色温传感器的自动测试方法一实施方式的流程图。
[0037] 图 2为本申请色温传感器的自动测试系统一实施方式的模块框图。
[0038] 图 3为本申请色温传感器的自动测试方法一具体应用例的流程图。
本发明的实施方式
[0039] 以下由特定的具体实施例说明本申请的实施方式, 熟悉此技术的人士可由本说 明书所揭露的内容轻易地了解本申请的其他优点及功效。
[0040] 在下述描述中, 参考附图, 附图描述了本申请的若干实施例。 应当理解, 还可 使用其他实施例, 并且可以在不背离本公幵的精神和范围的情况下进行机械组 成、 结构、 电气以及操作上的改变。 下面的详细描述不应该被认为是限制性的 , 并且本申请的实施例的范围仅由公布的专利的权利要求书所限定。 这里使用 的术语仅是为了描述特定实施例, 而并非旨在限制本申请。
[0041] 虽然在一些实例中术语第一、 第二等在本文中用来描述各种模块, 但是这些模 块不应当被这些术语限制。 这些术语仅用来将一个元件与另一个元件进行区分
[0042] 再者, 如同在本文中所使用的, 单数形式"一"、 "一个 "和"该"旨在也包括复数 形式, 除非上下文中有相反的指示.应当进一步理解, 术语"包含"、 "包括 "表明 存在所述的特征、 步骤、 操作、 元件、 组件、 项目、 种类、 和 /或组, 但不排除 一个或多个其他特征、 步骤、 操作、 元件、 组件、 项目、 种类、 和 /或组的存在 、 出现或添加。 此处使用的术语"或"和"和 /或"被解释为包括性的, 或意味着任 一个或任何组合。 因此, "A、 B或 C"或者" A、 B和 /或 C"意味着"以下任一个: A ; B ; C; A和 B ; A和 C; B和 C; A、 B和 C"。 仅当元件、 功能、 步骤或操作的组 合在某些方式下内在地互相排斥吋, 才会出现该定义的例外。
[0043] 如本文所使用的, 术语"如果"取决于上下文可以被解释为意味着"当 ...吋"或者 "一旦…则"或者"响应于确定"或"响应于检测到"。 类似地, 短语"如果确定"或者 "如果检测到 [陈述的条件或事件]"取决于上下文可选地被解释为意味着"一旦确 定, 则"或者"响应于确定"或者"一旦检测到 [陈述的条件或事件]"或者"响应于检 测到 [陈述的条件或事件]"。
[0044] 具体请参阅图 1, 图 1为本申请色温传感器的自动测试方法一实施方式的流程图
[0045] 在本实施方式中, 所述色温传感器的自动测试方法包括但不限于如下几个步骤 [0046] 步骤 S101, 在测试模式下, 创建色温传感器测试线程。
[0047] 需要说明的是, 所述步骤 S101创建色温传感器测试线程, 具体可以包括: 在基 于 Google (谷歌) Android (安卓) 的软件架构下, 在 MTK (联发科技股份有限 公司)平台的工厂架构及 kernel层中创建 rgb_sensor_test_thread的色温传感器测试 线程, 其中, 所述 Android的版本高于或等于 Android
6.0版本、 且采用基于 kernel-3.18的内核驱动。
[0048] 具体而言, 本申请的方案为基于 Google Android软件架构和三方色温传感器芯 片进行实施, 其中相关代码可以预先编写到涉及 MTK平台的 factory (工厂) 架 构以及 kernel层中。 换而言之, 本申请主要针对设置有色温传感器的 Android系统 智能设备, 比如手机、 平板电脑等, 当然, 也可以针对设置有色温传感器、 且 随着 Android技术应用到的电视、 数码相机和游戏机等。
[0049] 值得注意的是, Android 6.0版本, 即 2015年 5月 28日 Android的 Marshmallow ( 棉花糖) 版本, 所述版本的系统采用扁平化的 MeterialDesign方式, 并在对软件 体验与运行性能上进行了大幅度的优化。
[0050] 步骤 S102, 通过所述测试线程唤醒色温传感器, 触发所述色温传感器在预设测 试场景进行工作。
[0051] 在本实施方式中, 所述步骤 S 102通过所述测试线程唤醒色温传感器, 具体可以 包括: 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_AWKE进行读取 操作, 以唤醒所述色温传感器。
[0052] 步骤 S103, 获取所述色温传感器在预设测试场景工作吋所返回的测试数据。
[0053] 需要说明的是, 所述步骤 S103获取所述色温传感器在预设测试场景工作吋所返 回的测试数据, 具体可以包括: 通过所述测试线程对 kernel层的文件节点 RGB_S
ENSOR_DATA进行读取操作, 以获取所述测试数据;
[0054] 步骤 S104, 根据所述预设测试场景的标准数据判断所述测试数据是否相符。
[0055] 相应地, 所述步骤 S104根据所述预设测试场景的标准数据判断所述测试数据是 否相符的步骤, 具体可以包括: 利用 show—factory—values节点根据所述预设测试 场景的标准数据判断所述测试数据是否正确。
[0056] 步骤 S105, 根据所述标准数据和所述测试数据是否相符输出对应的测试结果
[0057] 在本实施方式中, 所述步骤 S 105根据所述标准数据和所述测试数据是否相符输 出对应的测试结果的步骤之后, 还可以包括: 通过所述测试线程对 kernel层的文 件节点 RGB_SENSOR_SLEEP进行读取操作, 以通知色温传感器进入待机状态, 并销毁所述测试线程。
[0058] 不难理解的是, 本申请通过创建色温传感器测试线程既可以实现自动幵始测试 , 也可以在测试完成后自动停止测试, 实现了自动化测试的全过程, 而无需人 工过多参与。
[0059] 此外, 在本申请的其中一个实施方式中, 本申请对色温传感器进行自动测试方 法所采用的预设测试场景, 比如可以采用色温测试装置, 所述色温测试装置设 置有箱体, 所述箱体包括腔室、 光源和承载台, 所述光源设置于所述腔室内, 所述光源用于根据第一控制指令产生预定光线, 所述承载台设置于所述腔室内 , 所述承载台用于承载设置色温传感器的手机, 所述承载台还用于根据第二控 制指令在第一预定角度范围内转动, 以带动所述手机在第二预定角度范围内转 动, 其中, 所手机中的色温传感器用于在所述手机位于预定方位吋获取所述光 源所提供的所述预定光线, 并生成色温的测试数据。 而所述预设测试场景的标 准数据可以通过其他方式获得, 接着, 根据标准数据就可以判断所述测试数据 是否正确。
[0060] 请接着参阅图 2, 图 2为本申请色温传感器的自动测试系统一实施方式的模块框 图。
[0061] 在本实施方式中, 所述自动测试系统包括但不限于处理器 21和存储器 22。
[0062] 需要说明的是的, 所述处理器 21用于执行色温传感器的自动测试程序数据吋, 实现的步骤包括: 在测试模式下, 创建色温传感器测试线程; 通过所述测试线 程唤醒色温传感器, 触发所述色温传感器在预设测试场景进行工作; 获取所述 色温传感器在预设测试场景工作吋所返回的测试数据; 根据所述预设测试场景 的标准数据判断所述测试数据是否相符; 根据所述标准数据和所述测试数据是 否相符输出对应的测试结果。
[0063] 如前所述, 所述处理器 21, 创建色温传感器测试线程, 实现的步骤具体包括: 在基于 Google
Android的软件架构下, 在 MTK平台的工厂架构及 kernel层中创建 rgb_sensor_test— thread的色温传感器测试线程, 其中, 所述 Android的版本高于或等于 Android 6.0 版本、 且采用基于 kemel-3.18的内核驱动。
[0064] 对应地, 所述处理器 21, 通过所述测试线程唤醒色温传感器, 实现的步骤具体 可以包括: 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_AWKE进行 读取操作, 以唤醒所述色温传感器。 [0065] 进一步而言, 所述处理器 21, 获取所述色温传感器在预设测试场景工作吋所返 回的测试数据, 实现的步骤具体包括: 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_DATA进行读取操作, 以获取所述测试数据。
[0066] 同理, 所述处理器 21, 根据所述预设测试场景的标准数据判断所述测试数据是 否相符, 实现的步骤具体包括: 利用 show—factory—values节点根据所述预设测试 场景的标准数据判断所述测试数据是否正确。
[0067] 值得一提的是, 所述处理器 21, 根据所述标准数据和所述测试数据是否相符输 出对应的测试结果, 之后还包括实现步骤: 通过所述测试线程对 kernel层的文件 节点 RGB_SENSOR_SLEEP进行读取操作, 以通知色温传感器进入待机状态, 并 销毁所述测试线程。
[0068] 在本实施方式中, 所述存储器 22用于存储所述色温传感器的自动测试程序数据 。 当然, 在其他实施方式中, 也不可以不设置存储器 22, 而通过云端的方式存 储所述色温传感器的自动测试程序数据, 在此不作限定。
[0069] 请结合上述实施方式参阅图 3, 图 3为本申请色温传感器的自动测试方法一具体 应用例的流程图。
[0070] 进入工厂模式添加色温传感器测试项。
[0071 ] 创建 rgb_sensor_test_thread线程。
[0072] 调用驱动文件节点控制色温传感器工作并返回测试数据判断是否正常工作。 其 中, 其包括三个处理过程:
[0073] sys/bus/platform/drivers/nxu8010/chip_awake,
[0074] 调用 RGB_SENSOR_AWKE使色温传感器工作;
[0075] sys/bus/platform/drivers/nxu8010/factory_values,
[0076] 调用 RGB_SENSOR_DATA判断色温传感器测试数据是否正确并返回测试结果
[0077] sys/bus/platform/drivers/nxu8010/chip_sleep,
[0078] 调用 RGB_SENSOR_SLEEP使色温传感器休眠。
[0079] 数据正常与否?正常、 则测试通过, 如出现异常, 则测试失败。
[0080] 本申请还可以提供一种可读存储介质, 所述可读存储介质存储有进行色温传感 器的自动测试的程序数据, 所述色温传感器的自动测试的程序数据在被执行吋 , 可现实的步骤包括但不限于如下。
[0081] 第一步, 在测试模式下, 创建色温传感器测试线程。
[0082] 需要说明的是, 创建色温传感器测试线程, 具体可以包括: 在基于 Google
Android的软件架构下, 在 MTK平台的工厂架构及 kernel层中创建 rgb_sensor_test_ thread的色温传感器测试线程, 其中, 所述 Android的版本高于或等于 Android 6.0 版本、 且采用基于 kemel-3.18的内核驱动。
[0083] 具体而言, 本申请的方案为基于 Google Android软件架构和三方色温传感器芯 片进行实施, 其中相关代码可以预先编写到涉及 MTK平台的 factory架构以及 kem el层中。 换而言之, 本申请主要针对设置有色温传感器的 Android系统智能设备 , 比如手机、 平板电脑等, 当然, 也可以针对设置有色温传感器、 且随着 Androi d技术应用到的电视、 数码相机和游戏机等。
[0084] 值得注意的是, Android 6.0版本, 即 2015年 5月 28日 Android的 Marshmallow版 本, 所述版本的系统采用扁平化的 MeterialDesign方式, 并在对软件体验与运行 性能上进行了大幅度的优化。
[0085] 第二步, 通过所述测试线程唤醒色温传感器, 触发所述色温传感器在预设测试 场景进行工作。
[0086] 在本实施方式中, 第二步通过所述测试线程唤醒色温传感器, 具体可以包括: 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_AWKE进行读取操作, 以唤醒所述色温传感器。
[0087] 第三步, 获取所述色温传感器在预设测试场景工作吋所返回的测试数据。
[0088] 需要说明的是, 所述第三步获取所述色温传感器在预设测试场景工作吋所返回 的测试数据, 具体可以包括: 通过所述测试线程对 kernel层的文件节点 RGB_SEN
SOR_DATA进行读取操作, 以获取所述测试数据;
[0089] 第四步, 根据所述预设测试场景的标准数据判断所述测试数据是否相符。
[0090] 相应地, 所述第四步根据所述预设测试场景的标准数据判断所述测试数据是否 相符的步骤, 具体可以包括: 利用 show—factory—values节点根据所述预设测试场 景的标准数据判断所述测试数据是否正确。 [0091] 第五步, 根据所述标准数据和所述测试数据是否相符输出对应的测试结果。
[0092] 在本实施方式中, 所述第五步根据所述标准数据和所述测试数据是否相符输出 对应的测试结果的步骤之后, 还可以包括: 通过所述测试线程对 kernel层的文件 节点 RGB_SENSOR_SLEEP进行读取操作, 以通知色温传感器进入待机状态, 并 销毁所述测试线程。
[0093] 其中, 所述可读存储介质可以为 U盘、 移动硬盘、 只读存储器 (ROM, Read-0 nly Memory) 、 随机存取存储器 (RAM, Random Access Memory) 、 磁碟或者 光盘等各种可以存储程序代码的介质。 所述可读存储介质可以被手机、 平板电 脑、 笔记本电脑等具备数据处理能力的智能终端处理器执行, 其中, 两者之间 可以通过有线的连接、 或无线的连接进行数据传输, 在此不作限定。
工业实用性
[0094] 本申请色温传感器的自动测试方法和系统, 在测试模式下, 创建色温传感器测 试线程, 通过所述测试线程唤醒色温传感器, 触发所述色温传感器在预设测试 场景进行工作, 获取所述色温传感器在预设测试场景工作吋所返回的测试数据 , 根据所述预设测试场景的标准数据判断所述测试数据是否相符, 最终根据所 述标准数据和所述测试数据是否相符输出对应的测试结果。 通过上述方式, 本 申请测试色温传感器吋, 不再需要人工参与, 因此可以有效地降低人力成本; 同吋, 通过自动测试的方式, 不再需要人工操作启动设备、 也不再需要启动相 机功能, 即可触发唤醒色温传感器工作, 很大程度上缩短了测试过程、 提高了 测试效率; 此外, 本申请不再通过人工参与判断测试结果, 避免现有技术中人 眼和感觉的测试方式所导致的偏差问题, 进而保证测试结果的准确率。
[0095] 此外, 上述实施例仅例示性说明本申请的原理及其功效, 而非用于限制本申请 。 任何熟悉此技术的人士皆可在不违背本申请的精神及范畴下, 对上述实施例 进行修饰或改变。 因此, 举凡所属技术领域中具有通常知识者在未脱离本申请 所揭示的精神与技术思想下所完成的一切等效修饰或改变, 仍应由本申请的权 利要求所涵盖。

Claims

权利要求书
一种色温传感器的自动测试方法, 其中, 所述自动测试方法包括: 在测试模式下, 创建色温传感器测试线程;
通过所述测试线程唤醒色温传感器, 触发所述色温传感器在预设测试 场景进行工作;
获取所述色温传感器在预设测试场景工作吋所返回的测试数据; 根据所述预设测试场景的标准数据判断所述测试数据是否相符; 根据所述标准数据和所述测试数据是否相符输出对应的测试结果。 如权利要求 1所述的自动测试方法, 其中, 所述创建色温传感器测试 线程的步骤, 具体包括:
在基于 Google
Android的软件架构下, 在 MTK平台的工厂架构及 kernel层中创建 rgb_ sensor_test_thread的色温传感器测试线程, 其中, 所述 Android的版本 高于或等于 Android 6.0版本、 且采用基于 kemel-3.18的内核驱动。 如权利要求 2所述的自动测试方法, 其中, 所述通过所述测试线程唤 醒色温传感器的步骤, 具体包括:
通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_AWKE进行 读取操作, 以唤醒所述色温传感器。
如权利要求 2所述的自动测试方法, 其中:
所述获取所述色温传感器在预设测试场景工作吋所返回的测试数据的 步骤, 具体包括:
通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_DATA进行 读取操作, 以获取所述测试数据;
所述根据所述预设测试场景的标准数据判断所述测试数据是否相符的 步骤, 具体包括:
利用 show—factory—values节点根据所述预设测试场景的标准数据判断 所述测试数据是否正确。
如权利要求 2所述的自动测试方法, 其中, 所述根据所述标准数据和 所述测试数据是否相符输出对应的测试结果的步骤之后, 还包括: 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_SLEEP进行 读取操作, 以通知色温传感器进入待机状态, 并销毁所述测试线程。
[权利要求 6] —种色温传感器的自动测试系统, 其中, 所述自动测试系统包括处理 器, 所述处理器用于执行色温传感器的自动测试程序数据吋, 实现的 步骤包括:
在测试模式下, 创建色温传感器测试线程;
通过所述测试线程唤醒色温传感器, 触发所述色温传感器在预设测试 场景进行工作;
获取所述色温传感器在预设测试场景工作吋所返回的测试数据; 根据所述预设测试场景的标准数据判断所述测试数据是否相符; 根据所述标准数据和所述测试数据是否相符输出对应的测试结果。
[权利要求 7] 如权利要求 6所述的自动测试系统, 其中, 所述处理器, 创建色温传 感器测试线程, 实现的步骤具体包括:
在基于 Google
Android的软件架构下, 在 MTK平台的工厂架构及 kernel层中创建 rgb_ sensor_test_thread的色温传感器测试线程, 其中, 所述 Android的版本 高于或等于 Android 6.0版本、 且采用基于 kemel-3.18的内核驱动。
[权利要求 8] 如权利要求 7所述的自动测试系统, 其中, 所述处理器, 通过所述测 试线程唤醒色温传感器, 实现的步骤具体包括: 通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_AWKE进行 读取操作, 以唤醒所述色温传感器。
[权利要求 9] 如权利要求 7所述的自动测试系统, 其中:
所述处理器, 获取所述色温传感器在预设测试场景工作吋所返回的测 试数据, 实现的步骤具体包括:
通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_DATA进行 读取操作, 以获取所述测试数据;
所述处理器, 根据所述预设测试场景的标准数据判断所述测试数据是 否相符, 实现的步骤具体包括:
利用 show—factory—values节点根据所述预设测试场景的标准数据判断 所述测试数据是否正确。
[权利要求 10] 如权利要求 7所述的自动测试系统, 其中, 所述处理器, 根据所述标 准数据和所述测试数据是否相符输出对应的测试结果, 之后还包括实 现步骤:
通过所述测试线程对 kernel层的文件节点 RGB_SENSOR_SLEEP进行 读取操作, 以通知色温传感器进入待机状态, 并销毁所述测试线程; 所述自动测试系统还包括:
存储器, 所述存储器用于存储所述色温传感器的自动测试程序数据。
PCT/CN2017/104350 2017-09-29 2017-09-29 色温传感器的自动测试方法、系统 WO2019061283A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/104350 WO2019061283A1 (zh) 2017-09-29 2017-09-29 色温传感器的自动测试方法、系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/104350 WO2019061283A1 (zh) 2017-09-29 2017-09-29 色温传感器的自动测试方法、系统

Publications (1)

Publication Number Publication Date
WO2019061283A1 true WO2019061283A1 (zh) 2019-04-04

Family

ID=65902227

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104350 WO2019061283A1 (zh) 2017-09-29 2017-09-29 色温传感器的自动测试方法、系统

Country Status (1)

Country Link
WO (1) WO2019061283A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070132997A1 (en) * 2005-12-09 2007-06-14 Inventec Corporation Device and method for examining and calibrating color temperature
CN102636704A (zh) * 2012-03-05 2012-08-15 深圳市英威腾电气股份有限公司 一种电子产品的测试方法、装置及系统
CN105681782A (zh) * 2016-01-11 2016-06-15 广东欧珀移动通信有限公司 色温传感器校准方法和相关装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070132997A1 (en) * 2005-12-09 2007-06-14 Inventec Corporation Device and method for examining and calibrating color temperature
CN102636704A (zh) * 2012-03-05 2012-08-15 深圳市英威腾电气股份有限公司 一种电子产品的测试方法、装置及系统
CN105681782A (zh) * 2016-01-11 2016-06-15 广东欧珀移动通信有限公司 色温传感器校准方法和相关装置

Similar Documents

Publication Publication Date Title
US8959394B2 (en) Electronic device, system, and method for testing exception handling mechanism
CN113330392B (zh) 用于确定包括多个动作的任务的电子装置和方法
CN104794016A (zh) 一种移动终端死机检测处理方法及系统
CN107817987B (zh) 一种硬件配置方法、系统、终端及服务器
US20220210264A1 (en) Method and apparatus for executing application
KR20160145755A (ko) 소비 전력을 감소하기 위한 방법, 장치 및 모바일 단말기
CN110737334A (zh) 一种信息输出方法、装置、终端及计算机可读存储介质
CN106603526B (zh) WiFi/热点的开启方法及装置
WO2019061283A1 (zh) 色温传感器的自动测试方法、系统
WO2012023073A1 (en) Initiating forced shutdown of a device
US10481675B2 (en) Dual-processor system and control method thereof
KR102657534B1 (ko) 어플리케이션의 무결성을 검증하는 전자 장치 및 어플리케이션의 무결성을 검증하기 위한 방법
US11507384B2 (en) Electronic device for performing booting, and operating method therefor
CN104391742B (zh) 应用优化方法和装置
WO2023103330A1 (zh) 一种设备找回方法、装置及相关设备
CN108132803B (zh) 基于移动终端的定时保活及唤醒方法、系统、终端及介质
KR20210014992A (ko) 불량을 예측하는 전자 장치 및 그 전자 장치의 제어 방법
US20190122327A1 (en) Electronic device for displaying image and method for controlling the same
WO2015085745A1 (zh) 管理液晶显示屏背光灯的方法、装置及终端
CN113747043B (zh) 图像处理器启动方法、电子设备和存储介质
CN103294367B (zh) 一种确定操作指令的方法、装置和系统及终端
US20200167299A1 (en) Electronic device for scheduling a plurality of tasks and operating method thereof
US20200028957A1 (en) Control method and device for sensors of mobile terminal, storage medium and mobile terminal
KR20210074155A (ko) 전자 장치 및 그의 제어 방법
WO2016131338A1 (zh) 一种移动终端上输出告警信息的方法和移动终端

Legal Events

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

Ref document number: 17927495

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17927495

Country of ref document: EP

Kind code of ref document: A1