-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ASSERT_WARN(1 8), in lc_task.c in serial output when using ESP32 Bluetooth Classic in Master Mode #6193
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
Comments
Got the same error, But to my surprise it happens only if i connect to an HC-06 that is connected to arduino nano. |
Curious. In my case, the HC-06 is connected to an STM32F103 chip, but I've no reason to think there's any issue with the power supply. |
my HC-06 connects to NANO, tried two HC-06 boards, tried also with external 5V supply, made no difference. |
Same problem here, communicating with an ANT BMS (not sure that module is on that). |
Hello, can you please retest this on v2.0.3-rc1? |
Sadly, still the same. |
Maybe I should add that I'm on an old WROOM module. |
Ok, thanks for testing. I'm adding this to our Roadmap and we will test it. :) |
@VojtechBartoska could you add more details regarding why it is showing the Warn? I'm triggering it using pure ESP-IDF v4.4.1 with BT classic and some tasks... but the file |
There are compiled binaries used in the bluetooth stack. lc_task.c is likely a part of that proprietary blob, so you cannot see that code. |
@lbernstone yep... that's why I was requesting further info... like why are we seeing that message. I further debugged my application, thinking that it was related to the task I was creating, but apparently just a simple connection from my BR/EDR mouse triggers it. It happens even if I don't start my tasks / timers. In case it helps, this is the mouse that I'm using it: Bluetooth Wireless Mouse, TECKNET 3 My guess is that the mouse is using HC-06 internally... but I haven't dissasembled it yet. |
I tested with another mouse, same issue. It seems that both mice are using the same chip, which is a BK3632 http://www.bekencorp.com/en/goods/detail/cid/18.html And seems a popular choice in mice that supports both BR/EDR and BLE and propietary 2.4Ghz |
Indeed. And as such there's not much the majority of us can do other than to report these issues with as much detail as possible, and hope that a fix is developed! |
To raise awareness of how popular the BK3632 chip is: mice advertised as "triple mode bt3.0 / bt5.0 / 2.4Ghz" are using most probably a BK3632... meaning that we cannot use them to connect to an ESP32. I purchased 3 mice "triple mode", all of them failed with the For context, see my previous comment: #6193 (comment) |
I am communicating with the "Ant BMS 16S 100A" and have the same warnings on my ESP32 WROOM (38 pin developer board). Have you made any progress regarding this annoying issue? Have you succeeded in reliably triggering the bluetooth interface of the BMS by simply switching a digital output connected to the bms trigger wires (and ground)? |
Did you manage to connect to ant bms ? I'm trying to solve the same problem, but my connection is not established every time. After the connection is lost, you need to connect to the bms by phone, and only then it is possible to establish a connection with esp32 again. Can you show your connection code with ant bms ? |
Connecting to the BMS works flawless and besides the assert warnings I have no problems communicating. setup:
loop:
|
I have almost the same code. But the first connection to the BMS goes flawlessly, and if the controller is reset, it does not reconnect again. If you change the MAC address of the ESP32, it connects again without any problems. That is, in order for it to work, I have to connect with a different MAC address every time. |
This does not happen here... I can always connect/reconnect without any hassle... |
Hi @alastaira, is this issue still valid on latest version 2.0.14? (based on ESP-IDF v4.4) |
SerialBT.begin(String(DEVICE_NAME), false); and i get: ASSERT_WARN(110 36), in lc_task.c at line 2300 |
hey Im also trying ti connect to ANT BMS, I m using default code serial tp serial BTM(Arduino Library), im getting same issue, is yours solved?? if not please let me know |
Hello, I close this since this report contains the release we no longer support. Please try the new versions and in case the issue persists, feel free to reopen it. Thanks |
Board
ESP32 DevKit v1 (ESP-WROOM-32)
Device Description
ESP DevKit v1
Hardware Configuration
No other hardware connected
Version
v1.0.6
IDE Name
Arduino IDE 1.8.15
Operating System
Windows 10
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
Using Bluetooth Classic in Master mode on the ESP32 to connect to an HC-06 slave that is transmitting data.
The ESP32 pairs successfully to the device, including the required Bluetooth pairing PIN code, and data is received correctly.
However, when printing the received data to the serial output of the ESP32, an additional message is periodically printed in the output (every few seconds) - "ASSERT_WARN(1 8), in lc_task.c at line 1394", as shown below:
I think this error is possibly related to the issues described at:
Those reference different line numbers (but also relate to earlier versions of the ESP32 codebase), but otherwise describe similar scenarios related to Bluetooth connections. However, neither issue referenced has been closed with a solution.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: