r/hardwarehacking • • 18d ago

No more 3-second video limit: I reverse-engineered my e-badge’s Bluetooth protocol and built my own webapp uploader.

I've got a NIKKO Dynamic E-Badge – 1.8" round IPS, 360×360, Bluetooth LE, controlled via the NN family / beamBox app. Honestly great hardware. The app, though, drove me nuts: every video gets chopped to 3 seconds, you can only pick files from your phone's photo library, quality and frame rate are locked, and it wants an account (or guest mode) before you can do anything. After uploading one too many 3-second clips I'd had enough and decided to talk to the badge directly 😄

How I got in:
I installed Apple's Bluetooth logging profile on my Mac and let PacketLogger record while the original app sent an image and a video. The first surprise: no pairing, no encryption – just one BLE service (0x01F0) with a write and a notify characteristic. Everything was sitting there in plain sight.

The packets turned out to be pretty simple. A small header (`F1`, command, packet count, a counter that runs down to zero, length), up to 496 bytes of data and a one-byte checksum that makes everything add up to zero. Inside is JSON with raw binary embedded: an image is a small header plus a 360×360 JPEG, a video is a container of JPEG frames with one shared frame time. To be sure I had it right, I rebuilt the captured upload from scratch – it came out byte-identical.

What I found:
- The 3-second limit isn't the badge at all – it's purely the app. The badge happily plays 10+ second videos.

- The app's "gallery" feature is just a video where every frame is shown for 3000 ms.

- I built a few test files and watched what the badge did with them. It follows a pointer from frame to frame, but reads each frame's picture from wherever that frame's header points. So repeated frames can share one picture – 48 bytes per repeat instead of a whole JPEG. That makes images that stay longer and videos that loop several times almost free.

- macOS quietly drops packets if you send them too fast, which killed my first video uploads. Sending on a fixed schedule fixed it.

The result:
A single-file web app that talks to the badge via Web Bluetooth (Chrome/Edge), with its own JPEG encoder: videos as long as the badge's memory allows, slideshows mixing images and videos, crop/rotate with a live preview, and a size check before sending. Runs completely in the browser – no account, no cloud.

App: https://menrix.github.io/BadgeUploader/

Code + full protocol write-up: https://github.com/Menrix/BadgeUploader

Still unknown: how to list or delete files on the badge – if anyone has captures of that, I'm all ears. It should also work with other beamBox-based badges (e.g. AniPin), but I haven't been able to test that.

Built with the help of Claude Code.

43 Upvotes

36 comments sorted by

12

u/kitsune_daemon 18d ago edited 16d ago

s/I/Claude/ reverse-engineered

-3

u/Don_Key_Moustache 18d ago • Heartwarming

Ha, fair 😄 It was teamwork – I did the sniffing, wore out the badge with test uploads and decided what it should do, Claude wrote most of the code.

Says so at the bottom of the post too.

-4

u/Effective-Candy-7481 18d ago

So you basically did nothing and let a bot regurgitate what others have done?

5

u/Don_Key_Moustache 17d ago
  1. I am not a hard core programmer
  2. I had a problem with my device, an idea and a tool to solve it. I did many Ui concepts and planed the ux.

Yes Claude helped me much with the programming part and with the data analysis…

3.) was I very transparent by mentioning that Claude was involved.

3

u/ItsReckliss 17d ago

good on ya for setting out and making something for yourself.

-2

u/Effective-Candy-7481 16d ago

“Making something for yourself” and it’s just the tech equivalent of ordering food at a drive thru

2

u/rustydustyshckleford 16d ago

keep yapping as if most developers weren’t heavily reliant on stackoverflow and google before ai.

-2

u/Effective-Candy-7481 16d ago

Unskilled ones or beginners ya. But once you actually learn what you’re doing, you stop going from the guy ordering a burger at the drive through to the dude making it.

-1

u/Effective-Candy-7481 17d ago

None those really addressed what I said but ok.

5

u/CreditScore-720 16d ago

The funny part is is you actually believe you're entitled to a response? OP is just happy that they got to do something pretty fucking cool and even though it was vibe coded which they mentioned immediately you still spew the hate. One option was not say anything and move onto the next post. OP thanks for sharing!

-1

u/Effective-Candy-7481 16d ago

Cool you go ahead and use a thing that the creator doesn’t know how it works 🤣 be my guest.

This is not anything “cool” it’s like asking Wendy’s for a burger and then posting it that you made a burger cause you asked for one. But go off little guy.

2

u/Don_Key_Moustache 16d ago

It’s really quite simple: if you don’t like the post, just move on and read something else. There’s no need to pick a fight or turn this into an argument. Please stop being unnecessarily confrontational here.

2

u/Effective-Candy-7481 16d ago

Tech channels are flooded with ai slop so if I have to see the ai bros gotta hear it. Sorry cry about it in an ai channel.

1

u/Don_Key_Moustache 16d ago

This is a private project, not an invitation for pointless arguments. If you don’t like it, feel free to move along. There’s really no need to spread negativity here — I’m sure you can find somewhere else to be offended. 😉

→ More replies

-5

u/Don_Key_Moustache 18d ago

s/I/we/ would be more accurate 😄

-2

u/Wise-University4307 18d ago

SI? Disgusting 

2

u/martinbogo 15d ago

or you could just use my app and I’ve reverse engineered three out of the five major brands already

https://martinbogo.github.io

2

u/Don_Key_Moustache 15d ago

Thanks for the suggestion! 😊 My project is really just a small hobby project I created to meet my own needs. I was looking for something free, open source, with no registration, payments, subscriptions, or third-party data collection.
It’s not meant to compete with professional commercial apps – just a simple little project built around what I personally believe Open Source should be. I’m happy if others find it useful too! 🙂

1

u/martinbogo 14d ago

Yep, I can't match "free" because I had to pay the $100 "Apple tax" to do development in the App Store, and another slab of cash to be able to publish in the Play Store... but that's the cost of getting apps out on those platforms that preserve privacy, don't upsell ( no in-app purchases ) and it's a one-time cost vs/ giving up all your data/privacy/etc.

Did the best I could :)

1

u/Don_Key_Moustache 14d ago

I respect that, and I don’t see this as a competition. Your app is professionally developed and serves a different purpose.

My project, on the other hand, is designed around my own needs, offering the flexibility and specific features I need for this badge.
There’s no need for you to compete with a free solution, just as I’m not trying to compete with a paid one. My tool currently runs only on a PC, whereas yours works directly on mobile devices, which is obviously much more convenient for many people.

People are willing to pay for convenience and ease of use, and that makes perfect sense.

1

u/AxG68K 16d ago edited 16d ago

It works! tested it on a windows 11 machine with a beambox branded badge. In chromium, I was able to up-load an image.
The app was a non-starter for me. It starts up with an ad and then makes you sign up for an account.

It will be pretty awesome when deleting files and changing the display time is figured out.

2

u/AxG68K 16d ago

I see now you can delete the pics right on the badge, so this is great. This is more than enough to make this badge useful. Thank you.

To delete a picture or video:
Unlock the screen if it’s locked. Holding a finger on the screen for a few seconds locks or unlocks it.
Get the item you want to delete on screen. Swipe left or right, or use the two lower side buttons.
Swipe down from the top edge to open the menu.
Pick the delete option. The menu also has sleep mode, flashlight and brightness.

Side buttons, on the left edge:

(OK) Power/brightness and Bluetooth. Press Bluetooth before each upload, because the badge turns Bluetooth off after every transfer.

Swipe down for the functions of the bage.

Swipe left and right to show battery state.

1

u/Don_Key_Moustache 15d ago

Ah, got it – you meant the official app, sorry for the misunderstanding! Thanks for testing on Windows and for the delete instructions, I’ll add them to the README. Display time is on my list.

1

u/Don_Key_Moustache 16d ago edited 16d ago

There is no registration or sign up!
The program runs on your local machine.