5.6 Device Test Mode (DTM)

The RNBD350 module has support for a special mode called Device Test Mode (DTM). By using the DTM command, the user can configure the RNBD350 module to operate in the DTM. Staying in the DTM mode, the RNBD350 module supports a series of DTM commands. In the DTM mode, all the input commands and response events are in HCI format. The first byte of the HCI format is a packet type, where 0x01 represents the command packet and 0x04 represents the event packet. The RNBD350 module supports seven HCI commands. The following section describes each HCI command in detail. If users send the software Reset command, the RNBD350 module resets and enters into Data mode.

Figure 5-5. HCI Command Format

Command parameters:

Op_Code: Size: 2 octets

ValueParameter Description
0xXXXX

OGF Range (6 bits): 0x00-0x3F (0x3F reserved for vendor-specific debug commands)

OCF Range (10 bits): 0x0000-0x03FF

Parameter_Total_Length: Size: 1 octet

ValueParameter Description
0xXX

Lengths of all of the parameters contained in this packet measured in octets. (N.B.: total length of parameters, not number of parameters)

Parameter 0 - N: Size: Parameter Total Length

ValueParameter Description
0xXX

Each command has a specific number of parameters associated with it. These parameters and the size of each of the parameters are defined for each command. Each parameter is an integer number of octets in size.

Figure 5-6. HCI Event Format

Event parameters:

Event_Code: Size: 1 octet

ValueParameter Description
0xXX

Each event is assigned a 1-Octet event code used to uniquely identify different types of events.

Range: 0x00-0xFF (The event code 0xFF is reserved for the event code used for vendor-specific debug events.)

Parameter_Total_Length: Size: 1 octet

ValueParameter Description
0xXX

Length of all of the parameters contained in this packet, measured in octets

Event_Parameter 0 - N: Size: Parameter Total Length

ValueParameter Description
0xXX

Each event has a specific number of parameters associated with it. These parameters and the size of each of the parameters are defined for each event. Each parameter is an integer number of octets in size.