-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
component/bt: allow setting a higher baudrate in UART HCI mode (IDFGH-2779) #4844
base: master
Are you sure you want to change the base?
Conversation
@redchenjs Thanks for the contribution. |
Hi, @redchenjs I have to do a bunch of tests to verify the 3M baud rate is proper for the controller to handle. Thanks |
An update:I tried another serial converter FT232H (not FT232R), which supports the baud rate of 4 Mbps, the controller can handle it as well. |
Hi @redchenjs Have you done some throughput actions to test? Thanks |
Here's my test result:
It looks like there is almost no difference between 3M and 4M baud rates :) |
|
@AbnerFederer @Alvin1Zhang Is there any update? |
Hi I'm afraid this will cause some errors. So, could you please help add some comments in Thanks |
Hi @Wth-Esp, How does it look now? Now we can select the baud rate in |
Hi @redchenjs LGTM now. Thanks for your contribution. |
Thanks for your contribution, and sorry for late reply, we have put the changes into our internal review queue, and the PR will be updated once the changes are available on GitHub. Thanks. |
It is very interesting that there is no difference between 3M, 3.5M and 4M baud rates. I checked the communication with a logic analyzer and 3.5M/4M baud is giving the same exact signal as 3M. I calculated it being exactly 3M baud. Is this a linux bug or a limitation of my CH340 chip? |
The ESP32 datasheet specifies that the internal Bluetooth UART HCI baudrate can reach up to 4 Mbps, but the baudrate range is limited to 921600 bps in Kconfig.
I tried to use a FT232R usb serial converter to communicate with the Bluetooth controller at 3 Mbps baudrate (the maximum baudrate supported by the FT232R chip), and it worked as expected.
When using 921600 bps baudrate the SPP speed is limited to 90 KB/s, after changing the baudrate to 3 Mbps the SPP speed is increased to 260 KB/s, so just allow users to set a higher baudrate as the hardware does support it.
Example: controller_hci_uart