Edit online

测试指南

测试环境
  • 硬件
    • 带触屏功能的屏幕

    • 带 RTP 接口的开发板

    • USB Type-C 数据线,用于给开发板供电、烧写

    • USB 转串口的线,用于连接开发板的调试串口

    • 手写笔,可以更方便精准的点击 RTP

  • 软件
    • PC 端的串口终端软件,用于 PC 和开发板进行串口通信

    • test_rtp_draw 测试程序

test_rtp_draw 测试

  1. 在 Luban-Lite 根目录下执行 scons --menuconfig,进入 menuconfig 的功能配置界面,按如下选择:

    Drivers options  --->
        Drivers examples  --->
            [*] Enable RTP driver test command
  2. 在打开 draw 的编译后,板子上可直接运行 draw 命令:

    aic /> test_rtp_draw -h
    Usage: test_rtp_draw [options]:
         -c, --calibrate        Platform the screen calibration
         -p, --points           Set the points for drawing, defalut is 1000
         -d, --draw             Draw the shape
         -h, --help
    
    Example: test_rtp_draw -c

RTP 校准测试

RTP 校准测试可以使用 shell 命令 test_rtp_draw -c

aic /> test_rtp_draw -c
Top left : X=50Y=50
Calibration: X=958, Y=90
Top right : X=974Y=50
Calibration: X=69, Y=86
Bot right : X=974Y=550
Calibration: X=61, Y=526
Bot left : X=50Y=550
Calibration: X=876, Y=535
Center : X=512Y=300
Calibration: X=522, Y=303

RTP 画点测试

RTP 画点测试可以使用 shell 命令 test_rtp_draw -d

aic /> test_rtp_draw -d
0: X 552/2146, Y 496/796, Press 2011: X 551/2140, Y 494/802, Press 2072: X 551/2142, Y 496/797, Press 242