Matheus-Garbelini / braktooth_esp32_bluetooth_classic_attacks

A Series of Baseband & LMP Exploits against Bluetooth Classic Controllers
https://braktooth.com
448 stars 85 forks source link

How to reduce the latency #14

Closed yangte closed 2 years ago

yangte commented 2 years ago

Hello ,guys ;

I am having some trouble using these ESP32 development boards, I find the UART latency is 1259us and wonder how to reduce the latency of this serial port?

[ESP32BT] Measuring UART Latency... [ESP32BT] USB Latency:1259 us [OK] Serial port /dev/ttyUSB1@4000000 opened

Matheus-Garbelini commented 2 years ago

Hi @yangte , what esp32 board are you using? Also are you running ubuntu under a VM or native machine? Make sure you are using an ESP-Wrover-Kit as the USB adapter IC on such board is essential to enable low-latency mode. If you are using a VM, make sure that you selected USB3.0 under its options. Also I recommend using vmware player instead of oracle virtual machine as I can't get good latencies when using the latter.

yangte commented 2 years ago

Hi , @Matheus-Garbelini Thanks for your reply . I use vmware machine and use the ESP-WROVER-E kit , when I use the the vmware I found that my usb latency is 505us . I wonder if 505us is enough for these tests ?

Matheus-Garbelini commented 2 years ago

Hi @yangte. Yes, 505us is enough. But make sure to allow maximum CPU cores for your vm. For example, a minimum of 4 CPUs is recommended. Using USB 3 (blue port) also helps with latency.

yangte commented 2 years ago

@Matheus-Garbelini Ok , Thanks a lot !