WO2019061049A1 - System and method for debugging driver of liquid crystal display module - Google Patents

System and method for debugging driver of liquid crystal display module Download PDF

Info

Publication number
WO2019061049A1
WO2019061049A1 PCT/CN2017/103596 CN2017103596W WO2019061049A1 WO 2019061049 A1 WO2019061049 A1 WO 2019061049A1 CN 2017103596 W CN2017103596 W CN 2017103596W WO 2019061049 A1 WO2019061049 A1 WO 2019061049A1
Authority
WO
WIPO (PCT)
Prior art keywords
liquid crystal
crystal display
display module
debugging
driving
Prior art date
Application number
PCT/CN2017/103596
Other languages
French (fr)
Chinese (zh)
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/103596 priority Critical patent/WO2019061049A1/en
Publication of WO2019061049A1 publication Critical patent/WO2019061049A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A method for debugging a driver of a liquid crystal display module comprises: a PC terminal inputting original parameters to a driver file of a liquid crystal display module of a mobile terminal (S330); the PC terminal editing a batch script as required (S340); and performing batch reading/writing of the original parameters. Also provided is a system for debugging a driver of a liquid crystal display module. The above method and system create a plurality of index nodes, data nodes and original parameter nodes in a driver file to perform operations on a plurality of indices, store data and read original parameters without relying on a specific platform, can be transferred to any platform, and employ simple coding principles and straightforward code.

Description

一种液晶显示模组驱动调试系统和调试方法Liquid crystal display module driving debugging system and debugging method 技术领域Technical field
本发明涉及一种移动终端驱动调试技术,具体涉及一种液晶显示模组驱动调试系统和调试方法。The invention relates to a mobile terminal driving debugging technology, in particular to a liquid crystal display module driving debugging system and a debugging method.
背景技术Background technique
LCM(LCD Module)即LCD显示模组、液晶模块、液晶显示器模组,是指将液晶显示器件、连接件、控制与驱动等外围电路、PCB电路板、背光源、结构件等装配在一起的组件。LCM为用户提供标准的LCD显示驱动接口,用户按照接口要求进行操作来控制LCD正确显示。LCM是一种高集成度的LCD产品,对小尺寸LCD显示,LCM可以比较方便地与各种微控制器连接;对大尺寸或彩色的LCD显示,一般会占用控制系统相当大部分的资源或根本无法实现控制,处理数据量巨大。LCM产品可以有效解决上述问题随着信息产业技术的迅猛发展,LCM的需求量急增,特别是中小尺寸的液晶显示模组,其应用范围十分广泛。LCM (LCD Module) is an LCD display module, a liquid crystal module, and a liquid crystal display module. It refers to assembling liquid crystal display devices, connectors, peripheral circuits such as control and driving, PCB circuit boards, backlights, and structural components. Component. LCM provides users with a standard LCD display driver interface, and the user operates according to the interface requirements to control the LCD to display correctly. LCM is a highly integrated LCD product. For small-size LCD displays, LCM can be easily connected to various microcontrollers. For large-size or color LCD displays, it usually takes up a considerable portion of the resources of the control system. Control cannot be achieved at all, and the amount of data processed is huge. LCM products can effectively solve the above problems. With the rapid development of information industry technology, the demand for LCM has increased rapidly, especially for small and medium-sized liquid crystal display modules, which have a wide range of applications.
LCM要想工作正常,必须有一套经过层层试产优化的初始代码;除了基本的功能保证外,许多重要的性能也与初始代码息息相关,比如典型的FLICKER(闪烁)及gamma。作为LCM驱动调试人员,必定会接触到LCM初始代码调试。常用的一种LCM检测调试方法如下:In order for LCM to work properly, there must be a set of initial code optimized for layer-by-layer trial production; in addition to the basic functional guarantees, many important features are also closely related to the initial code, such as the typical FLICKER (flashing) and gamma. As the LCM driver debugger, you will definitely be exposed to the LCM initial code debugging. A commonly used LCM detection and debugging method is as follows:
S101、对测试信号的接入切换进行控制。在检测单元的接入端口设置与信号接入端口连接,用于对接入的测试信号进行分频测试的信号分频电路以及与信号接入端口连接,用于实现多种接入的测试信号切换处理的信号切换器,利用分级驱动单元对信号分频电路进行分频分级控制,实现各个测试信号对应的LCM基板的色块、色彩显示清晰度的逐一检测过程。S101. Control access switching of test signals. The access port of the detecting unit is connected to the signal access port, and the signal frequency dividing circuit for frequency-dividing the tested test signal is connected with the signal access port for implementing multiple access test signals. The signal switching device for switching processing uses the grading driving unit to perform frequency division grading control on the signal frequency dividing circuit, thereby realizing one-by-one detection process of color block and color display definition of the LCM substrate corresponding to each test signal.
S102、控制程序以及控制信号的通讯。通过并行PCI总线连接控制系统与上位机,实现控制程序以及控制信号的通讯。S102, control program and communication of control signals. The control system and the host computer are connected through the parallel PCI bus to realize communication between the control program and the control signal.
S103、对LCM检测单元测试程序以及测试算法进行控制调试。通过DSP控制系统实现对测试信号的接入切换的控制程序的调试以及对LCM检测单 元相应测试程序以及测试算法的调换,以适应对不同LCM基板的检测要求,利用模数转换电路实现DSP控制系统对驱动单元的控制信息的转换,设置若干CAN接口,用于接收上位机对DSP模块的控制命令以及相应算法的实时控制。S103. Control and debug the LCM detection unit test program and the test algorithm. Debugging of the control program for access control of test signals and the detection of LCM by the DSP control system The corresponding test program and the test algorithm are exchanged to adapt to the detection requirements of different LCM substrates. The analog-to-digital conversion circuit is used to realize the conversion of the control information of the drive unit by the DSP control system, and several CAN interfaces are set for receiving the host computer to the DSP. The control commands of the module and the real-time control of the corresponding algorithm.
S104、检测数据的PC纠错显示。对检测数据进行实时存储,并对上述检测数据与各个检测数据的合格数据库进行比对,发现错误数据,控制切换模块进行纠错监控显示,错误数据实时显示在监控显示屏上。S104. PC error correction display of the detected data. The detection data is stored in real time, and the above-mentioned detection data is compared with the qualified database of each detection data, the error data is found, the control switching module performs error correction monitoring display, and the error data is displayed on the monitoring display screen in real time.
S105、根据检测结果对LCM进行调整,并反复进行调整和测试,直至完成LCM的调试工作。S105: Adjust the LCM according to the detection result, and perform adjustment and testing repeatedly until the debugging of the LCM is completed.
对于中小尺寸的液晶显示模组来说,对比度以及FLICKER(闪烁)的调试一直是很重要的调试项目之一,而液晶显示模组的对比度及FLICKER的调试,目前一般的做法是人工不停地设置液晶显示模组的驱动IC中对应调节对比度及FLICKER的寄存器值,以达到调试液晶显示模组的对比度及FLCIKER的目的。其缺点在于:一是人工调试速度缓慢;二是调试结果不可靠。For small and medium size LCD modules, contrast and FLICKER debugging has always been one of the most important debugging projects. The contrast of liquid crystal display modules and FLICKER debugging, the current practice is to manually Set the corresponding adjustment contrast and FLICKER register value in the driver IC of the liquid crystal display module to achieve the purpose of debugging the contrast of the liquid crystal display module and FLCIKER. The disadvantages are: first, the manual debugging speed is slow; second, the debugging result is not reliable.
如图1所示,为一种常用的液晶显示模组的对比度及FLICKER调试系统,调试系统包括:一待进行对比度及FLICKER调试的液晶显示模组110;一与该液晶显示模组110连接,并根据接收到的第一指令和配置参数对液晶显示模组110进行对比度及FLICKER调试的ARM调试板120;一根据接收到的第二指令通过测试探头测试该液晶显示模组的面板的对比度及FLICKER值的光学参数测试仪130;以及一与该ARM调试板120及该光学参数测试仪130连接,并发送该第一指令和参数至ARM调试板120、发送该第二指令至该光学参数测试仪130的主机140。其中,ARM调试板120通过一PCB转换板150连接液晶显示模组110,通过串口线与主机140连接。光学参数测试仪130通过USB线与主机140连接。主机140包括一用于发送该配置参数至该ARM调试板的配置参数发送模块141,一用于发送该第一指令至ARM调试板120以指示该ARM调试板120根据该配置参数对液晶显示模组110进行对比度及FLICKER调试的第一指令发送模块142,以及一用于发送该第二指令至该光学参数测试仪130以指示该光学参数测试仪130测试该液晶显示模组110的面板的对比度及FLICKER值的第二指令发送模 块143,和一用于将该光学参数测试仪130返回的测试结果进行分析与显示的测试结果显示模块144。该液晶显示模组FLICKER调试系统采用主机140进行自动测试和调试,替代人工调试,相对人工操作提高了液晶模组的对比度及FLICKER值的调试速度,但是该液晶显示模组FLICKER调试系统需要先对主机140进行编译,并且针对不同平台,需要针对性进行编译,编译工作复杂难度大。As shown in FIG. 1 , it is a contrast and FLICKER debugging system of a commonly used liquid crystal display module. The debugging system includes: a liquid crystal display module 110 to be subjected to contrast and FLICKER debugging; and a liquid crystal display module 110 connected thereto. And the ARM debugging board 120 for performing contrast and FLICKER debugging on the liquid crystal display module 110 according to the received first instruction and configuration parameter; and testing the contrast of the panel of the liquid crystal display module through the test probe according to the received second instruction An optical parameter tester 130 of the FLICKER value; and a connection with the ARM debug board 120 and the optical parameter tester 130, and transmitting the first instruction and parameters to the ARM debug board 120, and transmitting the second command to the optical parameter test The host 140 of the meter 130. The ARM debugging board 120 is connected to the liquid crystal display module 110 through a PCB conversion board 150, and is connected to the host 140 through a serial line. The optical parameter tester 130 is connected to the host 140 via a USB cable. The host 140 includes a configuration parameter sending module 141 for transmitting the configuration parameter to the ARM debug board, and a method for transmitting the first command to the ARM debug board 120 to instruct the ARM debug board 120 to display the liquid crystal display mode according to the configuration parameter. The group 110 performs a first command sending module 142 for contrast and FLICKER debugging, and a contrast for transmitting the second command to the optical parameter tester 130 to instruct the optical parameter tester 130 to test the panel of the liquid crystal display module 110. And the second command transmission mode of the FLICKER value Block 143, and a test result display module 144 for analyzing and displaying the test results returned by the optical parameter tester 130. The liquid crystal display module FLICKER debugging system adopts the host 140 for automatic testing and debugging, instead of manual debugging, the relative manual operation improves the contrast ratio of the liquid crystal module and the debugging speed of the FLICKER value, but the liquid crystal display module FLICKER debugging system needs to be first The host 140 compiles, and for different platforms, it needs to be compiled in a targeted manner, and the compilation work is complicated and complicated.
目前,最原始也是最耗时的调试方式分为三步:编译、下载和测试。为了避免这种低效率的调试方式,平台代码里一般都会集成一套调试接口以供实时调试。Currently, the most primitive and time-consuming debugging method is divided into three steps: compiling, downloading, and testing. In order to avoid this inefficient debugging method, the platform code generally integrates a debugging interface for real-time debugging.
如图2所示,为目前MTK平台下LCM的调试方法流程。为了提高MTK平台的实用性,MTK平台代码就中集成了一套名称为“fbconfig”的LCM调试接口,并配合PC端的windows平台端的工具Panel Master实现对LCM初始代码的实时调试。该工具简单易用,但是其确点也非常明显,MTK平台接口代码太过复杂难懂,技术人员想要对接口代码进行修改的难度太高,并且windows端与MTK平台该配合调试的工具Panel Master没有源码,技术人员无法在MTK平台现有的调试接口上进行修改,只能新开一套接口以满足需求,工作量高,难度大,费时费力,导致技术人员无法实现通过调试接口提高调试效率的目的。As shown in Figure 2, it is the current method of debugging the LCM under the MTK platform. In order to improve the practicability of the MTK platform, the MTK platform code integrates a set of LCM debugging interface named "fbconfig", and cooperates with the PC platform-side tool Panel Master to realize real-time debugging of the LCM initial code. The tool is simple and easy to use, but it is also very obvious. The interface code of the MTK platform is too complicated and difficult to understand. It is too difficult for the technician to modify the interface code, and the tool for debugging the windows side and the MTK platform should be used. Master has no source code, technicians can't modify it on the existing debugging interface of MTK platform, only a new interface can be opened to meet the demand, the workload is high, the difficulty is large, time-consuming and laborious, and the technician can not improve the debugging through the debugging interface. The purpose of efficiency.
综上所述,现有的LCM调试接口主要问题有:In summary, the main problems of the existing LCM debugging interface are:
1)平台依赖性太强,该调试接口完全依赖于平台,无法移植到其它平台;1) The platform dependency is too strong, the debug interface is completely dependent on the platform and cannot be ported to other platforms;
2)代码庞大且复杂不易懂;2) The code is large and complicated and difficult to understand;
3)被调试的机器需要download完整的root版本软件,不仅编译耗时,而且download了完整root版本软件的机器比较卡顿,操作很不流畅;3) The machine being debugged needs to download the complete root version software, which not only compiles time-consuming, but also downloads the machine with the full root version of the software. The operation is very smooth;
4)写入LCM初始参数后手机不能休眠,否则当唤醒时,LCM参数会回到原始状态;4) The mobile phone cannot sleep after writing the initial parameters of LCM, otherwise the LCM parameters will return to the original state when waking up;
5)无法读取初始参数。5) The initial parameters cannot be read.
发明的公开Disclosure of invention
本发明提供一种液晶显示模组驱动调试系统和调试方法,适用范围广,脚本编写简单,解决调试设备卡顿的问题。 The invention provides a liquid crystal display module driving debugging system and a debugging method, which have wide application range, simple script writing, and solve the problem that the debugging device is stuck.
为实现上述目的,本发明提供一种液晶显示模组驱动调试方法,其特点是,该调试方法包含:To achieve the above object, the present invention provides a method for driving and debugging a liquid crystal display module, which is characterized in that the debugging method comprises:
PC端在移动终端的液晶显示模组的驱动文件中输入原始参数;The PC end inputs the original parameters in the driving file of the liquid crystal display module of the mobile terminal;
PC端根据需求编写批处理脚本,批量读写原始参数。The PC side writes batch scripts according to requirements, and reads and writes raw parameters in batches.
上述PC端在移动终端的液晶显示模组的驱动文件中输入原始参数包含:The input of the original parameters in the driver file of the liquid crystal display module of the mobile terminal by the PC end includes:
液晶显示模组驱动文件中创建和定义用于操作数组索引、存储数据和读取原始参数的内核文件节点;Creating and defining a kernel file node for operating an array index, storing data, and reading raw parameters in a liquid crystal display module driver file;
创建数据结构并将数据结构的值初始化为与原始参数一致;Create a data structure and initialize the value of the data structure to match the original parameters;
创建一个用于存储用户输入的数值的变量;Create a variable to store the value entered by the user;
编译eng版本的引导映像,并下载至被调试液晶显示模组的移动终端。The boot image of the eng version is compiled and downloaded to the mobile terminal of the liquid crystal display module being debugged.
上述的内核文件节点包含数组索引节点、数据节点和原始参数节点。The above kernel file node contains an array index node, a data node, and an original parameter node.
上述的数组索引节点权限定义权限为读写,读时打印当前数据结构的数组索引,写时修改当前数据结构的数组索引。The above array index node permission defines the read and write, prints the array index of the current data structure when reading, and modifies the array index of the current data structure when writing.
上述的数据节点权限定义权限为为读写,读时打印出数据结构中在当前数组索引处的数据,写时修改当前数组索引处的数据结构的值。The above data node permission defines the permission for reading and writing. When reading, the data in the current array index in the data structure is printed, and the value of the data structure at the current array index is modified when writing.
上述的原始参数节点权限定义为只读,用以打印原始初始化参数。The above-mentioned original parameter node permissions are defined as read-only to print the original initialization parameters.
上述调试方法还包含:在配置文件中输入移动终端的液晶显示模组的原始参数前,PC端与移动终端建立连接。The debugging method further includes: before inputting the original parameters of the liquid crystal display module of the mobile terminal in the configuration file, the PC end establishes a connection with the mobile terminal.
上述调试控制端与移动终端建立连接包含:The connection between the debugging control terminal and the mobile terminal includes:
PC端中安装adb工具;Install the adb tool on the PC side;
移动终端与PC端通过USB连接。The mobile terminal is connected to the PC via USB.
上述调试方法还包含:在配置文件中输入移动终端的液晶显示模组的原始参数前,移动终端下载root版的引导映像。The above debugging method further includes: before inputting the original parameters of the liquid crystal display module of the mobile terminal in the configuration file, the mobile terminal downloads the root version of the boot image.
一种上述液晶显示模组驱动调试方法的液晶显示模组驱动调试系统,其特点是,该调试系统包含:A liquid crystal display module driving debugging system for driving and debugging a liquid crystal display module, characterized in that the debugging system comprises:
原始参数输入模块,其连接移动终端,在液晶显示模组的驱动文件中输入原始参数;An original parameter input module, which is connected to the mobile terminal, and inputs original parameters in a driving file of the liquid crystal display module;
脚本编写模块,其连接移动终端,根据需求编写批处理脚本,批量读写液晶显示模组的驱动文件的原始参数。A scripting module that connects to the mobile terminal, writes a batch script according to requirements, and reads and writes raw parameters of the driver file of the liquid crystal display module in batches.
本发明一种液晶显示模组驱动调试系统和调试方法和现有技术的液晶显 示模组调试技术相比,其优点在于,本发明配置液晶显示模组的驱动文件,在驱动文件中创建数组索引节点、数据节点和原始参数节点用于操作数组索引、存储数据及读取原始参数,不依赖于特定平台,可以移植到所有平台;Liquid crystal display module driving debugging system and debugging method and liquid crystal display of prior art Compared with the module debugging technology, the invention has the advantages that the driving file of the liquid crystal display module is configured, and the array index node, the data node and the original parameter node are created in the driving file for operating the array index, storing the data, and reading the original. Parameters, independent of the specific platform, can be ported to all platforms;
本发明还通过adb工具编写批量读写原始参数的批处理脚本,编译原理简单,代码通俗易懂;The invention also writes a batch processing script for batch reading and writing original parameters through the adb tool, the compiling principle is simple, and the code is easy to understand;
本发明的驱动调试方法中被调试的移动终端只需下载root版本的引导映像,单独编译引导映像速度很快,避免了完整root版本的机子操作卡顿的问题;The mobile terminal debugged in the driver debugging method of the present invention only needs to download the boot image of the root version, and the boot image is compiled at a fast speed, thereby avoiding the problem that the full root version of the machine operates in a stuck state;
本发明通过编译引导映像,并通过adb工具编写批处理脚本,实现脚本一次写入,始终有效,只有重启才会返回到原始状态,提高调试效率。The invention compiles the boot image and writes the batch script through the adb tool, so that the script is written once, and is always valid, and only the restart will return to the original state, thereby improving the debugging efficiency.
本发明创建并定义驱动文件中的数组索引节点、数据节点和原始参数节点可以读取原始及修改后的参数。The present invention creates and defines array index nodes, data nodes, and raw parameter nodes in the driver file to read the original and modified parameters.
附图的简要说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为现有技术的液晶显示模组的对比度及FLICKER调试系统的系统图;1 is a system diagram of a contrast ratio of a prior art liquid crystal display module and a FLICKER debugging system;
图2为现有技术MTK平台下LCM的调试方法的流程图;2 is a flow chart of a method for debugging an LCM in a prior art MTK platform;
图3为本发明液晶显示模组驱动调试方法的方法流程图;3 is a flow chart of a method for driving and debugging a liquid crystal display module according to the present invention;
图4为本发明液晶显示模组驱动调试方法中调试流程的实施例一的流程图;4 is a flow chart of Embodiment 1 of a debugging flow in a method for driving and debugging a liquid crystal display module according to the present invention;
图5为本发明液晶显示模组驱动调试方法中调试流程的实施例二的流程图;5 is a flow chart of Embodiment 2 of a debugging flow in a method for driving and debugging a liquid crystal display module according to the present invention;
图6为本发明适用于液晶显示模组驱动调试方法的液晶显示模组驱动调试系统实施例一的模块图;6 is a block diagram of a first embodiment of a liquid crystal display module driving and debugging system suitable for driving and debugging a liquid crystal display module according to the present invention;
图7为本发明适用于液晶显示模组驱动调试方法的液晶显示模组驱动调试系统实施例二的模块图。FIG. 7 is a block diagram of a second embodiment of a liquid crystal display module driving and debugging system suitable for driving and debugging a liquid crystal display module according to the present invention.
实现本发明的最佳方式The best way to implement the invention
以下结合附图,进一步说明本发明的具体实施例。Specific embodiments of the present invention are further described below in conjunction with the accompanying drawings.
如图3所示,本发明公开了一种液晶显示模组驱动调试方法,该调试方法 具体包含以下步骤:As shown in FIG. 3, the present invention discloses a liquid crystal display module driving debugging method, and the debugging method Specifically, it includes the following steps:
S310、需调试液晶显示模组驱动的移动终端下载root版的引导映像(boot image)。S310. The mobile terminal that needs to debug the liquid crystal display module driver downloads the root version of the boot image.
移动终端可以为智能手机、平板电脑等智能移动设备,本实施例中以Android系统为例。The mobile terminal can be a smart mobile device such as a smart phone or a tablet computer. In this embodiment, the Android system is taken as an example.
boot.img通常称之为“内核”,属于系统底层文件,Android系统的boot镜像不是普通意义上的文件系统,而是一种特殊的Android定制格式,由boot header,压缩的内核,ramdisk以及second stage loader(可选)组成。它包含了手机系统软件和硬件相连接的一个渠道,这里包含了相机、cpu、gpu等驱动。一般来说官方提供的内核相对于第三方的内核是相对稳定的,一般来说内核的升级才是系统真正的升级;内核文件记录了一些系统底层的核心功能和连接硬件驱动的作用,内核的优化能够给系统带来质的飞跃。boot.img文件是可以修改的,通常建议在Linux环境下修改,当然我们也可以使用Windows系统来解压,简单的修改一些参数。Boot.img is usually called "kernel", which belongs to the underlying file of the system. The boot image of Android system is not a file system in the ordinary sense, but a special Android custom format, which is boot header, compressed kernel, ramdisk and second. The stage loader (optional) is composed. It contains a channel for connecting the mobile phone system software and hardware. It includes cameras, cpu, gpu and other drivers. Generally speaking, the kernel provided by the official is relatively stable compared to the kernel of the third party. Generally, the upgrade of the kernel is the real upgrade of the system; the kernel file records the core functions of the underlying system and the role of connecting the hardware driver. Optimization can bring a qualitative leap to the system. The boot.img file can be modified. It is usually recommended to modify it in the Linux environment. Of course, we can also use the Windows system to decompress and simply modify some parameters.
S320、PC端与需调试液晶显示模组驱动的移动终端建立通信连接。The S320 and the PC end establish a communication connection with the mobile terminal driven by the liquid crystal display module.
S321、PC端中安装adb工具。S321, install the adb tool in the PC.
adb工具的全称为Android Debug Bridge,就是起到Android系统调试桥的作用,作为一名开发者倒是常用到这个工具。借助adb工具,我们可以管理设备或手机模拟器的状态。还可以进行很多手机操作,如安装软件、卸载软件、系统升级、运行shell命令等等。adb工具就是连接Android手机与PC端的桥梁,可以让用户在电脑上对手机进行全面的操作。The full name of the adb tool is called Android Debug Bridge, which is the function of the Android system debugging bridge. As a developer, it is commonly used in this tool. With the adb tool, we can manage the status of the device or phone emulator. You can also do a lot of phone operations, such as installing software, uninstalling software, upgrading systems, running shell commands, and more. The adb tool is a bridge between the Android phone and the PC, allowing users to fully operate the phone on the computer.
S322、移动终端与PC端通过USB接口连接。S322. The mobile terminal and the PC end are connected through a USB interface.
S330、PC端在移动终端的液晶显示模组的驱动文件中输入原始参数。S330 and the PC end input original parameters in a driving file of the liquid crystal display module of the mobile terminal.
S331、PC端在液晶显示模组驱动文件中创建和定义三个用于操作数组索引、存储数据和读取原始参数的内核文件节点。该三个内核文件节点分别为:数组索引节点、数据节点和原始参数节点,数组索引节点、数据节点和原始参数节点的定义如下:S331. The PC side creates and defines three kernel file nodes for operating the array index, storing data, and reading the original parameters in the liquid crystal display module driver file. The three kernel file nodes are: array index node, data node and original parameter node, array index node, data node and original parameter node are defined as follows:
数组索引节点权限定义权限为读写,读时打印当前数据结构的数组索引,写时修改当前数据结构的数组索引。The array index node permission defines the read and write, prints the array index of the current data structure when reading, and modifies the array index of the current data structure when writing.
数据节点权限定义权限为为读写,读时打印出数据结构中在当前数组索 引处的数据,写时修改当前数组索引处的数据结构的值。The data node permission defines the permission for reading and writing, and when reading, the current array is printed out in the data structure. The data that is referenced, the value of the data structure at the current array index is modified when writing.
原始参数节点权限定义为只读,用以打印原始初始化参数。The original parameter node permissions are defined as read-only to print the original initialization parameters.
S332、PC端创建数据结构并将数据结构的值初始化为与被调试液晶显示模组驱动的原始参数一致。S332: The PC end creates a data structure and initializes the value of the data structure to be consistent with the original parameters driven by the debug liquid crystal display module.
S333、PC端创建一个用于存储用户输入的数值的变量。S333. The PC side creates a variable for storing the value input by the user.
S334、PC端编译eng版本的引导映像,并通过USB连接下载至被调试液晶显示模组驱动的移动终端。S334, the PC side compiles the boot image of the eng version, and downloads to the mobile terminal driven by the debug liquid crystal display module through the USB connection.
S340、PC端根据需求编写批处理脚本。S340, the PC side writes batch scripts according to requirements.
S350、PC端将编写批处理脚本发送至移动终端,批量读写移动终端液晶显示模组驱动的原始参数,进行液晶显示模组驱动的调试。The S350 and the PC end send a batch processing script to the mobile terminal, and read and write the original parameters of the liquid crystal display module driver of the mobile terminal in batches, and perform debugging of the liquid crystal display module driver.
其中S350具体液晶显示模组驱动的调试流程具有以下两种实施例。The debugging process of the S350 specific liquid crystal display module driver has the following two embodiments.
如图4所示,为液晶显示模组驱动的调试方法的实施例一,该调试方法具体包含以下步骤:As shown in FIG. 4, it is a first embodiment of a debugging method for driving a liquid crystal display module. The debugging method specifically includes the following steps:
S401:获取与查看移动终端的液晶显示模组(LCM)调试效果相关的驱动文件中的原始参数。S401: Acquire original parameters in a driver file related to checking a liquid crystal display module (LCM) debugging effect of the mobile terminal.
这里,驱动文件可为txt文档,即驱动文件的文件格式为.txt;这种文件格式的原始驱动文件具有体积小、存储简单方便、通用性强等优点。Here, the driver file can be a txt document, that is, the file format of the driver file is .txt; the original driver file of the file format has the advantages of small size, simple and convenient storage, and strong versatility.
这里,原始参数一般由目标终端的生产厂家提供,其具体形式不予限定。Here, the original parameters are generally provided by the manufacturer of the target terminal, and the specific form thereof is not limited.
具体地,可以在移动终端的指定目录下创建目标文件夹,在目标文件夹中存放驱动文件,从指定目录下的目标文件夹中获取驱动文件,读取驱动文件中的原始参数;采用这种方式,在获取原始参数时,可以直接从指定目录下的目标文件夹下读取,便于快速获取到原始参数。Specifically, the target folder may be created in a specified directory of the mobile terminal, the driver file is stored in the target folder, the driver file is obtained from the target folder in the specified directory, and the original parameters in the driver file are read; In the way, when the original parameters are obtained, they can be directly read from the target folder in the specified directory, so that the original parameters can be quickly obtained.
其中,指定目录可以根据实际需要选定,目标文件夹的文件名可以任意设定。Among them, the specified directory can be selected according to actual needs, and the file name of the target folder can be arbitrarily set.
此外,可以通过预先开发的终端应用获取与查看目标终端的显示屏调试效果相关的原始驱动文件中的原始参数。In addition, the original parameters in the original driver file related to the display screen debugging effect of the target terminal can be acquired through the pre-developed terminal application.
S402:将原始参数转换为所述移动终端的运行平台所需的驱动格式,得到移动终端的液晶显示模组驱动内容。S402: Convert the original parameter into a driving format required by the operating platform of the mobile terminal, and obtain a liquid crystal display module driving content of the mobile terminal.
这里,显示屏驱动内容指对原始参数进行转换后的代码内容。Here, the display driving content refers to the code content after converting the original parameters.
在原始参数一般都会存在空格、制表符、换行符,这些是目标终端的运 行平台所不需要的,因此,一般需要先将空格、制表符、换行符去除。In the original parameters, there will usually be spaces, tabs, and newlines. These are the destination terminals. Line platforms are not required, so it is generally necessary to remove spaces, tabs, and line breaks first.
在其中一个实施例中,原始参数转换为移动终端的运行平台所需的驱动格式,得到移动终端的液晶显示模组驱动内容的步骤可以包括步骤:去除原始参数中的空格、制表符、换行符,得到移动终端的液晶显示模组驱动内容。In one embodiment, the original parameter is converted into a driving format required by the operating platform of the mobile terminal, and the step of obtaining the driving content of the liquid crystal display module of the mobile terminal may include the steps of: removing spaces, tabs, and line breaks in the original parameters. The symbol is obtained by the liquid crystal display module of the mobile terminal.
其中,去除空格、制表符、换行符可以采用任意可以实现的方式,在此不予赘述。The blank space, the tab character, and the newline character can be used in any manner that can be implemented, and will not be described here.
此外,可以通过预先开发的终端应用将原始参数转换为移动终端的运行平台所需的驱动格式。In addition, the original parameters can be converted into the drive format required by the operating platform of the mobile terminal through a pre-developed terminal application.
S403、将液晶显示模组驱动内容从移动终端的应用层传送到移动终端的内核层。S403. The liquid crystal display module driving content is transmitted from an application layer of the mobile terminal to a kernel layer of the mobile terminal.
由于上述获取原始驱动代码以及对原始驱动代码进行转换的过程都发生在移动终端的应用层,而显示屏效果调试需要在移动终端的内核层进行,因此,需要将移动终端的液晶显示模组驱动内容从所移动终端的应用层传送到移动终端的内核层。Since the process of acquiring the original driver code and converting the original driver code occurs in the application layer of the mobile terminal, and the display effect debugging needs to be performed in the kernel layer of the mobile terminal, it is necessary to drive the liquid crystal display module of the mobile terminal. Content is transferred from the application layer of the mobile terminal to the kernel layer of the mobile terminal.
传送液晶显示模组驱动内容可以采用任意可以实现的方式,在此不予赘述。The content of the liquid crystal display module can be transmitted in any manner that can be implemented, and details are not described herein.
S404:对传输到内核层的液晶显示模组驱动内容进行格式转换,得到转换后的目标驱动代码。S404: Perform format conversion on the liquid crystal display module driving content transmitted to the kernel layer, and obtain the converted target driving code.
具体地,可以将传输到内核层的液晶显示模组驱动内容由16进制数据转换为10进制数据,得到转换后的目标驱动代码;采用这种方式,是考虑到原始参数往往是串行数据,一般是16进制数据,而液晶显示模组的驱动函数所需的数据格式为10进制数据,因此,需要先将传输到内核层的液晶显示模组驱动内容转换为液晶显示模组的驱动函数所需的数据格式,即将液晶显示模组的驱动内容由16进制数据转换为10进制数据。Specifically, the liquid crystal display module driving content transmitted to the kernel layer can be converted from hexadecimal data to decimal data to obtain the converted target driving code; in this way, it is considered that the original parameters are often serial. The data is generally hexadecimal data, and the data format required for the driving function of the liquid crystal display module is decimal data. Therefore, the liquid crystal display module driving content transmitted to the kernel layer needs to be first converted into a liquid crystal display module. The data format required by the driver function is to convert the driving content of the liquid crystal display module from hexadecimal data to decimal data.
S405:向移动终端的液晶显示模组的芯片控制器写入目标驱动代码(即批处理脚本)。S405: Write a target driver code (ie, a batch script) to a chip controller of the liquid crystal display module of the mobile terminal.
向液晶显示模组的芯片控制器写入目标驱动代码的方式采用常用的代码写入方式,在此不予赘述,在向移动终端的液晶显示模组芯片控制器写入目标驱动代码,则可以进行显示效果调试,并对显示显示效果参数进行显示。The method of writing the target drive code to the chip controller of the liquid crystal display module adopts a common code writing method, and will not be described here. When the target drive code is written to the liquid crystal display module chip controller of the mobile terminal, Perform display effect debugging and display the display display effect parameters.
据此,根据上述本实施例的方案,其是获取与查看目标终端的显示屏调 试效果相关的原始驱动文件中的原始参数,将原始参数转换为移动终端的运行平台所需的驱动格式,得到移动终端的液晶显示模组驱动内容,将液晶显示模组驱动内容从移动终端的应用层传送到移动终端的内核层,对传输到内核层的液晶显示模组驱动内容进行格式转换,得到转换后的目标驱动代码,向移动终端的液晶显示模组芯片控制器写入目标驱动代码,由于不需要研发人员调试过程中的修改代码过程和编译下载软件过程,测试人员可自行使用该方式即可确认显示屏最终效果的参数,减少了人力成本上,提高了工作效率。According to the solution of the above embodiment, the display screen of the target terminal is obtained and viewed. The raw parameters in the original driver file related to the test effect are converted into the driving format required by the operating platform of the mobile terminal, and the driving content of the liquid crystal display module of the mobile terminal is obtained, and the content of the liquid crystal display module is driven from the mobile terminal. The application layer transmits to the kernel layer of the mobile terminal, performs format conversion on the liquid crystal display module driving content transmitted to the kernel layer, obtains the converted target driving code, and writes the target driving code to the liquid crystal display module chip controller of the mobile terminal. Because the R&D staff does not need to modify the code process and compile and download the software process during the debugging process, the tester can use this method to confirm the parameters of the final effect of the display, reduce the labor cost, and improve the work efficiency.
如图5所示,为液晶显示模组驱动的调试方法的实施例二,该调试方法具体包含以下步骤:As shown in FIG. 5, it is a second embodiment of the debugging method for driving the liquid crystal display module. The debugging method specifically includes the following steps:
S501、接收用户触发的第一指令,第一指令至少包括待测液晶显示模组的寄存器的地址。S501: Receive a first instruction triggered by a user, where the first instruction includes at least an address of a register of the liquid crystal display module to be tested.
第一指令为写指令或者读指令;若第一指令为所述写指令,第一指令至少包括待测液晶显示模组的寄存器的地址和待测液晶显示模组的寄存器的值,写指令用于向待测液晶显示模组的寄存器的地址对应的寄存器写入待测液晶显示模组的寄存器的值。若第一指令为所述读指令,第一指令至少包括待测液晶显示模组的寄存器的地址,读指令用于读取所述待测液晶显示模组的寄存器的地址对应的寄存器的值。The first instruction is a write instruction or a read instruction; if the first instruction is the write instruction, the first instruction includes at least an address of a register of the liquid crystal display module to be tested and a value of a register of the liquid crystal display module to be tested, and the write instruction is Write the value of the register of the liquid crystal display module to be tested to the register corresponding to the address of the register of the liquid crystal display module to be tested. If the first instruction is the read command, the first instruction includes at least an address of a register of the liquid crystal display module to be tested, and the read command is used to read a value of a register corresponding to the address of the register of the liquid crystal display module to be tested.
具体的,若用户想要读取移动终端的屏的数据信息,可以在公共接口输入读指令,在读指令中携带待测液晶显示模组的寄存器的地址,若用户想要对移动终端的屏的寄存器的内容做操作,可以在公共接口输入写指令,在写指令中携带待测液晶显示模组的寄存器的地址和待测液晶显示模组的寄存器的值。Specifically, if the user wants to read the data information of the screen of the mobile terminal, the read command may be input on the public interface, and the address of the register of the liquid crystal display module to be tested is carried in the read command, if the user wants to screen the mobile terminal The contents of the register are operated, and a write command can be input on the common interface, and the address of the register of the liquid crystal display module to be tested and the value of the register of the liquid crystal display module to be tested are carried in the write command.
S502、接收用户触发的第二指令,第二指令至少包括所述待测液晶显示模组的通信方法。S502: Receive a second instruction triggered by a user, where the second instruction includes at least a communication method of the liquid crystal display module to be tested.
具体的,待测液晶显示模组的通信方式有两种,一种是parallel,一种是mipi,若用户需要测试待测液晶显示模组,预先向公共接口选择上述两种通信方式中的其中一种,若当前待测试的屏的通信方式为parallel,则向公共接口输入第二指令,所述第二指令包括parallel的通信方式,若当前待测试的屏的通信方式为mipi,则向公共接口输入第二指令,所述第二指令包括mipi的 通信方式。Specifically, there are two communication modes of the liquid crystal display module to be tested, one is parallel and the other is mipi. If the user needs to test the liquid crystal display module to be tested, select one of the above two communication modes in advance to the public interface. For example, if the communication mode of the screen to be tested is parallel, the second instruction is input to the public interface, and the second instruction includes a parallel communication mode. If the communication mode of the current screen to be tested is mipi, the public The interface inputs a second instruction, the second instruction including a mipi way of communication.
S503,将所述第一指令通过所述待测液晶显示模组的通信方法发送给所述待测液晶显示模组的寄存器。S503. Send the first instruction to the register of the liquid crystal display module to be tested by using the communication method of the liquid crystal display module to be tested.
优选地,第一指令通过所述待测液晶显示模组的通信方法发送给所述待测液晶显示模组的寄存器,包括:将写指令通过所述parallel通信方式或者所述mipi通信方式发送给待测液晶显示模组的寄存器;或者,将读指令通过所述parallel通信方式或者所述mipi通信方式发送给所述待测液晶显示模组的寄存器。Preferably, the first instruction is sent to the register of the liquid crystal display module to be tested by the communication method of the liquid crystal display module to be tested, and includes: sending a write command to the parallel communication mode or the mipi communication mode to The register of the liquid crystal display module to be tested is sent to the register of the liquid crystal display module to be tested by the parallel communication mode or the mipi communication mode.
具体的,若第一指令为写指令,待测液晶显示模组的通信方式为parallel通信方式或者mipi通信方式,则将第一指令通过所述待测液晶显示模组的通信方式为parallel通信方式或者mipi通信方式发送给待测液晶显示模组的寄存器。若第一指令为读指令,待测液晶显示模组的通信方式为parallel通信方式或者mipi通信方式,则将所述第一指令通过所述待测液晶显示模组的通信方式为parallel通信方式或者mipi通信方式发送给待测液晶显示模组的寄存器。Specifically, if the first instruction is a write command, and the communication mode of the liquid crystal display module to be tested is a parallel communication mode or a mipi communication mode, the communication mode of the first instruction through the liquid crystal display module to be tested is a parallel communication mode. Or the mipi communication method is sent to the register of the liquid crystal display module to be tested. If the first instruction is a read command, and the communication mode of the liquid crystal display module to be tested is a parallel communication mode or a mipi communication mode, the communication mode of the first instruction through the liquid crystal display module to be tested is a parallel communication mode or The mipi communication method is sent to the register of the liquid crystal display module to be tested.
本实施例二通过接收用户触发的第一指令,第一指令至少包括待测液晶显示模组的寄存器的地址;接收用户触发的第二指令,第二指令至少包括所述待测液晶显示模组的通信方法;将第一指令通过所述待测液晶显示模组的通信方法发送给所述待测液晶显示模组的寄存器,从而利用linux操作系统的文件系统制作屏调试的公共接口,适用于所有基于linux内核的移动终端设备,通过公共接口,工程师可以快速有效的调试,省时省力,使得基于MTK平台的移动终端产品在设计时,屏调试更加方便快捷。In the second embodiment, the first instruction triggered by the user receives at least the address of the register of the liquid crystal display module to be tested; the second instruction triggered by the user is received, and the second instruction includes at least the liquid crystal display module to be tested. The communication method is: sending the first instruction to the register of the liquid crystal display module to be tested through the communication method of the liquid crystal display module to be tested, thereby making a public interface for screen debugging by using a file system of the Linux operating system, which is applicable to All mobile terminal devices based on the Linux kernel can quickly and effectively debug through the public interface, saving time and effort, making the screen debugging based on the MTK platform-based mobile terminal products more convenient and faster.
如图6所示,本发明还公开了一种适用于上述液晶显示模组驱动调试方法的液晶显示模组驱动调试系统实施例一,该调试系统包含:原始参数输入模块601、脚本编写模块602和调试模块603。As shown in FIG. 6 , the present invention also discloses a first embodiment of a liquid crystal display module driving and debugging system suitable for the above-mentioned liquid crystal display module driving and debugging method. The debugging system includes: an original parameter input module 601 and a script writing module 602. And debugging module 603.
原始参数输入模块601,其连接移动终端604,用于在液晶显示模组的驱动文件中输入原始参数。The original parameter input module 601 is connected to the mobile terminal 604 for inputting the original parameters in the driving file of the liquid crystal display module.
脚本编写模块602,其连接移动终端604,用于根据需求编写调试液晶显示模组的批处理脚本。The scripting module 602 is connected to the mobile terminal 604 for writing a batch script for debugging the liquid crystal display module according to requirements.
调试模块603,其连接移动终端604和脚本编写模块602,用于接收批处理脚本,根据批处理脚本批量读写移动终端604的液晶显示模组的驱动文件的原 始参数,从而完成对液晶显示模组驱动的调试。The debugging module 603 is connected to the mobile terminal 604 and the scripting module 602 for receiving the batch script, and batch reading and writing the original driving file of the liquid crystal display module of the mobile terminal 604 according to the batch processing script. Start parameters, thus completing the debugging of the liquid crystal display module driver.
该液晶显示模组驱动调试系统可以安装于PC端中或制备为独立的硬件设备。The liquid crystal display module driving debugging system can be installed in the PC end or prepared as an independent hardware device.
如图7所示,为一种适用于上述液晶显示模组驱动调试方法的液晶显示模组驱动调试系统实施例二,该调试系统采用USB接口的液晶显示模组测试系统,包括测试用PC端和与驱动被测试LCM工作的测试控制电路。测试用PC端设有能识别测试控制电路的驱动程序,并提供应用程序编程接口API函数给应用软件调用,由USB接口向测试控制电路提供电源并传送PC端的数据。As shown in FIG. 7 , it is a second embodiment of a liquid crystal display module driving and debugging system suitable for the above-mentioned liquid crystal display module driving and debugging method. The debugging system adopts a USB interface liquid crystal display module testing system, including a test PC end. And a test control circuit that works with the LCM being tested. The test PC has a driver that can identify the test control circuit, and provides an application programming interface API function to the application software to call, and the USB interface provides power to the test control circuit and transmits the data of the PC.
测试控制电路设有载有固件firmware的微控制器(MCU)702,以及带有与被测试LCM 3接口对应相连接口的复杂可编程逻辑器件CPLD 703,微控制器MCU 702与USB接口701相连,复杂可编程逻辑器件CPLD 703与微控制器MCU 702的PB、PD数据传输端口相连,对PC端通过USB接口701传送至微控制器MCU 702的数据进行解码,对应于不同的LCM以及LCM的不同工作模式分别形成相应的数据格式驱动LCM,在LCM屏上显示相应格式的影视或图片。The test control circuit is provided with a microcontroller (MCU) 702 carrying firmware firmware, and a complex programmable logic device CPLD 703 with an interface connected to the tested LCM 3 interface, and the microcontroller MCU 702 is connected to the USB interface 701. The complex programmable logic device CPLD 703 is connected to the PB and PD data transmission ports of the microcontroller MCU 702, and decodes data transmitted from the PC end to the microcontroller MCU 702 through the USB interface 701, corresponding to different LCMs and LCMs. The working mode respectively forms a corresponding data format to drive the LCM, and displays the corresponding format of the video or picture on the LCM screen.
由用户通过测试用PC端上的应用软件将被测试LCM的初始化值输送至LCM的驱动芯片的相应寄存器中,使其初始化。The initialization value of the tested LCM is sent to the corresponding register of the LCM driver chip by the user through the application software on the test PC side to initialize it.
微控制器MCU702的外围电路包括分别与其相连的E2PROM704、电源转换电路705、复位电路706、唤醒电路707和晶体振荡电路708,电源转换电路705还分别与USB接口701、复杂可编程逻辑器件CPLD 703以及被测试LCM接口相连。微控制器MCU 702具有PA、PC和PE控制端口和PB、PD数据传输端口。The peripheral circuit of the microcontroller MCU 702 includes an E2PROM 704, a power conversion circuit 705, a reset circuit 706, a wake-up circuit 707 and a crystal oscillation circuit 708 respectively connected thereto. The power conversion circuit 705 is also connected to the USB interface 701 and the complex programmable logic device CPLD 703, respectively. And connected to the tested LCM interface. The microcontroller MCU 702 has PA, PC and PE control ports and PB, PD data transmission ports.
微控制器MCU 702的固件firmware是微控制器MCU 702通过USB接口识别PC端为默认设备后,自动从E2PROM 704中下载的程序,它通过TD_Init()函数完成微控制器MCU 702的初始化,还通过TD_Poll()函数建立传输方式,用于枚举测试控制电路,使其为PC端的操作装置所识别,建立传输数据的通道。微控制器MCU702的固件firmware,主要包括设备描述符表、任务分配、设备请求和USB中断,其中任务分配是重点。通过TD_Poll()函数建立的传输方式是GPIF FIFO模式。The firmware firmware of the microcontroller MCU 702 is a program that the microcontroller MCU 702 automatically downloads from the E2PROM 704 after the PC interface is the default device through the USB interface, and the initialization of the microcontroller MCU 702 is completed by the TD_Init() function. The transmission mode is established by the TD_Poll() function, which is used to enumerate the test control circuit to identify it by the operating device on the PC side, and establish a channel for transmitting data. The firmware of the microcontroller MCU 702 mainly includes a device descriptor table, a task assignment, a device request, and a USB interrupt, wherein task assignment is the focus. The transmission method established by the TD_Poll() function is the GPIF FIFO mode.
微控制器MCU 702采用美国赛普拉斯公司出品的集成USB2.0接口的 CY7C系列控制芯片,其载有的固件firmware,通过美国赛普拉斯公司提供的基本结构编写。 Microcontroller MCU 702 uses the integrated USB2.0 interface from Cypress The CY7C series control chip, which contains the firmware firmware, is written by the basic structure provided by Cypress.
复杂可编程逻辑器件CPLD703采用XILINX公司出品的型号为XC9536的带JTAG接口709的单片机可编程外围芯片PSD。JTAG接口709是4线:TMS、TCK、TDI、TDO,分别为模式选择、时钟、数据输入和数据输出线。The complex programmable logic device CPLD703 adopts the single-chip programmable peripheral chip PSD with the JTAG interface 709 of the model XC9536 produced by XILINX. The JTAG interface 709 is a 4-wire: TMS, TCK, TDI, TDO, which are mode selection, clock, data input, and data output lines, respectively.
尽管本发明的内容已经通过上述优选实施例作了详细介绍,但应当认识到上述的描述不应被认为是对本发明的限制。在本领域技术人员阅读了上述内容后,对于本发明的多种修改和替代都将是显而易见的。因此,本发明的保护范围应由所附的权利要求来限定。 Although the present invention has been described in detail by the preferred embodiments thereof, it should be understood that the foregoing description should not be construed as limiting. Various modifications and alterations of the present invention will be apparent to those skilled in the art. Therefore, the scope of the invention should be defined by the appended claims.

