Bluetooth Classic PER Mode Tera Term Script#

This application demonstrates how to configure the RS9116W in Bluetooth Classic PER mode.

Before continuing, ensure that the RS9116W EVK is plugged into your computer and is connected via Teraterm as described in Getting Started with PC using AT Commands.

Contents#

Setting Up#

STEP 1. Reset the RS9116W EVK.

STEP 2. In the Tera Term menu select Control->Macro.

Tera Term MacroTera Term Macro

STEP 3. Navigate to the folder <SDK>/examples/at_commands/teraterm/bt_per containing the example script and select the file bt_per.ttl

Tera Term Script to be selectedTera Term Script to be selected

STEP 4. After selecting the bt_per.ttl script, a popup shows to indicate the BLE PER script is running. Two additional popups then show to indicate auto baud and the opermode command is successul.

Script execution startScript execution start

ABRD StateABRD State

opermode successopermode success

Transmit PER Instructions#

The following steps describe how to configure the RS9116W for BT Transmit PER measurement.

Step 1. Enter 1 to run the script in transmit PER mode.

select the tarnsmit/receiveselect the tarnsmit/receive

STEP 2. Enter 1 to enable PER mode.

Enable PER modeEnable PER mode

Step 3. Enter a 48-bit address in hex format (e.g., 0023A7010203). There is no need to enter the device address, however the same address must be used for transmit and receive.

Enter the device addressEnter the device address

Step 4. Enter the desired packet_length number from the following list:

  • BT_DM1_PAYLOAD_MAX_LEN : 17

  • BT_DM3_PAYLOAD_MAX_LEN : 121

  • BT_DM5_PAYLOAD_MAX_LEN : 224

  • BT_DH1_PAYLOAD_MAX_LEN : 27

  • BT_DH3_PAYLOAD_MAX_LEN : 183

  • BT_DH5_PAYLOAD_MAX_LEN : 339

  • BT_2DH1_PAYLOAD_MAX_LEN : 54

  • BT_2DH3_PAYLOAD_MAX_LEN : 367

  • BT_2DH5_PAYLOAD_MAX_LEN : 679

  • BT_3DH1_PAYLOAD_MAX_LEN : 83

  • BT_3DH3_PAYLOAD_MAX_LEN : 552

  • BT_3DH5_PAYLOAD_MAX_LEN : 1021

  • BT_HV1_VOICE_PAYLOAD_LEN : 10

  • BT_HV2_VOICE_PAYLOAD_LEN : 20

  • BT_HV3_VOICE_PAYLOAD_LEN : 30

  • BT_EV3_VOICE_PAYLOAD_LEN : 30

  • BT_2EV3_VOICE_PAYLOAD_LEN : 60

  • BT_3EV3_VOICE_PAYLOAD_LEN : 90

  • BT_EV4_VOICE_PAYLOAD_LEN : 120

  • BT_EV5_VOICE_PAYLOAD_LEN : 180

  • BT_2EV5_VOICE_PAYLOAD_LEN : 360

  • BT_3EV5_VOICE_PAYLOAD_LEN : 540

Phy rate electionPhy rate election

Step 5. Enter the packet_type number from the following list:

  • BT_DM1_PKT_TYPE : 3

  • BT_DH1_PKT_TYPE : 4

  • BT_DM3_PKT_TYPE : 10

  • BT_DH3_PKT_TYPE : 11

  • BT_DM5_PKT_TYPE : 14

  • BT_DH5_PKT_TYPE : 15

  • BT_2DH1_PKT_TYPE : 4

  • BT_2DH3_PKT_TYPE : 10

  • BT_2DH5_PKT_TYPE : 14

  • BT_3DH1_PKT_TYPE : 8

  • BT_3DH3_PKT_TYPE : 11

  • BT_3DH5_PKT_TYPE : 15

  • BT_HV1_PKT_TYPE : 5

  • BT_HV2_PKT_TYPE : 6

  • BT_HV3_PKT_TYPE : 7

  • BT_DV_PKT_TYPE : 8

  • BT_EV3_PKT_TYPE : 7

  • BT_2EV3_PKT_TYPE : 6

  • BT_3EV3_PKT_TYPE : 7

  • BT_EV4_PKT_TYPE : 12

  • BT_2EV5_PKT_TYPE : 12

  • BT_EV5_PKT_TYPE : 13

  • BT_3EV5_PKT_TYPE : 13

Packet typePacket type

Step 6. Enter the desired BR/EDR mode.

BR/EDR modeBR/EDR mode

Step 7. Enter the desired rx channel number.

rx_channelrx_channel

Step 8. Enter the desired tx channel number.

tx_channeltx_channel

Step 9. Enter the desired link type.

Hopping typeHopping type

Step 10. Enter the scrambler seed according to the PER mode.

scrambler-seedscrambler-seed

Step 11. Enter the desired hopping type.

Hopping-typeHopping-type

Step 12. Enter the desired antenna type.

Antenna SelectionAntenna Selection

Step 13. Enter the desired rf chain.

