documentation/SubGHzCounterMode.md
Credit to Unleashed Firmware team for documentation and the feature itself
Experimental Counter Mode is an advanced feature that allows you to customize how rolling codes increment when transmitting SubGHz signals. Different protocols support different counter modes, which can be useful for specific cases, main purpose is to make clone of the original remote that will not conflict with original remote, so both Flipper and original remote can be used at same time in rolling code systems without desync or other issues.
Be aware, do not experiment with equipment you don't have access to, if you are not sure what mode works for you and can't reprogram your original remote to the receiver - do not use these modes!!!
In case you have access to the receiver and can do some tests, try some of these modes on your system and let us know how it works for you, in github issues or our communities, thanks!
To enable a specific counter mode, you need to manually edit your .sub file and add a CounterMode line.
.sub file (in /ext/subghz/ on your Flipper Zero SD card)CounterMode: X
X is the mode number (0, 1, 2, etc.)Filetype: Flipper SubGhz Key File
Version: 1
Frequency: 433920000
Preset: FuriHalSubGhzPresetOok650Async
Protocol: Nice FloR-S
Bit: 52
Key: AA AA AA AA AA AA AA
CounterMode: 1
Mode 0 (Default):
Mode 1 (floxi2r):
0x0001 / 0xFFFEMode 2 (ox2):
0x0000 / 0x0001Mode 0 (Default):
Mode 1:
0x0000 / 0x0001 / 0xFFFE / 0xFFFFMode 2:
0x807B / 0x807C / 0x007B / 0x007CMode 3:
Mode 0 (Default):
Mode 1:
0x0000 / 0x0001 / 0xFFFE / 0xFFFFMode 2:
0x0000 / 0x0001 / 0x0002 / 0x0003 / 0x0004 / 0x0005Mode 0 (Default):
Mode 1:
0x0000 / 0x0001 / 0xFFFE / 0xFFFFMode 2:
+0x3333 each transmissionMode 3:
0x8006 / 0x8007 / 0x0006 / 0x0007Mode 4:
0x807B / 0x807C / 0x007B / 0x007CMode 5:
0x0000 / 0xFFFFMode 6:
Mode 7:
+0x3333 5 times to current counter and return original value back adding +1 - 2 times - 7 signals in pack totalMode 0 (Default):
Mode 1 (ofex like):
0x0000 / 0x0001 / 0xFFFE / 0xFFFFMode 2 (0 - 4):
0x0000 / 0x0001 / 0x0002 / 0x0003 / 0x0004Default Behavior:
CounterMode, Regular remote simulation (cnt +1) is used by defaultProtocol Compatibility:
CounterMode:
CounterMode: X (with space after colon)Filetype: Flipper SubGhz Key File
Version: 1
Frequency: 433920000
Preset: FuriHalSubGhzPresetOok650Async
Protocol: Nice FloR-S
Bit: 52
Key: 01 23 45 67 89 AB CD
CounterMode: 1
Filetype: Flipper SubGhz Key File
Version: 1
Frequency: 433920000
Preset: FuriHalSubGhzPresetOok650Async
Protocol: KeeLoq
Bit: 64
Key: DE AD BE EF CA FE BA BE
Manufacture: Doorhan
CounterMode: 2
Q: Will this damage my remote or receiver? A: Yes it may do that - depending on the receiver, it may desync your remote, be aware and don't experiment with equipment you don't have access to
Q: Which mode should I use? A: Do not use those mods if you are not sure
Q: What happens if I use an invalid mode number? A: Last mode from the list will be used
Q: Do I need to add CounterMode to every .sub file? A: No, only add it if you need non-default behavior. Mode 0 is automatic if not specified.
Made for Unleashed FW, please mention source when copying