Claims (10)

  1. 一种液晶显示模组驱动调试方法,其特征在于,该调试方法包含:A liquid crystal display module driving debugging method, characterized in that the debugging method comprises:
    PC端在移动终端的液晶显示模组的驱动文件中输入原始参数;The PC end inputs the original parameters in the driving file of the liquid crystal display module of the mobile terminal;
    PC端根据需求编写批处理脚本,批量读写原始参数。The PC side writes batch scripts according to requirements, and reads and writes raw parameters in batches.
  2. 如权利要求1所述的液晶显示模组驱动调试方法,其特征在于,所述PC端在移动终端的液晶显示模组的驱动文件中输入原始参数包含:The method for driving and debugging a liquid crystal display module according to claim 1, wherein the inputting the original parameters in the driving file of the liquid crystal display module of the mobile terminal by the PC end comprises:
    液晶显示模组驱动文件中创建和定义用于操作数组索引、存储数据和读取原始参数的内核文件节点;Creating and defining a kernel file node for operating an array index, storing data, and reading raw parameters in a liquid crystal display module driver file;
    创建数据结构并将数据结构的值初始化为与原始参数一致;Create a data structure and initialize the value of the data structure to match the original parameters;
    创建一个用于存储用户输入的数值的变量;Create a variable to store the value entered by the user;
    编译eng版本的引导映像,并下载至被调试液晶显示模组的移动终端。The boot image of the eng version is compiled and downloaded to the mobile terminal of the liquid crystal display module being debugged.
  3. 如权利要求2所述的液晶显示模组驱动调试方法,其特征在于,所述的内核文件节点包含数组索引节点、数据节点和原始参数节点。The method for driving and debugging a liquid crystal display module according to claim 2, wherein the kernel file node comprises an array index node, a data node, and an original parameter node.
  4. 如权利要求3所述的液晶显示模组驱动调试方法,其特征在于,所述的数组索引节点权限定义权限为读写,读时打印当前数据结构的数组索引,写时修改当前数据结构的数组索引。The method for driving and debugging a liquid crystal display module according to claim 3, wherein the array index node permission defines a read/write, prints an array index of the current data structure during reading, and modifies an array of the current data structure when writing. index.
  5. 如权利要求3所述的液晶显示模组驱动调试方法,其特征在于,所述的数据节点权限定义权限为为读写,读时打印出数据结构中在当前数组索引处的数据,写时修改当前数组索引处的数据结构的值。The method for driving and debugging a liquid crystal display module according to claim 3, wherein the data node permission defines a right for reading and writing, and the data in the current array index in the data structure is printed when reading, and is modified at the time of writing. The value of the data structure at the current array index.
  6. 如权利要求3所述的液晶显示模组驱动调试方法,其特征在于,所述的原始参数节点权限定义为只读,用以打印原始初始化参数。The method for driving and debugging a liquid crystal display module according to claim 3, wherein the original parameter node permission is defined as read-only to print the original initialization parameter.
  7. 如权利要求1所述的液晶显示模组驱动调试方法,其特征在于,所述调试方法还包含:在配置文件中输入移动终端的液晶显示模组的原始参数前,PC端与移动终端建立连接。The method for driving and debugging a liquid crystal display module according to claim 1, wherein the debugging method further comprises: establishing a connection between the PC end and the mobile terminal before inputting the original parameters of the liquid crystal display module of the mobile terminal in the configuration file. .
  8. 如权利要求7所述的液晶显示模组驱动调试方法,其特征在于,所述调试控制端与移动终端建立连接包含:The method for driving and debugging a liquid crystal display module according to claim 7, wherein the establishing of the connection between the debug control terminal and the mobile terminal comprises:
    PC端中安装adb工具;Install the adb tool on the PC side;
    移动终端与PC端通过USB连接。 The mobile terminal is connected to the PC via USB.
  9. 如权利要求1所述的液晶显示模组驱动调试方法,其特征在于,所述调试方法还包含:在配置文件中输入移动终端的液晶显示模组的原始参数前,移动终端下载root版的引导映像。The method for driving and debugging a liquid crystal display module according to claim 1, wherein the debugging method further comprises: before inputting the original parameters of the liquid crystal display module of the mobile terminal in the configuration file, the mobile terminal downloads the boot of the root version. Image.
  10. 一种适用于如权利要求1-9中任意一项权利要求所述液晶显示模组驱动调试方法的液晶显示模组驱动调试系统,其特征在于,该调试系统包含:A liquid crystal display module driving debugging system suitable for driving and debugging a liquid crystal display module according to any one of claims 1-9, wherein the debugging system comprises:
    原始参数输入模块,其连接移动终端,在液晶显示模组的驱动文件中输入原始参数;An original parameter input module, which is connected to the mobile terminal, and inputs original parameters in a driving file of the liquid crystal display module;
    脚本编写模块,其连接移动终端,根据需求编写批处理脚本,批量读写液晶显示模组的驱动文件的原始参数。 A scripting module that connects to the mobile terminal, writes a batch script according to requirements, and reads and writes raw parameters of the driver file of the liquid crystal display module in batches.
