API


urs

位置伝播速度を設定する。

例:

leaps> urs

Usage urs <nom> <stat>

leaps> urs 10 20

urs: ok

urg

位置伝搬率の取得

例:

leaps> urg

urg: nom=1 stat=1

tcs

指定されたオプションでノードをタグとして設定する。このコマンドは新しい設定を有効にするためにリセットを必要とします。

例:

leaps> tcs

usage: tcs <opt> <val> ...

opt: stat_det,lp,le,enc,leds,ble,fwup(0,1) mode(0-twr,1-ul-tdoa,2-dl-tdoa)
uwb(0-off,1-pasv,2-act)
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)

mrs

メッシュランダムタイミングの設定

例:

leaps> mrs
Usage: mrs <rand (ms)>
leaps> mrs 10
mrs: ok

mrg

メッシュランダムタイミングの取得

例:

leaps> mrg
mrg: rand:10

dacs

距離アラームイベントを設定する。

例:

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

dacg

距離アラームイベントの設定を読み込む。

例:

leaps> dacg

dacg: thold_1=1000 thold_2=2500 mincon=2 minnocon=2 opt=7

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)

*[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)
leaps> acs leds 1 uwb 2

acs: ok

pg

ポジションを得る。

例:

leaps> pg

x:100 y:120 z:2500 qf:100

ps

位置の設定

例:

leaps> ps

Usage ps <x> <y> <z>

leaps> ps 100 120 2500

err code: 0

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 の場合、param(byte[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

ahs

HW バージョンを 1 回設定します

例:

leaps> ahs
usage: ahs <hw_ver> | <board_name>

eks

暗号化キーを設定し、暗号化キーを引数として受け取ります。

例:

leaps> eks 00112233445566778899aabbccddeeff

key_set: 00112233445566778899AABBCCDDEEFF

ekc

暗号化キーをクリアし、暗号化を無効にします。

例:

leaps> ekc

ekc : ok

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>