dwm_serial_cfg_get

This command is available only on the ethernet gateway. Gets UART/USB interface configuration.

void dwm_serial_cfg_get(uint8_t mode)
Parameters
  • input – (none)

  • output – status_code, mode

  • mode – ‘0’ | ‘1’ (0 - binary mode , 1 - shell mode)

C code example

Not available in the on-module user application.

SPI/UART example

TLV Request

Type

Length

0x39

0x00

Type 0x39 (57) means command dwm_serial_cfg_get

TLV Response

Type

Length

Value

Type

Length

Value

0x40

0x01

0x00

0x61

0x04

byte 0: reserved
byte 1: UART/USB mode
byte 2: reserved
byte 3: reserved

0x00 0x10 0x00 0x00

Type 0x40 means status code
Type 0x61 (97) means serial configuration