PCT/CN2017/103596 2017-09-27 2017-09-27 System and method for debugging driver of liquid crystal display module WO2019061049A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103596 WO2019061049A1 (en) 2017-09-27 2017-09-27 System and method for debugging driver of liquid crystal display module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103596 WO2019061049A1 (en) 2017-09-27 2017-09-27 System and method for debugging driver of liquid crystal display module

Publications (1)

Publication Number Publication Date
WO2019061049A1 true WO2019061049A1 (en) 2019-04-04

Family

ID=65900308

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103596 WO2019061049A1 (en) 2017-09-27 2017-09-27 System and method for debugging driver of liquid crystal display module

Country Status (1)

Country Link
WO (1) WO2019061049A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246128A1 (en) * 2004-04-16 2005-11-03 Funai Electric Co., Ltd. Liquid crystal module inspecting apparatus and liquid crystal module
CN101078817A (en) * 2006-05-22 2007-11-28 比亚迪股份有限公司 Liquid crystal display module test system
CN101299844A (en) * 2008-02-20 2008-11-05 嘉兴闻泰通讯科技有限公司 Method for rapidly debugging liquid crystal screen embedded with mobile phone platform
CN101577756A (en) * 2009-03-05 2009-11-11 上海闻泰电子科技有限公司 Method for debugging image display unit in mobile phone platform through PC
US20120151269A1 (en) * 2010-12-10 2012-06-14 Helix Technology Inc. Mobile communication terminal capable of testing application and method thereof
CN103268745A (en) * 2013-05-29 2013-08-28 北京时代奥视数码技术有限公司 Method and system for LCD monitor GAMMA correction in batches
CN107168833A (en) * 2017-04-28 2017-09-15 武汉精测电子技术股份有限公司 Parameter calibration method and device based on LUA scripts

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246128A1 (en) * 2004-04-16 2005-11-03 Funai Electric Co., Ltd. Liquid crystal module inspecting apparatus and liquid crystal module
CN101078817A (en) * 2006-05-22 2007-11-28 比亚迪股份有限公司 Liquid crystal display module test system
CN101299844A (en) * 2008-02-20 2008-11-05 嘉兴闻泰通讯科技有限公司 Method for rapidly debugging liquid crystal screen embedded with mobile phone platform
CN101577756A (en) * 2009-03-05 2009-11-11 上海闻泰电子科技有限公司 Method for debugging image display unit in mobile phone platform through PC
US20120151269A1 (en) * 2010-12-10 2012-06-14 Helix Technology Inc. Mobile communication terminal capable of testing application and method thereof
CN103268745A (en) * 2013-05-29 2013-08-28 北京时代奥视数码技术有限公司 Method and system for LCD monitor GAMMA correction in batches
CN107168833A (en) * 2017-04-28 2017-09-15 武汉精测电子技术股份有限公司 Parameter calibration method and device based on LUA scripts

