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.

Linux/WL18XX-BT-SP: BLE testing requirement

Part Number: WL18XX-BT-SP

Tool/software: Linux

Hi,


In this previous thread I asked about BT transmit-receive testing and BER measurement testing. We are able to do that successfully now.

Now, we want to perform these tests for BLE as well.

We are currently following BLE Testing section of this this link,

But, in these commands we are able to select only channel for BLE test.

Is there any commands in BLE testing where we can configure BLE transmit power as well?

In receiver test as well, we are only able to get the received packets and not error rate or error packets. So, is there any commands where we can calculate BER or PER for BLE?

Regards,

Gunjal

  • Hi Hari,

    I haven't tried doing LE SIG testing, but I've two questions regarding it.

    1. Will those tests mentioned for CC256x module work for WL18xx module also?

    2. The commands mentioned in LE SIG testing still doesn't cover configuring transmit power in LE mode.

    And  I had shared wrong link in the original post. I meant to share this link,

    I was trying to say that queries regarding BT mode are resolved.

    Sorry for the inconvenience.

    Regards,

    Gunjal

  • Hi,

    I tried those LE SIG testing commands mentioned in CC256x testing guide.

    At transmitter end, I'm sending following commands (selecting channel 0),

    hcitool cmd 0x3f 0x15b 0x01 0x01
    hcitool cmd 0x3f 0x177 0x01 0x00 0x00 0x00 0x29 0x41 0x76 0x71 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    hcitool cmd 0x08 0x01e 0x00 0x25 0x00

    At receiver end,

    my HCI interface gets hanged at HCI_VS_Write_Hardware_Register 0xFF01, 0x0019324E, 0x0 commnad,

    hcitool cmd 0x3f 0x301 0x4e 0x32 0x19 0x00 0x00 0x00

    And, if I run the receiver test without clearing sync counter register, then I'm receiving 0 packets.

    I want to understand if I need to take different hardware register than "0x0019324e" for WL18xx. Where can I see information about it?

    Regards,

    Gunjal

  • Hi,

    I saw another thread related to this problem here,

    and took hardware register 0x200107E2 for Wl18xx as mentioned in that thread.

    Now my HCI interface doesn't hang at HCI_VS_Write_Hardware_Register 0xFF01, 0x200107E2, 0x0000 command, but while reading sync counter value from that register, I'm always getting value "00 00".

    Also, in HCI_BLE_Test_End command, I'm still getting received packets "00 00".

    Can anyone provide any help here?

    Regards,

    Gunjal

  • Hi Gunjal,

    • Please see the “power level vector update” procedure documented in the SWRU442 (www.ti.com/.../swru442b.pdf) for details on how to change (lower) the BLE output power from the default values.
    • After changing the output power, you can run the BLE TX test as normal and the new TX power values would be used. Wiki: processors.wiki.ti.com/.../WL18xx_Bluetopia_PM_Bluetooth_RF_Testing
  • Gunjal Shah said:

    1. Will those tests mentioned for CC256x module work for WL18xx module also?

    The CC256x and WL18xx are different BT controllers and not all vendor specific commands are identical between the two. For WL18xx, please refer to the WL18xx testing guide.

    Gunjal Shah said:

    2. The commands mentioned in LE SIG testing still doesn't cover configuring transmit power in LE mode.

    Please refer to the SWRU442 for this as pointed out by Navneet.

    Best regards,

    Vihang

  • Hi,

    Thanks for the update.

    I've tried updating power vector for BLE and here's what's happening in my case.

    I've kept maximum power value(power level 7) in the vector table as 5 dBm and then run BLE TX-RX test from this link,

    I'm seeing conducted power on the spectrum around 4 dBm.

    But, from this command I'm only able to update power for all levels. I'm still not able to select at which power level to transmit data in BLE.

    So, my question is which is default level of power at which data is transmitted in this BLE test ? And can I change/select the default power level in BLE test?

    Another question is, right now I've only updated power vector for BLE. But, if I want to run my module in either BT or BLE, do I need to update power vector for all modulation types of BT and BLE ?

    Or is it fine if I update power vector for BLE only? 

  • Gunjal,

    Gunjal Shah said:
    But, from this command I'm only able to update power for all levels. I'm still not able to select at which power level to transmit data in BLE.

    Only the power level 7 matters for the BLE modulation. If you want to adjust the output power, you can run the same procedure as you just performed to change the power level 7 of the BLE vector.

    Gunjal Shah said:
    So, my question is which is default level of power at which data is transmitted in this BLE test ? And can I change/select the default power level in BLE test?

    For BLE modulation, the power level 7 will be used for all BLE related activities (connection, advertise, scan response etc.).

    According to the SWRU442, the default BLE power in LP mode would be 10dBm (power level 7 in the power vector).

    #Set BT LE (BLE) LP Vectors Values (note the need to multiply the output power in dBm by '2'
    Send_HCI_VS_DRPb_Set_Power_Vector 0xFD82, 0x03, -22.5 *2, -18 *2, -13.5 *2, -9 *2, -4.5 *2, 0 *2, 5 *2, 10 *2, 0x3F, 0x00FF
    Wait_HCI_Command_Complete_VS_DRPb_Set_Power_Vector_Event 5000, any, HCI_VS_DRPb_Set_Power_Vector,0x00
    

    If you update the BLE power vector, the new value (power in dBm * 2) in the power level 7 field will be used as BLE power. This applies to BLE modulation in both LP and HP mode as described in the SWRU442.

    Gunjal Shah said:

    Another question is, right now I've only updated power vector for BLE. But, if I want to run my module in either BT or BLE, do I need to update power vector for all modulation types of BT and BLE ?

    Or is it fine if I update power vector for BLE only? 

    If you do not wish to change the default power vectors for BR/EDR modulations, it is perfectly fine to just update the BLE power vector followed by the steps 4 and 5 of the power vector update procedure.

    Best regards,

    Vihang