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
  • type_0, type_1, type_2, type_3: ? 8-bit unsigned integer ? (type describing the MAC address nr. 0,1,2,3 in the list)

  • mac_addr_0, mac_addr_1, mac_addr_2, mac_addr_3: ? 48-bit value ? (MAC address nr. 0,1,2,3 in little endian)

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