CANSNIFFER(1)

πŸ“¦
version 2023.03 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’… CANSNIFFER

okay bestie, so this is the manual page for cansniffer, and it lives in section 1 of the User Commands of the manual β€” the ✨ one and only ✨ cansniffer, version 2023.03-1build1. she's cute, she's volatile, she's here to watch your CAN bus like it's her fave reality show πŸ¦‹


🌸 NAME

cansniffer β€” like, the manual page for cansniffer 2023.03-1build1? that's her, that's the girl πŸ’–


✨ SYNOPSIS

cansniffer [can-interface]

πŸŽ€ DESCRIPTION

cansniffer β€” a volatile CAN content visualizer. yes, volatile. she does not remember, she does not keep receipts, she just shows you the vibes in real time πŸ‘‘ no cap.


πŸ’… OPTIONS

she has options. so many options. iconic behaviour honestly:

  • -q β€” quiet mode, aka all IDs deactivated. she is on mute bestie, not a single ID is making noise.
  • -r <name> β€” read sniffset.name from a file. loading your settings like a saved playlist πŸ’œ
  • -e β€” fix extended frame format output, no auto detect. you tell her what the frame format is, she doesn't guess.
  • -b β€” start her off in binary mode.
  • -8 β€” start in binary mode β€” this one's for EFF on 80 chars.
  • -B β€” start in binary mode with gap β€” careful, this one exceeds 80 chars! πŸ’€
  • -c β€” color changes. rainbow-ify the deltas 🌈
  • -f <mode> β€” CAN FD mode, choose ur fighter:
    • 0 = OFF
    • 1 = ON
    • 2 = auto detect
    • default: 2
  • -t <time> β€” timeout for ID display, in [x10ms], default: 500, or 0 = OFF. she'll let an ID linger, then she moves on (as she should).
  • -h <time> β€” hold marker on changes, in [x10ms], default: 100.
  • -l <time> β€” loop time (display), in [x10ms], default: 20.
  • -? β€” print this help text. she'll hand you the whole menu.
pro tip bestie: use the interface name any to receive from all can-interfaces. she's not picky, she's everywhere 🫢

πŸ’– commands that can be entered at runtime:

the group chat is LIVE. type these while she's running:

  • q<ENTER> β€” quit. bye babes 😭
  • b<ENTER> β€” toggle binary / HEX-ASCII output.
  • 8<ENTER> β€” toggle binary / HEX-ASCII output (small for EFF on 80 chars).
  • B<ENTER> β€” toggle binary with gap / HEX-ASCII output (exceeds 80 chars!).
  • c<ENTER> β€” toggle color mode. rainbows on, rainbows off.
  • @<ENTER> β€” toggle ASCII output (disabled for CAN FD by default).
  • <SPACE><ENTER> β€” force a clear screen. a little palate cleanser ✨
  • #<ENTER> β€” notch currently marked/changed bits (can be used repeatedly). it's giving scrapbooking πŸ“Έ
  • *<ENTER> β€” clear notched marked.
  • rMYNAME<ENTER> β€” read settings file (filter/notch).
  • wMYNAME<ENTER> β€” write settings file (filter/notch).
  • a<ENTER> β€” enable 'a'll SFF CAN-IDs to sniff.
  • n<ENTER> β€” enable 'n'one SFF CAN-IDs to sniff.
  • A<ENTER> β€” enable 'A'll EFF CAN-IDs to sniff.
  • N<ENTER> β€” enable 'N'one EFF CAN-IDs to sniff.
  • +FILTER<ENTER> β€” add CAN-IDs to sniff.
  • -FILTER<ENTER> β€” remove CAN-IDs to sniff.

FILTER can be a single CAN-ID or a CAN-ID/Bitmask:

🌟 single SFF 11 bit IDs:

+1F5<ENTER>               - add SFF CAN-ID 0x1F5

-42E<ENTER>               - remove SFF CAN-ID 0x42E

🌟 single EFF 29 bit IDs:

+18FEDF55<ENTER>          - add EFF CAN-ID 0x18FEDF55

-00000090<ENTER>          - remove EFF CAN-ID 0x00000090

🌟 CAN-ID/Bitmask SFF:

-42E7FF<ENTER>            - remove SFF CAN-ID 0x42E (using Bitmask)

-500700<ENTER>            - remove SFF CAN-IDs 0x500 - 0x5FF

+400600<ENTER>            - add SFF CAN-IDs 0x400 - 0x5FF

+000000<ENTER>            - add all SFF CAN-IDs

-000000<ENTER>            - remove all SFF CAN-IDs

🌟 CAN-ID/Bitmask EFF:

-0000000000000000<ENTER>  - remove all EFF CAN-IDs

+12345678000000FF<ENTER>  - add EFF CAN IDs xxxxxx78

+0000000000000000<ENTER>  - add all EFF CAN-IDs

so like, if (id & filter) == (sniff-id & filter) the action (+/-) is performed β€” which is quite easy when the filter is 000 resp. 00000000 for EFF. match made in bitwise heaven πŸ’ž


and that's the whole page, bestie. this was cansniffer version 2023.03-1build1, dated December 2025 β€” stay nosy, stay sniffing, and may your bus always be legible πŸŒΈπŸ’œπŸ¦‹ no cap, periodt.

πŸ“¦ where this page comes from