Similar Documents

Publication Publication Date Title
CN113312879B (en) Chip circuit function verification system, method, device and storage medium
CN112580295B (en) Automatic verification method, system and device for multi-core SoC chip
TW202132793A (en) Automated test equipment using an on-chip-system test controller
CN201281930Y (en) System for matching screen of liquid crystal display
CN103049375B (en) A kind of camera on-line debugging method
TW201341811A (en) Adapter module and motherboard testing device using the same
KR101777025B1 (en) test equipment of Display Module
CN104077166B (en) EPCS and EPCQ memory online upgrading methods based on IP kernel in FPGA
US20070168905A1 (en) Networked linux machine and windows software development system
CN105718339A (en) FPGA/CPLD remote debugging system and method
CN1996244A (en) Download method and device using personal computer
CN114138644A (en) BMC (baseboard management controller) debugging method, monitoring method, system, device, equipment and medium
WO2024046362A1 (en) Verification system, verification method, electronic device, and storage medium
CN107403573B (en) A kind of USB experimental system and method based on STM32F7
CN114253781B (en) Test method, device, equipment and storage medium
WO2019061049A1 (en) System and method for debugging driver of liquid crystal display module
CN101377753A (en) Accessory test device and method
CN109840172A (en) A kind of Nand flash memory analytical equipment and method based on SoC main control chip
CN206057731U (en) A kind of lcd panel test and lcd touch burning device
CN111338753B (en) System for realizing hardware simulation of electronic control unit based on computer
CN111752623A (en) Display configuration method and device, electronic equipment and readable storage medium
US7017097B1 (en) Simultaneously driving a hardware device and a software model during a test
CN105068835B (en) Mobile terminal and debugging information display method thereof
CN110321171B (en) Startup detection device, system and method
CN113157508A (en) Test method, system, device, equipment and storage medium of embedded system

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

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

Country of ref document: EP

Kind code of ref document: A1