This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WL1835MOD: BER Meter test

Part Number: WL1835MOD

Hi,

I am using WL1835MODGB - I needed information on how to execute & get rx BER test result after initiating this test using Bluetopia stack. Could you please pass on the information?

https://www.ti.com/lit/an/swra750/swra750.pdf?ts=1681278885208&ref_url=https%253A%252F%252Fwww.google.com%252F

The commands to be executed are clear for the Bluez tool and not for the Bluetopia stack. Also, how to get the result of the BER meter test is also unclear. Please help clarify

Regards,

FF

 

  • Hi FF,

    It is recommended to use HCI Tester for this test if you are not already. 

    I'm copying the code shown in 1.4.1 BER Test - Between Two WiLink Devices Step 2 below:

    Send_HCI_VS_DRP_Read_BER_Meter_Status 0xFD5B
    Wait_HCI_Command_Complete_VS_DRP_Read_BER_Meter_Status_Event 5000, any, 
    HCI_VS_DRP_Read_BER_Meter_Status, 0x00, &synched, &finished, any, &total_bits, &bit_errors, &packets
    if finished== 0 then
     if synched == 0 then
     log"not synced yet %d count",count
     #Fail "no SYNC"
     else
     log"not finished yet %d packets, coutn %d",packets,count
     endif
     goto $l11
    else
     BER = 1000000*bit_errors/total_bits
     log"BER is %d e-6 (%d bits out of %d)",1000000*bit_errors/total_bits,bit_errors,total_bits
     if BER > 100 then
     Fail "BER is too high"
     else
     pause "Finished"
     endif
     
    endif

    Essentially you first send the command HCI_VS_DRPb_BER_Meter_Start which starts the BER function which you are already aware of.

    After waiting for the required duration (for the appropriate number of packets to be sent), you call the Send_HCI_VS_DRP_Read_BER_Meter_Status in the code above followed by HCI_VS_DRP_Read_BER_Meter_Status which returns the results into the following variables which can be used to calculate the BER, given by dividing bit_errors by the total_bits.