Edit online

测试指南

准备工作:
  • 硬件:
    • 有调试串口的开发板
  • 软件
    Luban-Lite 中有 UART 测试用例,在根目录下通过 scons –menuconfig 选择打开
    Drivers options
      Drivers test
        [*] Enable UART driver test command

测试组网

  1. 单端口的环路测试:
    • 软件上配置端口为 RS232 功能

    • 硬件上环路端口的 RX 和 TX

    • 在终端运行 test_uart 进行测试

    ../../images/test-cycle1.jpg

    aic/> test_uart uart4
    RT_WAITING_SEM
    send   : 1234567890ArtInChip1234567890
    receive: 1234567890ArtInChip1234567890
  2. 单端口 RS485 测试
    • 软件上配置端口为 RS485 功能

    • 硬件上连接开发板上 RS485 的 B+/B- 和测试设备的 B+/B-

    • 在终端运行 test_uart 进行测试

    ../images/test-rs485.jpg

    aic/> test_uart uart4
    RT_WAITING_SEM
    send   : 1234567890ArtInChip1234567890
    receive: This is from PC