r/LegoSmartBrick • u/Saithir • Mar 10 '26
🧩 Code / Logic More reverse engineering.
I've only had one set, so I chose to focus my efforts more on the tags rather than on the BLE interactions/communication.
I did order nfc tag stickers over the weekend, but it turns out they were slightly worse than the tags Lego uses - besides being much larger (about 3x3 studs) they can store less data - so I can only copy 3 of the tags that had short payloads, being the Tie, X-Wing and R2. They all copied correctly and worked using the stickers, so I don't see an issue copying on larger stickers - I know copying tags doesn't sound very significant, but I remember people had worries about potentially losing/breaking their tiles/minifigs and rendering the whole set non-interactive, so that's not nothing.
There's still some more tags in the other sets, so if you have any of the other sets apart from the X-Wing/Vader's Tie/Throne Room and are able to use your phone to get the data, that would be beyond awesome.
There's some code and findings and tag data here: https://github.com/marcinruszkiewicz/lego_smart_brick
As for what's next - I don't really know. Sadly the tag payloads are encrypted and it looks like we're not gonna easily get them decrypted without physical access to the smart brick's insides, which I don't really want to do yet.
3
u/maeh-w Mar 12 '26
I've also shared my code base here: https://codeberg.org/maehw/SmartBrickToolkit (Codeberg is similar to GitHub)
2
u/Saithir Mar 13 '26
I've read up on that Kaitai Struct thing because it's the first time I've seen it and it's pretty cool too, good job and I'll definitely remember that tool :)
6
3
u/maeh-w Mar 21 '26
We have reverse engineered schematics now! https://github.com/nanash1/smart_brick
2
u/Arkaivos 🟠Programmer Mar 10 '26
Awesome work! Sadly for me, Smart Bricks are not yet available in my country.
2
4
u/NanoRex Mar 10 '26
That's a shame to know it's encrypted. How can you tell, and how could it theoretically be reverse engineered if at all possible?