SWRA749 September 2022
The Bluetooth device will receive data from CBT and PC will calculate PER and BER from received data.
# 0 - Normal mode, Open loop & no power saving
# 1 - Wide window mode, Close loop & no power saving
# 2 - Continuous RX, Open loop before SYNC
# 3 - Wide window & power
saving mode, Close loop & power saving
RX_Mode
= 1
# 0 - PRBS 9
# 1 - FOFO
# 2 - ZOZO
# 3 - PRBS 15
# 4 - All Ones
# 5 - All Zeros
# 6 - OFOF
# 7 - OZOZ
PayloadType = 0x00
FA_THR_inPer = 7
Total_Bits_in_packet = 8 * (Header_Length + Payload_Length + CRC_Length)
FA_THR_inBits = round((FA_THR_inPer/100) * Total_Bits_in_packet)
if (PER_nBER == 1) then
Enable_BER = 0
else
Enable_BER = 1
endif
HCI_VS_Set_LE_Test_Mode_Parameters 0xFD77, 0x01, RX_Mode, 0, RX_AC, Enable_BER, PayloadType, Payload_Length, FA_THR_inBits, En_Traces, CRC_Value
HCI_VS_Set_LE_Test_Mode_Parameters 0xFD77, 0x01, x01, 0x0000, 0x71764129(RX_AC), 0x00(Enable_BER), 0x00(PayloadType), 0x25(Payload_Length), 0x18(FA_THR_inBits), 0x00(En_Traces), 0x00E221E8 (CRC)
Pause here and send data packets from the CBT Tester. Continue with scripts after sending all the packets.
Returns number of packets recieved, save into &Rx_Packets.
Returns Sync Counter Value, save into &Sync_Counter.
Returns number of packets recieved, save into &Rx_Packets.
Vendor-Specific LE_Read_Ber_Test_Results Command Complete parameters:
Returns Sync Counter Value, save into &Sync_Counter.
# Bit Counters
Total_Bad_Bits = Htype_Bad_Bits + Hlength_Bad_Bits + Ppart1_Bad_Bits + Ppart2_Bad_Bits + Ppart3_Bad_Bits + Ppart4_Bad_Bits + CRC_Bad_Bits
Dropped_Packets = Actual_Syncs - Total_Good_Packets
Detected_Packets = Actual_Syncs
Total_Received_Bits = Total_Bits_in_packet * Detected_Packets
if(Total_Received_Bits == 0) then
BER = 100
else
BER = 100*(Total_Bad_Bits / Total_Received_Bits)
endif