Our website is under construction. Please stay tuned!

leaps_serial_cfg_set

Enables/disables events on the UART interface. This call does a write to internal non-volatile memory in case of new value being set, hence should not be used frequently and can take up to hundreds of milliseconds in the worst case!


Input
  • (none)

Output
  • Status Code

  • uart_loc_ready_enable: ? 1-bit ? (enables location ready event on UART interface if set to ‘1’)

  • uart_mode: ? 1-bit ? (‘0’ means that UART enters binary mode after reset, ‘1’ means that UART enters shell mode after reset)

  • uart_baudrate: ‘0’ | ‘1’ (‘0’ = 115200 baud, ‘1’ = 1000000 baud)

  • uart_loc_ready_include_my_pos: ? 1-bit ? (0 disables and 1 enables including of my position in each location ready event)

  • uart_loc_ready_include_ranging_pos: ? 1-bit ? (0 disables and 1 enables including of positions to the ranging nodes in each location ready event)


Example

TLV request

Type

Length

Value

(bits 18-31) reserved
(bit 17) location ready event includes positions to ranging nodes
(bit 16) location ready event includes my position
(bit 15) uart_baudrate
(bits 9-14) reserved
(bit 8) uart_mode, default UART mode 0-binary, 1-shell
(bits 2-7) reserved
(bit 0) location ready event on UART enable

0x38

0x04

0x01 0x00 0x01 0x00

Type 0x38 (56 dec) means command leaps_serial_cfg_set

TLV response

Type

Length

Value

0x40

0x01

0x00

Type 0x40 means status code