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
.
STEP 3. Navigate to the folder <SDK>/examples/at_commands/teraterm/bt_per
containing the example script and select the file bt_per.ttl
.
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.
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.
STEP 2. Enter 1
to enable 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.
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
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
Step 6. Enter the desired BR/EDR
mode.
Step 7. Enter the desired rx
channel number.
Step 8. Enter the desired tx
channel number.
Step 9. Enter the desired link type
.
Step 10. Enter the scrambler seed according to the PER mode.
Step 11. Enter the desired hopping type
.
Step 12. Enter the desired antenna type
.
Step 13. Enter the desired rf chain
.
Step 14. Enter the desired payload type
.
Step 15. Enter the tx_power
index which is listed in the below image.
Step 16. Enter the desired PER transmission mode.
Step 17. Enter the number of packets
based on the selected tx_mode
parameter.
With all inputs successfully entered, PER packet(s) are transmitted.
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.
STEP 2. Enter 1
to enable 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.
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
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
Step 6. Enter the desired BR/EDR
mode.
Step 7. Enter the desired rx channel
number.
Step 8. Enter the desired tx channel
number.
Step 9. Enter the desired link type
.
Step 10. Enter the desired scrambler seed
.
Step 11. Enter the desired hopping type
.
Step 12. Enter the desired antenna selection
.
Step 13. Enter the desired rf chain
.
Step 14. Enter the desired loop back
mode.
Step 15. With all inputs successfully entered, the RS9116W waits to receive packets.
Step 16. After successful reception, receive PER statistics are displayed
Refer to the BLE Programming Reference Manual for further details on how to change the parameters.