测试指南
23 Dec 2024
Read time: 3 minute(s)
准备测试环境
硬件
-
D12x 开发板
-
Host 端的板子(D21x 开发板可满足大部分测试的格式需求)
-
跨接两个板子的子板、或者数据排线
软件
-
MDI 模块的测试 demo:test_mdi
-
PC 端的串口终端软件,用于 PC 和开发板进行串口通信
配置和测试 test_mdi
-
在 Luban-Lite 根目录下执行 scons --menuconfig,进入 menuconfig 的功能配置界面,按如下选择,使能 MDI 驱动测试命令工具:
Drivers options ---> Drivers examples ---> [*] Enable MDI driver test command结果:test_mdi 启动 MDI,接收 Host 端传来的数据和命令,并将数据传给 GE、DE 模块去处理和显示。
-
在打开 test_mdi 的编译后,板子上可直接运行 test_mdi 命令:
test_mdi -h
Compile time: Feb 29 2024 16:16:41 Usage: test_mdi [options]: -c, --count the number of capture frame -h, --help
示例:test_mdi -c 1test_mdi
Bus mode: 8080, Pin: X16, Big endian: 0 [I] aic_find_panel()59 find panel driver : panel-rgb
[W] dbi_cmd_process()509 unknown command 0 [I] dbi_cmd_unsupported()444 Unsupported cmd f7 [I] dbi_cmd_unsupported()444 Unsupported cmd ec [I] dbi_cmd_unsupported()444 Unsupported cmd c0 [I] dbi_cmd_unsupported()444 Unsupported cmd c1 [I] dbi_cmd_unsupported()444 Unsupported cmd c5 [I] dbi_cmd_fr_set()412 pixclk 51886560 is too large Recv framerate 68, pixclk should be 50000000 [I] dbi_cmd_unsupported()444 Unsupported cmd b4 [I] dbi_cmd_unsupported()444 Unsupported cmd b6 [I] dbi_cmd_unsupported()444 Unsupported cmd b7 [I] dbi_cmd_unsupported()444 Unsupported cmd be [I] dbi_cmd_unsupported()444 Unsupported cmd e9 [I] dbi_cmd_unsupported()444 Unsupported cmd b7 [I] dbi_cmd_unsupported()444 Unsupported cmd f4 [I] dbi_cmd_unsupported()444 Unsupported cmd f4 [I] dbi_cmd_unsupported()444 Unsupported cmd 35 [I] dbi_cmd_unsupported()444 Unsupported cmd 44 [I] dbi_cmd_unsupported()444 Unsupported cmd 33 [I] dbi_cmd_unsupported()444 Unsupported cmd 37 Recv width: 320 (0 - 319) Recv height: 480 (0 - 479) [I] dbi_cmd_unsupported()444 Unsupported cmd 36 Recv DBI 24bits(7) -> DPI 24bits(7), Flag 1 [I] dbi_cmd_unsupported()444 Unsupported cmd 11 Allocated 4 video buffer for MDI: Buf Plane size 0 0x400a40e0 1843200 1 0x402660e0 1843200 2 0x404280e0 1843200 3 0x405ea0e0 1843200 [I] aic_find_panel()59 find panel driver : panel-rgb [I] dbi_cmd_disp_on()233 Turn on DE MDI frame rate: 17.3, frame 1000 / 57.7 seconds MDI frame rate: 31.2, frame 1000 / 32.0 seconds MDI frame rate: 31.2, frame 1000 / 32.0 seconds MDI frame rate: 31.2, frame 1000 / 31.9 seconds
