Skip to content

11 INFRARED

Geo edited this page Sep 17, 2025 · 24 revisions

Infrared Mode

This mode allows communication using infrared signals to send and receive remote control commands.
It supports sending specific codes, learning signals from remotes, broadcasting Device-B-Gone codes, protocol selection, and configuration of TX/RX pins.


🧩 Commands

Command Description
send <dev> <sub> <cmd> Send an IR command with current protocol, device, sub-device and command
receive Listen for incoming IR signal and decode it
setprotocol Choose from 83 supported IR protocols (NEC, Sony, RC5, etc.)
devicebgone Send a sequence of IR commands to power off TVs, projectors, boxes...
remote Launch an interactive shell to universal remote control features
load Load and select remote .ir files from the LittleFS storage
replay [count] Records up to 64 frames and replay them with original delays in between
config Configure IR TX and RX pins

📂 Load (.ir files)

The load command uses infrared remote files from the Flipper IRD DB.

How it works (quick start)

  1. Upload the file(s)
    In the Web UI, open Files → LittleFS and drop your .ir files.

  2. Load from the device
    In INFRARED mode, run:

    load
    • Pick a .ir from the list.
    • You can send frames by selecting the index.
  3. Send
    Use the file’s metadata (frequency, preset, protocol) to send the command.
    If multiple commands are present, you can iterate and replay as needed.


📝 Notes

  • send uses the current protocol defined in setprotocol and repeats the command 3 times.
  • receive continuously listens for IR signals and displays the protocol + data when valid.
  • devicebgone loops through a list of known "off" commands from 83 common IR protocols.
  • remote opens an interactive menu to blast common keys (VOL, MUTE, POWER...) across many protocols (200 commands per action).
  • replay asks you to record frames, once it's done, press ENTER to replay them. Optional replay count.
  • setprotocol displays a list of all available protocols and lets you choose one, it will be used with send.
  • config allows you to set which GPIOs are used for IR transmit (TX) and receive (RX).
  • load works with .ir files from https://github.com/Lucaslhm/Flipper-IRDB
  • See https://github.com/probonopd/irdb for a massive database of IR remotes (device subdevice function) to use with the send command

📌 Example Usage

mode infrared
config                     # Set TX and RX pins
setprotocol                # Select a protocol (e.g. NEC, Sony)
send 0 0 64                # Send command (device=0, sub=0, command=64)
receive                    # Wait for and decode IR signals
remote                     # Open an universal remote shell
replay                     # Records up to 64 IR signals and replay until ENTER is pressed
load                       # Load .ir remote files from the NVS and select the one you want
replay 10                  # Records up to 64 IR signals and replay 10 times or until ENTER is pressed
devicebgone                # Try turning off all nearby devices

▶️ Demo

infrared

🔧 Hardware

S7d82489ac25345fa9146425cfb5a0cb4o jpg_960x960

Clone this wiki locally