leaps_serial_cfg_get
读取串行接口(如UART, SPI)的当前配置.
输入
(无)
输出
uart_loc_ready_enable: 1-bit (如果设置为‘1’,则在uart接口上启用位置就绪事件)
usb_bh_en: 1-bit (如果设置为‘1’,则启用USB接口用于回程)
uart_mode: 1位(‘0’表示 UART 复位后进入二进制模式,’1’表示 UART 复位后进入命令行界面 (CLI) 模式).
uart_baudrate: ‘0’ | ‘1’ (‘0’: 115200 baud, ‘1’: 1000000 baud)
uart_loc_ready_include_my_pos: 1-bit (0 禁用,1启用在每个位置就绪事件中包含我的位置)
uart_loc_ready_include_ranging_pos: 1-bit (0禁用,1启用在每个位置就绪事件中向测距节点包含位置)
示例
TLV 请求 |
|
---|---|
类型 |
长度 |
0x39 |
0x00 |
类型 0x39 (57 dec) 表示命令 leaps_serial_cfg_get
TLV 响应 |
|||||
---|---|---|---|---|---|
类型 |
长度 |
价值 |
类型 |
长度 |
价值 |
(bits 18-31) 保留
(bit 17) 位置就绪事件包括到测距节点的位置
(bit 16) 位置就绪事件包括我的位置
(bit 15) uart_baudrate
(bits 9-14) 保留
(bit 8) uar t_mode, 默认 UART 模式 0-二进制,1-外壳
(bits 2-7) 保留
(bit 1) USB回程启用
启用时的(位0)位置就绪事件
|
|||||
0x40 |
0x01 |
0x00 |
0x61 |
0x04 |
0x01 0x01 0x00 0x00 |
类型 0x40 表示状态代码
类型 0x61 (97) 表示串行接口配置