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.

Packet Error Rate tests?

Other Parts Discussed in Thread: CC2541

I am running some tests between two CC2541 devices using HCI_LE_Transmitter_Test and HCI_LE_Receiver_Test.  When I send End_Test to on the receiver, I get a number of packets.

My questions are:

  1. How do I get any error rate statistics out of this ?
  2. Why don't I get a number of packets transmitted report on the transmitter? it is always 0.
  3. How can I control how many packets are actually sent?  The TI HCI has a 'Length_Of_Test_Data' parameter in the HCI_LE_Transmitter_Test, but I don't know what is the unit: bytes, seconds?

Is there any TI specific documentation about this testing interface? The "TI BLE Vendor Specific HCI Reference Guide" does not mention anything about these commands.

  • Hello Sign,

    Was there any information in the hci.h file that was useful?  Otherwise, you may have to look at the actuall Core Bluetooth v4.0 specs for more information.  The units for the length is in bytes and you can set this to 0x00 to 0x25.  There doesn't seem to be an error rate stat, but there is an error code that gets generated for a particular failure.  I would think that when the error occurs you could read the number of packets sent and then come up with your error report.

    Thanks,

  • Hi Greenja,

    Thank you for the information on the transmit length.  I have read the bluetooth 4.0 core spec (section 7.8) but it states:

    "This command is used to stop any test which is in progress. The
    Number_Of_Packets for a transmitter test shall be reported as 0x0000. The
    Number_Of_Packets is an unsigned number and contains the number of
    received packets." (section 7.8.30 LE Test End Command)

    How do I get access to the number of transmitted packets?

    Section 7.8.29 LE Transmitter Test Command states:

    "This command is used to start a test where the DUT generates test reference
    packets at a fixed interval."

    What is that interval?  If I would know the rate, I can determine the number of packets sent.  Is it a hard-coded constant?

    Thanks again!

  • Based on http://e2e.ti.com/support/low_power_rf/f/538/p/103831/692356.aspx, I found the functions in phy.h :

    • PHY_RawGetNumTxPkts
    • PHY_RawGetNumRxPkts
    • PHY_RawGetRxData

    I guess I'll have to implement my HCI-accessible wrappers for these three functions.