tx_power_indextx_power_index

Step 14. Enter the desired payload type.

Payload_typePayload_type

Step 15. Enter the tx_power index which is listed in the below image.

tx_powertx_power

Step 16. Enter the desired PER transmission mode.

tx_modetx_mode

Step 17. Enter the number of packets based on the selected tx_mode parameter.

number of packetsnumber of packets

Step 19. With all inputs successfully entered, PER packet(s) are transmitted.

Final screen-shotFinal screen-shot

Final screen-shot doneFinal screen-shot done

Receive PER Instructions#

The following steps describe how to configure the RS9116W for BLE Receive PER measurement.

Step 1. Enter 2 to run the script in PER receive mode.

PER ReceivePER Receive

STEP 2. Enter 1 to enable PER mode.

Enable PER modeEnable PER mode

Step 3. Enter a 48-bit address in hex format e.g. 0023A7010203. There is no need to enter the device address, however the same address must be used for transmit and receive.

Enter the device addressEnter the device address

Step 4. Enter the desired packet_length number from the following list:

  • BT_DM1_PAYLOAD_MAX_LEN : 17

  • BT_DM3_PAYLOAD_MAX_LEN : 121

  • BT_DM5_PAYLOAD_MAX_LEN : 224

  • BT_DH1_PAYLOAD_MAX_LEN : 27

  • BT_DH3_PAYLOAD_MAX_LEN : 183

  • BT_DH5_PAYLOAD_MAX_LEN : 339

  • BT_2DH1_PAYLOAD_MAX_LEN : 54

  • BT_2DH3_PAYLOAD_MAX_LEN : 367

  • BT_2DH5_PAYLOAD_MAX_LEN : 679

  • BT_3DH1_PAYLOAD_MAX_LEN : 83

  • BT_3DH3_PAYLOAD_MAX_LEN : 552

  • BT_3DH5_PAYLOAD_MAX_LEN : 1021

  • BT_HV1_VOICE_PAYLOAD_LEN : 10

  • BT_HV2_VOICE_PAYLOAD_LEN : 20

  • BT_HV3_VOICE_PAYLOAD_LEN : 30

  • BT_EV3_VOICE_PAYLOAD_LEN : 30

  • BT_2EV3_VOICE_PAYLOAD_LEN : 60

  • BT_3EV3_VOICE_PAYLOAD_LEN : 90

  • BT_EV4_VOICE_PAYLOAD_LEN : 120

  • BT_EV5_VOICE_PAYLOAD_LEN : 180

  • BT_2EV5_VOICE_PAYLOAD_LEN : 360

  • BT_3EV5_VOICE_PAYLOAD_LEN : 540

Phy rate electionPhy rate election

Step 5. Enter the packet_type number from the following list:

  • BT_DM1_PKT_TYPE : 3

  • BT_DH1_PKT_TYPE : 4

  • BT_DM3_PKT_TYPE : 10

  • BT_DH3_PKT_TYPE : 11

  • BT_DM5_PKT_TYPE : 14

  • BT_DH5_PKT_TYPE : 15

  • BT_2DH1_PKT_TYPE : 4

  • BT_2DH3_PKT_TYPE : 10

  • BT_2DH5_PKT_TYPE : 14

  • BT_3DH1_PKT_TYPE : 8

  • BT_3DH3_PKT_TYPE : 11

  • BT_3DH5_PKT_TYPE : 15

  • BT_HV1_PKT_TYPE : 5

  • BT_HV2_PKT_TYPE : 6

  • BT_HV3_PKT_TYPE : 7

  • BT_DV_PKT_TYPE : 8

  • BT_EV3_PKT_TYPE : 7

  • BT_2EV3_PKT_TYPE : 6

  • BT_3EV3_PKT_TYPE : 7

  • BT_EV4_PKT_TYPE : 12

  • BT_2EV5_PKT_TYPE : 12

  • BT_EV5_PKT_TYPE : 13

  • BT_3EV5_PKT_TYPE : 13

Packet typePacket type

Step 6. Enter the desired BR/EDR mode.

BR/EDR modeBR/EDR mode

Step 7. Enter the desired rx channel number.

rx_channelrx_channel

Step 8. Enter the desired tx channel number.

tx_channeltx_channel

Step 9. Enter the desired link type.

Hopping typeHopping type

Step 10. Enter the desired scrambler seed.

scrambler-seedscrambler-seed

Step 11. Enter the desired hopping type.

Hopping-typeHopping-type

Step 12. Enter the desired antenna selection.

Antenna SelectionAntenna Selection

Step 13. Enter the desired rf chain.

tx_power_indextx_power_index

Step 14. Enter the desired loop back mode.

Loop-back-modeLoop-back-mode

Step 15. With all inputs successfully entered, the RS9116W waits to receive packets.

Receive commandReceive command

Step 16. After successful reception, receive PER statistics are displayed.

PER Stats commandPER Stats command

Refer to the BLUTOOTH Programming Reference Manual for further details on how to change the parameters.