Our website is under construction. Please stay tuned!

leaps_mac_addr_set

Set MAC address of the BLE, UWB, Ethernet or Wi-Fi interface. Needs reset to take effect. Should not be used frequently since it writes the internal non-volatile memory. Factory reset is needed (leaps_reset) to use the default MAC address. Two least significant bytes of the UWB MAC address must not be equal to 0x0000 or to the 0xFFFF. The BLE address can be either the Random BLE address or the Public BLE address. The Ethernet and the Wi-Fi address must respect the EUI-48 format, and the U/I bits must be set accordingly.


Input
  • addr_type: ? 8-bit integer ?

    • 0 = UWB address

    • 1 = BLE Random address

    • 2 = BLE Public address

    • 3 = ETH address

    • 4 = WIFI address, ETH and WIFI is supported only on the gateway

  • addr_value: ? 6 bytes ? (6 byte long MAC address)

Output

SPI/UART example

TLV request

type

length

value node ID in little endian

0x2D

0x07

0x00 0xEF 0xCD 0xAB 0x56 0x34 0x12

Type 0x2D (45 dec) means command leaps_mac_addr_set

TLV response

type

length

value (see error codes)

0x40

0x01

0x00

Type 0x40 means err_code of the previous command