leaps_uwb_rf_cpl_set
Sets UWB RF compliance together with the UWB channel. If UWB configuration parameters like e.g. Tx power etc. are set using leaps_uwb_cfg_set, the UWB RF compliance is automatically set to “custom”. Reset is needed for the configuration to take effect. The configuration is stored in the non volatile memory. Not all channels are supported for all boards. ARIB RF compliance is supported only for UWB channel 9.
uwb_channel: ‘2’ | ‘3’ | ‘5’ | ‘9’ (UWB 信道 2, 3, 5 仅支持 DW1000 板,UWB 信道 5, 9 仅支持 DW3000 板)
rf_compliance: ‘0’ | ‘1’ | ‘2’ (RF 合规选项, 0 = FCC/ETSI, 1 = ETSI + 10dB, 2 = ARIB)
pcode: ‘9’ | ‘10’ | ‘11’ | ‘12’ (Tx/Rx 前置码,这是可选项。 如果用户不输入,则使用下面指定的默认值。)
Channel 2: Tx/Rx Preamble Code = 11
Channel 3: Tx/Rx Preamble Code = 12
Channel 5: Tx/Rx Preamble Code = 9
Channel 9: Tx/Rx Preamble Code = 11
注解
通道 2 和通道 3 仅支持 ‘0 = FCC/ETSI’
只有频道9支持ARIB。
示例
TLV 请求 |
||
|---|---|---|
类型 |
长度 |
价值 |
字节 0:
byte 1: pcode |
||
0x8A |
0x02 |
0x29 0x0B |
类型 0x8A(138 dec)表示命令 leaps_uwb_rf_cpl_set
TLV回复 |
||
|---|---|---|
类型 |
长度 |
价值 |
0x40 |
0x01 |
0x00 |