Hello Eksi_4748921 ,
Please have a look at the reference links below:
HCI-Based Bluetooth Testing - the doc contains generic HCI commands structure as well as Bluez (hci tool ) format commands for BT RF test.
For packet error calculations :
- For BLE , you have to run HCI_LE_Receiver_Test ( OGF: 0x08 , OCF: 0x01D ) and then end the test using HCI_LE_Test_End (OGF: 0x08 , OCF: 0x01F) . Results will be provided – Number of packets
Refer to the commands and response format from the doc available here: https://community.cypress.com/docs/DOC-19558
- For BR/EDR , refer Rx_test ( OGF: 0x3F , OCF:0x052 ) , the statistics report received after the command complete event will have the packet received. Check the example in doc mentioned above
Hope this helps.