-
Notifications
You must be signed in to change notification settings - Fork 197
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
Question: Micro:Bit v2 support? #73
Comments
for the moment I can tell you:
|
Btlejack is not compatible with bbc micro:bit v2 due to a different chip on board. |
It seems that my question was not sufficiently formulated. |
I dont know, probably not since v1 its already capable of capturing Bluetooth 5.0 traffic. |
Well, then maybe we should wait for @virtualabs answer then. |
Porting Btlejack to Microbit v2 seems to be inevitable as Microbit v1 may be retired pretty soon. I have some concerns about this nRF52833 chip the Microbit v2 relies on:
Anyway, the best answer I can give you is that I need to put my hands on one or two of these Microbit v2, set up a dev environment and see how much work it would take to port Btlejack to this new platform. It could be straightforward or could take ages, I cannot tell now. If you have some experience with Nordic's nRF51 or nRF52 SoCs and want to help porting Btlejack to this new platform, feel free to ping me and we'll see how we could work on it. In the meantime, I'm going to buy one or two of them in order to test the basic features that are required in order for btlejack to run smoothly on this new platform. |
While I don't have experience with the nRF5[12] SoCs, I may have rushed to grab some micro:bits for a project and ended up with some v2s in my haste. @virtualabs I'm happy to help if there's some way I can with the v2 hardware. The v1 micro:bit boards are getting increasingly hard to come by. Let me know if there's some way that I can put these v2 boards, or some other efforts, toward validating whether a port to v2 is possible. Cheers! |
Any news regarding the Micro:Bit v2 support? |
May I raise this question again? Is there support for the v2 micro:bit? |
Not yet, still not have found time to port the code to Microbit v2. |
Merci Damien pour la réponse immédiate. |
I totally understand your concerns about Microbit v1 getting rare on the market, this port to v2 is more than needed now. It has been on top of my todo list for a while, I even bought a Microbit v2, but I'll do my best to work on it as soon as possible. |
@virtualabs thank you for your hard work Could you also look into support for the:
and if possile even for these ones? They are often used and listed at the supported devices for the nRF Sniffer for Bluetooth LE: |
@virtualabs is working on it LIVE (in French) today on https://twitch.tv/virtualabs ... |
Hi folks, I've just pushed a new version of Btlejack (2.1.0) in the master branch that supports Micro:Bit v1 & v2 so you can give it a try. Please reflash your Micro:Bit with the This brings BLE sniffing capabilities (CONN_REQ and Access Address based) as well as jamming and hijacking to Micro:Bit v2 hardware! I've only tested this firmware on a Micro:Bit v2.0 so if you have different versions please post some feedback here ! |
I was able to mount my Micro:Bits and the btlejack -i command says that they are flashed: however, when I attempt to run Btlejack I get an error that says no sniffing device found. Any ideas what I;m doing wrong? thank you in advance! |
Wait nevermind! It's working for me now. Ofcourse it works right when I give up and make a post. This is so cool! |
Hello, I use a Micro:Bits V2.2 and the automatic installation does not work for me. I did resolve the problem, with manually putting the Firmware onto the Micro:Bits. But I still have a problem with detecting existing connections. My Board will randomly detect far away Signals (-80 dBm), but loses them too quickly to follow them. I have some Sensor Tags which communicate with BLE, that I want to sniff, but the board does not find them. Please help me if you have any idea what could be the Problem. Many thanks in advance |
I am also getting the same exact issue on Micro:Bit v2.21, although I didn't have a problem with firmware installation. Nearby connections don't seem to be detected, and only rarely does a remote one pop up on the screen, disappearing after 1-2 packets. Edit: Forgot to mention; thank you for the awesome work! |
It could be interesting to known which Bluetooth Low Energy version is supported by these devices as the channel selection algorithm may vary (there are now 2 of them, the last one being more difficult to attack). So basically, are the target devices using BLE version 5.x or 4.x, and do they support CSA #2 ? A PCAP file of an intercepted connection (through the -c option in order to intercept the connection request) could help debugging this for sure. |
@alperoot by th way, can you give me here the interface version of your Micro:Bit v2.21 (normally present in the DETAILS.TXT file available when you plug your device into a computer) ? I will add support for this specific version. |
It is Interface Version: 0257 |
Allright, I updated the firmware install procedure in the last release (also available on master branch) and it should be supported now. I used Micro:Bit DAP Link interface documentation to include all missing versions with the corresponding firmware (https://tech.microbit.org/software/daplink-interface/). |
I'm running into this issue: Traceback (most recent call last): |
Well, you should use python 3 instead of python 2 (now deprecated) and I think everything should be ok. |
Hello, i ve just got my MicroBit V2.21, i ve read all the issue and I still don t understand how to use it, how should I install the new version. Please someone could help making a tutorial o something. |
Can confirm the new firmware is able to be installed on the MicroBit v2.21 Interface Version: 0257. I copied the embedded btlejack-fw-v2.hex directly to the Microbit instead of using the However, as others have reported, I am not seeing anything with Could you update your firmware repo @virtualabs? I would like to take a peak and be able to modify things or compile with some logging. Thanks for this work. |
The whole point was to check if Anyways, is it possible to give me more insight on the target devices you are testing, the command line options you are using in order to try to reproduce this behavior ? I've just tested with a BLE v4.x device of mine and managed to capture a connection between a smartphone and this device. The more details you can give me the better I can sort it out (reproducing the issue, analyzing it, finding the root cause and releasing a fix). |
I can confirm that Here are the devices setup I tested:
|
In summary, you managed to capture initial connections with The problem comes from the firmware (and maybe the hardware too) as it seems difficult for the moment to sniff valid access addresses. I need to experiment a bit more with my MicroBit v2 in order to figure out how to solve this behavior with the nRF52 SoC. |
Hello @virtualabs @p0px I have update my MicroBit 2.21 firmware, and it flashes correctly with btlejack -i.I was making a sniffing test on an ESP32 (SoC with blt and wifi features) with a simpleBLE configuration to see if i can sniff. But when i do "btlejack -c [Esp32 MAC]" it does not do anything, it "freeze". Myabe becasue i need more MicroBits? Or maybe is another thing? Sorry for my english |
@Kagi4 I was able to Only thing I have noticed so far is that after some uses I will need to re-plug in my MicroBits or else the connections will be quickly lost once they are found. |
hello sir |
Hi @virtualabs to let you know that micro:bit is found in version 2.2 (Oct 2023) that make the deployement with
As requested here some feedback : The output after btlejack -i : [!] Micro:Bit version could not be determined for /media/MICROBIT ================== Info i've in the file details.txt : DAPLink Firmware - see https://daplink.io When i manualy force 0258 to 0257 in details.txt the result is : [i] Flashing /media/MICROBIT with btlejack-fw-v2.hex ... ┌──(root㉿kali)-[/media/MICROBIT] ^CTraceback (most recent call last): And the board show in sequence with led "5" , "0" , "4" , ":(" in loop. If you need more info i will be more than happy to provide them. |
I think you're right and this version is not supported. I pushed a patch into the main branch, can you give it a try and tell me if this fixes your issue ? |
What a quick response !
But i'm in a very dense environement in bluetooth device , i should see a lot a things and i 've currently no "output" with :
or
i've waiting arroung 2-3 min for each test I'm playing with one currently even three is recommanded , how much should i be patient and make test before i could see somethings ? I'm encline to buy two more if the first one give some result. When i retry to :
Is it normal ? Shouldn't do re flash ? |
Well, Micro:Bit v2.x hardware is a bit different from version 1, and the trick used to turn a nRF51822 (SoC used in version 1) into a sniffer does not work properly on nRF52832 (SoC used in version 2). I still need to fix this.
It means your Micro:Bit is correctly detected, absolutely ! If you use only one sniffer it may miss the connection request when a connection is started, but it should at least catch one at some point. What device are you trying to sniff ? Are you sure it is using Bluetooth Low Energy ? The last issue you mention looks like you plugged in your Micro:Bit while pressing the reset button, thus enabling Micro:Bit's flashing mode. |
@virtualabs Hi ,
or
I beleive that the .hex is deleted because there is some sort of checksum calculation and other check that if the .hex in'st conform he's simply deleted. I guess as a larning board they make it to avoid any human error to brick it. Fun fact , at start , (0258) with i use fixed value like this : btlejack -d /dev/ttyACM0 -f 0x8e89bed6 -k 0x18a449 , i had short a reponse like that :
I had to rush command before the delete of the .hex but that the farthest i could reach has result. |
Hello @virtualabs,
|
Microbit:BBC V2; Works up until Determining channel map. Was poking into the code and saw the packet structure. Using
UPDATE:
|
Hey,
since the micro:bit v2 was released in october 2020 and is now supporting Bluetooth 5.0 - will btlejack support the new version and may we see some updates regarding Bluetooth 5.0 support?
Regards
The text was updated successfully, but these errors were encountered: