Command data interface – Linx Technologies HUM-xxx-DT User Manual

Page 14

Advertising
background image

– –

– –

22

23

Command Data Interface

The DT Series transceiver has a serial Command Data Interface (CDI)
that is used to configure and control the transceiver through software
commands. This interface consists of a standard UART with a serial
command set. The CMD_DATA_IN and CMD_DATA_OUT lines are the
interface to the module’s UART. The UART is configured for 1 start bit, 1
stop bit, 8 data bits, no parity and no flow control.

The general serial command format for the module is:

[Start Delimiter] [Command] [Parameters] [Data] [End Delimiter]

The Start Delimiter has a fixed value of 0x3C (the ‘<’ ASCII character).

The Command codes are shown in Figure 20. The Command Data
Interface Command Set section goes into the commands in detail.

The Data field is only available with the Send Data Packet and Send
Broadcast Packet commands. This is the data that is transmitted over the
air. The maximum number of data bytes in one data packet is 32 bytes.

The End Delimiter has a fixed value of 0x3E (the ‘>’ ASCII character).

If a command sent to the module is successful, a response is returned. The
general serial command response format is:

[Start Delimiter] [Response] [Parameters] [End Delimiter]

The Start Delimiter has a fixed value of 0x3C (the ‘<’ ASCII character).

The Response Type code for each command is the same as the Command
Type code. All the available Command Types are shown in Figure 20.

The Response Parameters for each type of response are detailed in
the Command Data Interface Command Set section along with the
corresponding command.

The End Delimiter has a fixed value of 0x3E (the ‘>’ ASCII character).

All values are in hexadecimal format.

CDI Command Codes

Command Code

(hex)

Parameters

(bytes)

Data

(bytes)

Command Type Definition

21

6

0–32

Send Data Packet

22

0

0

Read Non-volatile Configurations

23

54

0

Write Non-volatile Configurations

24

2

0

Read I/O Configurations

26

2

0

Read Analog Voltage Value

27

2

0

Read Digital IO Value

28

3

0

Write Digital Output Value

29

0

0

Read Channel Number

2B

0

0

Read TX Power Level

2C

1

0

Write TX Power Level

2D

0

0

Read Radio State

2E

1

0

Write Radio State

2F

0

0

Read Ambient RSSI

30

0

0

Restore Factory Default Configurations

31

0

0

Read Device Name

32

0

0

Read Firmware Version

33

0

0

Read Module Serial Number

37

0

0

Read Frequency Agility Configurations

38

1

0

Write Frequency Agility Configurations

39

1

0–32

Send Broadcast Packet

3A

0

0

Read Associated Modules

3B

4

0

Delete Associated Module

3C

0

0

Reset Module

3D

0

0

Read Associated Module Count

42

1

0

CW Signal

43

0

0

Read AES Key

44

16

0

Write AES Key

7A

1

0

Initialization Complete Message

Figure 20: HumDT

TM

CDI Command Codes

Advertising