Gateway

Note

Please note that the following commands are applicable for Gateway MCU only.


ana

ana: Set UWB, BLE, Ethernet or Wi-Fi address of the node. (See dwm_mac_addr_set)

Example:

dwm> ana
dwm> ana
Usage: ana <TYPE> <ADDR>
 TYPE can be 0=UWB, 1=BLE-Random, 2=BLE-Public, 3=ETH, 4=WiFi
 ADDR is 6-byte long hex number
dwm> ana 0 0xaabbccddeeff
ana: ok

amls

amls: Set MAC addr list once.

Example:

dwm> amls 0xaabbccddeeff 0x112233445566
amls(ok)

amlg

Gets MAC address list and it refers to dwm_mac_addr_get for description.

  • usr - custom MAC address specified by the user

  • pub, rand - The Public or the Random BLE address

  • def - Default address

  • def, mutable - Mutable default address which can be modified. The default address can be changed only once if it is mutable.

Example:

dwm> amlg
mac0=68:79:12:90:11:11 (usr)
mac1=68:79:12:90:22:22 (def, pub)
mac2=68:79:12:90:33:33 (def)
mac3=

ahs

ahs: Sets the HW version in the OTP memory.

Example:

dwm> ahs
Usage: ahs <hw_ver>
dwm> ahs 0x01100152
ahs: ok

acs

Available only on the ethernet gateway and it Configures node.

Example:

leaps> acs
usage: acs [leds 0|1] [enc 0|1] [fwup 0|1] [uwb 0|1|2]
uwb 0-off,1-pasv,2-act
leaps> acs leds 0 fwup 0
ok

ums

Available only on the ethernet gateway and it Sets default UART mode (binary or shell).

Example:

dwm> ums 1
...
dwm> ums 0

nif

Available only on the ethernet gateway and it Prints interfaces.

Example:

leaps> nif

Interface 0x20435600 (Ethernet) [1]
===================================
Link addr : 02:04:25:54:00:01
MTU         : 1500
Ethernet capabilities supported:
            Virtual LAN
            10 Mbits
            100 Mbits
            Priority queues
IPv4
  unicast addresses (max 1):
            192.168.1.112 DHCP preferred
  multicast addresses (max 1):
            <none>
  gateway : 192.168.1.1
  netmask : 255.255.255.0
DHCPv4 lease time : 7200
DHCPv4 renew time : 3600
DHCPv4 server       : 192.168.1.1
DHCPv4 requested  : 192.168.1.112
DHCPv4 state        : bound
DHCPv4 attempts   : 1

ipv4

Available only on the ethernet gateway and it Sets local IPv4 network configuration. When connected to the internet, the default DNS servers are 8.8.8.8 and 4.4.4.4. The default NTP time server is time.google.com.

Example:

leaps> ipv4
usage: ipv4 [static|dynamic] [eth|wifi] [addr STRING] [mask STRING] [gw STRING]

Use DHCP server to obtain IP address
leaps> ipv4 dynamic
ipv4 (Success)

Use static IP address settings
usage: ipv4 addr 192.168.1.103 mask 255.255.255.0
ipv4 (Success)

dns

Available only on the ethernet gateway and it configures DNS servers. It only takes effect when using a static IP address or the DHCP server does not provide DNS settings.

Example:

leaps> dns
usage: dns [STRING STRING]

Configure DNS server (up to 2 DNS servers is supported)
leaps> dns 8.8.8.8
dns (Success)

wifi

Available only on the ethernet gateway and it configures WIFI SSID, PSK and scan region. Do not use whitespace characters in the SSID and the PSK.

Example:

leaps> wifi
usage: wifi [ssid] [pwd] [region]
region 0-europe(default), 1-north-america, 2-asia

Configure SSID, PSK
leaps> wifi MyWifiSSID mywifipassword
wifi (Success)