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
Table 5-85 5-88 5-90 5-92 5-94 5-98 5-102 5-104 5-106. Command Parameters
CommandSizeValueParameter Description
Op_Code2 octets0xXXXX

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

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

Parameter_Total_Length1 octet0xXXLengths of all of the parameters contained in this packet measured in octets. (N.B.: total length of parameters, not number of parameters)
Parameter 0 - NParameter Total Length0xXXEach 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
Table 5-86. Event Parameters
CommandSizeValueParameter Description
Event_Code1 octet0xXX

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_Length1 octet0xXXLength of all of the parameters contained in this packet, measured in octets
Event_Parameter 0 - NParameter Total Length0xXXEach 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