API
tcs
使用给定的选项将节点配置为标签。此命令需要重置才能使新配置生效。
示例:
leaps> tcs
usage: tcs <opt> <val> ...
opt: stat_det,lp,le,enc,leds,ble,fwup,uab[0,1] mode[0-twr,1-ul-tdoa,2-dl-tdoa] uwb[0-off,1-pasv,2-act] prof[0,2-5]
leaps> tcs le 1 leds 1 uwb 2
tcs: ok
tlv
Parses given TLV frame. It accepts both decimal and hexadecimal format.
Example: Read user data from the node (leaps_usr_data_read)
Decimal format:
leaps> tlv 25 01 02
CRC: 0x26
OUTPUT(hex):
40 01 00 06 58 00 d0
Hexadecimal format:
leaps> tlv 0x19 0x01 0x02
CRC: 0x26
OUTPUT(hex):
40 01 00 06 58 00 d0
tlvr
Cmd as TLV frame with manual CRC. It accepts both decimal and hexadecimal format.
Example: Read user data from the node (leaps_usr_data_read)
Decimal format:
leaps> tlvr 25 01 02 38
OUTPUT FRAME:
40 01 00 06 58 00 d0
Hexadecimal format:
leaps> tlvr 0x19 0x01 0x02 0x26
OUTPUT FRAME:
40 01 00 06 58 00 d0
ums
设置默认 UART 模式
示例:
leaps> ums 1
Low Energy Accurate Positioning System
Copyright : 2016-2024 LEAPS
License : Please visit https://www.leapslabs.com/leaps-rtls-license
Compiled : Mar 26 2024 09:19:46 (v0.16.2-14d8a4)
Help : ? or help
ana
设置 MAC 地址
注解
Use ana <index> <addr> to set a temporary MAC address only. It is not permanent and can be overwritten or reset.
<index> is the
zero-based entry number from the MAC address list: 0 = UWB, 1 =
BLE, 2 = Ethernet, and 3 = Wi-Fi.
<addr> must be encoded as
one 48-bit numeric value
示例:
leaps> ana 0 0x020304050608
ana: ok
amlg
获取MAC地址列表
示例:
UWBS Devices
leaps> amlg
mac-uwb=00:00:00:00:00:02 (usr)
mac-ble=F1:7C:5C:D8:28:55 (def, mutable, rand)
LGF Devices
leaps> amlg
mac-uwb=00:00:00:00:00:02 (usr)
mac-ble=F1:7C:5C:D8:28:55 (def, mutable, rand)
mac-eth=00:00:00:00:00:04 (usr)
mac-wifi=00:00:00:00:00:03 (usr)
dacs
Configures distance alarm event.
示例:
leaps> dacs
Usage: dacs <thold_1> <thold_2> <mincon> <minnocon> <opt>
opt: bit 0,1,2 enables leds,buzzer,motor respectively
leaps> dacs 500 2000 0 0 7
dacs: ok
acs
使用给定的选项将节点配置为锚点。此命令需要重置才能使新配置生效。
示例:
leaps> acs
*[Output when UWB routing backhaul is disabled]*
usage: acs <opt> <val> ...
opt: inr,gn,enc,leds,ble,fwup,cr,uab[0|1] uwb[0-off|1-pasv|2-act] prof[0,2,3,5]
*[Output when UWB routing backhaul is enabled]*
usage: acs <opt> <val> ...
opt: inr,gn,enc,leds,ble,fwup,cr,uab[0|1] bh[0-off,1-on,2-auto] uwb[0-off|1-pasv|2-act] prof[0,2,3,5]
leaps> acs leds 1 uwb 2
acs: ok
fls
配置过滤器,例如测量过滤器、位置过滤器、测量选择策略等。
示例:
leaps> fls
leaps> usage: fls <id> <param(byte array, max len:8)>
id: 0=meas, 1=loc, 2=meas strtg
leaps> fls 2 1
fls: ok
注解
如果id=1-loc,则参数(字节[0])指定是启用还是禁用位置的移动平均过滤器。
flg
获取过滤器,例如测量过滤器、位置过滤器、测量选择策略等。
示例:
leaps> flg
leaps> usage: flg <id>
id: 0=meas, 1=loc, 2=meas strtg
leaps> flg 2
flg: id:2(meas strtg) param(hex):01 00 00 00 00 00 00 00
eks
设置加密密钥,以加密密钥作为参数.
示例:
leaps> eks 00112233445566778899aabbccddeeff
key_set: 00112233445566778899AABBCCDDEEFF
amls
Set MAC addr list once (permanent OTP write - irreversible)
注解
This command permanently writes to OTP (One-Time Programmable) memory.
Once executed:
The data cannot be overwritten or modified
Previous MAC address entries cannot be changed
Exercise caution as this action is irreversible
Recommendation: Verify the MAC addresses carefully before executing this command
示例:
leaps> amls
usage: amls <hex_0> ... <hex_3>