Allstar Firefly 318ALD31K

April 19, 2026 · View on GitHub

Decoder and encoder for the Allstar Firefly 318ALD31K gate remote, based on the Supertex ED-9 trinary encoder IC. Includes both a standalone FAP for protocol development/testing and a native SubGHz protocol integration.

Protocol Details

ParameterValue
Frequency318 MHz
ModulationOOK (On-Off Keying)
PresetFuriHalSubGhzPresetOok650Async
Encoder ICSupertex ED-9
Code typeStatic 9-bit trinary (DIP switch)
Symbols per frame18 (2 per bit)
Sync pulseNone
Frame repeats20 per keypress
Inter-frame gap~30,440 us

Symbol Encoding

Each DIP switch position is encoded as two consecutive pulse+gap pairs:

DIP StateSymbolPattern
ON (+)H H4045us HIGH, 607us LOW x2
OFF (-)L L530us HIGH, 4139us LOW x2
FLOAT (0)H L4045us HIGH, 607us LOW, 530us HIGH, 4139us LOW

Timing derived from analysis of 37 clean frames across two independent captures.

Save File Format

Filetype: Flipper SubGhz Key File
Version: 1
Frequency: 318000000
Preset: FuriHalSubGhzPresetOok650Async
Protocol: Allstar Firefly
Key: +--000++-

The Key field is exactly 9 characters using +, -, or 0 per DIP switch position (left to right, switch 1-9).

Repository Structure

flipper-allstar-firefly/
├── native_protocol/
│   ├── allstar_firefly.h      # Protocol header + extern declarations
│   ├── allstar_firefly.c      # Full decoder + encoder implementation
│   └── INTEGRATION.txt        # Step-by-step registration instructions
└── fap/
    ├── allstar_firefly.h      # FAP header
    ├── allstar_firefly.c      # FAP implementation (standalone app)
    └── application.fam        # FAP manifest

Native Protocol Installation

  1. Copy native_protocol/allstar_firefly.h and allstar_firefly.c into lib/subghz/protocols/ in your firmware tree.

  2. In lib/subghz/protocols/protocol_list.h add:

#include "allstar_firefly.h"
  1. In lib/subghz/protocols/protocol_list.c add to the protocol array:
&subghz_protocol_allstar_firefly,
  1. Rebuild and flash. The protocol appears in the SubGHz app alongside CAME, Princeton, etc.

See native_protocol/INTEGRATION.txt for full details.

FAP Installation

Copy the fap/ folder into applications_user/ in your firmware tree and build with:

fbt fap_allstar_firefly

The FAP provides LISTEN mode with live decode and RSSI bar, EDIT mode with cursor-based DIP switch editor, and TRANSMIT mode sending 20 frame repetitions.

Validated Against

  • Allstar Firefly 318ALD31K remote (Supertex ED-9 encoder IC confirmed)
  • Timing verified from 37 clean frames across two independent raw captures
  • TX verified by Flipper-to-Flipper loopback decode
  • Native protocol tested: live decode, save/load .sub files, retransmit

Compatible Firmware

  • Unleashed (unlshd-086+)
  • Stock OFW (same protocol registration API)

License

MIT — see LICENSE