-
Notifications
You must be signed in to change notification settings - Fork 85
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
[!] CONNECTION_MAX not defined in fw. #71
Comments
Hi :) InternalBlue can be considered just as an additional tool to send HCI commands in its raw form as documented in the Bluetooth specification. To connect/disconnect, you have to issue the according HCI commands. Iterating active connections currently hold by the chip is implemented by running some assembly snippets on the Bluetooth firmware itself. As the error message states, you would have to define the according variables, which would need reversing your particular firmware version. After connecting, you should see a connection handle being returned (might require using the debug mode to see the raw HCI reply). Not sure if it starts at 0 or is actually something like 0x40. The data has to be in the form of |
OK, so to connect, one can use the connect or connectle commands, but to disconnect one has to go lookup the disconnect HCI opcode, got it.
OK, so despite the bootup message saying :
It doesn't actually fully support that chip? How can I determine which chips are fully supported? (So I can go see if I have a machine that is fully supported. I already know I don't have a BCM20703)) Just the presence of CONNECTION_MAX in their corresponding .py files?
I think you might be right about the debug mode being required. I left an SSH session open to the mac, and went off and did other things, and then came back later, and at some point it must have actually succeeded in the connection, because I saw new output implying a new connection was made at some point and the handle was 0xC. I don't normally see that immediately. But I'll keep trying with other devices until I get repeatable behavior. (It seems like maybe that was just a coincidence of InternalBlue picking up some background BT connections that the Mac happened to make? Because I just re-launched InternalBlue and saw a connection success message before I had ever tried to connect to anything:
|
Also, is there any examples of the correct usage of sendlcp and sendlmp anywhere? I think I have a different bug too, but I want to try a known-good command before I report that separately. |
Just checking back in after a year to see if there's any documentation on sendlcp/sendlmp. Looks like no. Maybe a good task for new students |
Describe the bug
I get the error "[!] CONNECTION_MAX not defined in fw." when I do "info connections"
Hardware and operating system
Mac Mini Late 2014 -> BCM20702B0, macOS Mojave (10.14.6)
To Reproduce
After launching internalblue:
(note: "set debug true" doesn't change result)
Additional context
What I'm actually trying to do is use sendlcp. But I am assuming that "info connections" is the command I need to issue to see active connections, to pass as -c parameters to other commands like sendlcp. I am seemingly able to connectle to a BLE device, but then when I run sendlcp (which says "Connection index, starts at 0 for first connection."), it fails (and trying -c other than 0 fails worse)
Also, incidentally, how do I disconnect an existing connection?
The text was updated successfully, but these errors were encountered: