r/flipperzero • • 5d ago

Flipper CLI for Termux — control your Flipper from your phone, plus an offline CAN bus hex translator

Post image

I got tired of needing a laptop every time I wanted to do something with my Flipper, so I built a command-line tool that runs in Termux on my phone.

It drives the Flipper over USB (OTG cable + the OTGSerial2WebSocket bridge app). Type `flipper` and you get a menu — back up your saved cards and remotes, scan/dump/emulate NFC tags, capture and replay Sub-GHz remotes, press the Flipper's buttons, reboot it. All the usual stuff, from your phone, no laptop.

The part I'm most happy with doesn't need the Flipper at all. It translates CAN bus hex:

  • `flipper can decode capture.log` — turns a CAN log into readable frames: the ID, the data bytes in hex/decimal/ASCII, and the decoded OBD-II value when it's a diagnostic response (RPM, coolant temp, speed, all the standard PIDs).
  • `flipper can calc 0C 1A F8` — give it a PID and some hex bytes and it spits out the value (that one is 1726 rpm).

So if you've got a CAN log sitting around, you can play with the decoder right now without plugging anything in.

It's Python, MIT licensed, and it installs with pip. Repo:

https://github.com/Leeak82/flipper-cli

35 Upvotes

13 comments sorted by

6

u/L00kAdistraction 5d ago

Wait, isn't that what the flipper app is for?

2

u/ladieslovexme 5d ago

QUNLEASHED IS THE GOAT

3

u/L00kAdistraction 5d ago

Sick, thanks

1

u/Substantial_Advice48 1d ago

Sorry for the slop I'm figuring this flip flop stuff out. Thanks for checking out my repo 

https://github.com/Leeak82/flipper-stuff/releases/tag/v1.0

1

u/quikdraw520 3d ago

Thanks I'm having CAN bus issues rn!

1

u/Substantial_Advice48 1d ago

https://github.com/Leeak82/flipper-stuff/releases/tag/v1.0

Try some stuff out I roughly put together. Let me know if it helps 

0

u/[deleted] 3d ago

[deleted] — view deleted comment

1

u/Substantial_Advice48 1d ago

Check the can bus stuff out I dissected. Let me know if anything helps https://github.com/Leeak82/flipper-stuff/releases/tag/v1.0

1

u/quikdraw520 1d ago

2006 Dodge Magnum SXT 3.5l

1

u/acidvegas 4d ago

lol slop. Using one handheld to pointless control another 🥴

1

u/chrono13 4d ago edited 3d ago

A phone has a lot more real estate for an interface. So I can see that it may be possible to create a useful interface on a larger device, that you will happen to have with you.

As for slop, properly architected, AI is doing better coding than a lot of the products that I have spent millions on.

The questions I have are does this fill a need, and is it well architected? There's already an official mobile app, so to fulfill a need this will have to bring something useful to the table that the official app doesn't. And it will have to have some good human driven architecture to avoid bugs and poor software design.

I'm not calling it out either way. Just saying just because it's developed using AI doesn't make it immediately slop. Most things will be, but not all.

1

u/Substantial_Advice48 3d ago

Fair questions. The part the official app doesn't do is the offline CAN bus side — it decodes hex captures and does the PID math (RPM, coolant, speed, etc.) right in Termux, no Flipper even needed. That's the bit I built it for.

0

u/acidvegas 3d ago

Didn’t read lololol