153 Commits

Author SHA1 Message Date
MX
b377cee471 Merge remote-tracking branch 'pp_net/zero-mega' into pp_main 2026-03-22 10:08:05 +03:00
MMX
4616c853b8 Merge branch 'main' into cthuwu-kia-v1-crc-fix 2026-03-22 02:44:58 -04:00
Leeroy
4ec678e34b Change BS to Checksum in Ford_V0 2026-03-22 09:05:40 +11:00
Leeroy
5b41b2ef52 FORD is FIXED, no B.S.! 2026-03-22 07:23:56 +11:00
cthuwu
4e1a9a65ba Fix Kia V1 "Wrong" CRC
fixes "Wrong" CRC issue with cnt_high vales between 1-5
2026-03-21 05:39:49 -04:00
0mega
9ac1ea4ce3 Add Fiat V1, Mazda V0, Mitsubishi V0 and Porsche/Touareg
Ported from ARF
Original implementation by @lupettohf
2026-03-20 17:16:12 +01:00
0mega
d69fe91e38 some fixes 2026-03-11 06:52:54 +01:00
MX
c28eaa3c2e Merge branch 'pp_main' into zero-mega 2026-03-07 19:25:28 +03:00
0mega
d03567f09f Add Kia V6 Encoder 2026-03-04 17:24:42 +01:00
0mega
a54b0ab4a0 PSA faster BF and GUI 2026-03-04 13:17:05 +01:00
MX
7325675e04 fix merge bugs
All checks were successful
FAP Build / ufbt: Build for Momentum dev (push) Successful in 1m8s
FAP Build / ufbt: Build for Momentum release (push) Successful in 1m8s
FAP Build / ufbt: Build for OFW dev channel (push) Successful in 1m8s
FAP Build / ufbt: Build for OFW release channel (push) Successful in 1m7s
FAP Build / ufbt: Build for Unleashed dev (push) Successful in 1m6s
FAP Build / ufbt: Build for Unleashed release (push) Successful in 1m6s
2026-02-20 16:14:10 +03:00
MX
241ec6d75c fix 2026-02-20 16:06:39 +03:00
MX
2a04a6dd30 Merge remote-tracking branch 'pp_net/zero-mega' into gull-protocoles-parse 2026-02-20 16:02:40 +03:00
zero-mega
36c8dce72d Fix VAG decoder 2026-02-19 17:31:24 +01:00
gullradriel
8f00e382d9 typo on logged variable type 2026-02-17 16:45:00 +01:00
gullradriel
a166eb6235 try-fix encoder 2026-02-15 22:14:20 +01:00
gullradriel
75f4283624 use files from file_decoder and not main, dumb me git status 2026-02-12 22:39:05 +01:00
gullradriel
b49a964391 reapplied temp_str furi_string 2026-02-12 22:24:41 +01:00
gullradriel
784d106b8d restored from main, reapplied calloc instead of malloc and some furi_checks 2026-02-12 22:21:43 +01:00
gullradriel
66973cf6dc format and correct defines from main 2026-02-12 17:48:41 +01:00
gullradriel
a35353fed1 format 2026-02-12 17:45:33 +01:00
gullradriel
e483f1db26 restore values from working decoder 2026-02-12 17:44:38 +01:00
gullradriel
078640d074 fix conflict 2026-02-12 16:53:59 +01:00
MX
970b544f4a revert fiat to use working decoder 2026-02-12 18:26:38 +03:00
MX
b7f9327113 Merge branch 'pp_main' into gull-protocoles-parse 2026-02-12 16:46:10 +03:00
MX
a1fc3cf8a9 button is still broken
All checks were successful
FAP Build / ufbt: Build for Momentum dev (push) Successful in 38s
FAP Build / ufbt: Build for OFW dev channel (push) Successful in 38s
FAP Build / ufbt: Build for OFW release channel (push) Successful in 37s
FAP Build / ufbt: Build for Unleashed dev (push) Successful in 37s
FAP Build / ufbt: Build for Unleashed release (push) Successful in 47s
FAP Build / ufbt: Build for Momentum release (push) Successful in 59s
2026-02-12 16:45:40 +03:00
gullradriel
88258a988d move all defines in private c file for clarity 2026-02-12 12:59:38 +01:00
gullradriel
7ab8f6837c testing:
- Harden timing decode, correct Manchester polarity, and size encoder buffer exactly
- Derive exact encoder upload capacity (FIAT_V0_UPLOAD_CAP = 1325 with current constants)
- Fix Manchester Short/Long High/Low event polarity (level maps to duration level)
- Fix end-of-frame off-by-one for btn bits (>= 0x46)
- Zero-init encoder/decoder allocations and reset decoder during alloc
- Reset Manchester state at frame start and ignore very short glitch pulses seen in capture
- Add overflow guards on upload building and yield stop conditions
2026-02-12 12:31:15 +01:00
gullradriel
62b311d96c added missing headers, some defines for caps and duration 2026-02-12 12:30:26 +01:00
gullradriel
eb4a328c89 do not free/realloc furi_string as flipper_format_read_string is doing a reset of the string, check for problems and return error 2026-02-12 11:47:27 +01:00
gullradriel
c4c7b6baee removed unneeded headers 2026-02-12 11:39:11 +01:00
gullradriel
783f5597f9 use calloc instead of malloc, remove not needed anymore variable set to 0 as the calloc do them, furi_check the allocated memory 2026-02-12 11:20:31 +01:00
gullradriel
637092c27e - Harden Manchester timing/reset, shrink encoder emit code
- Add compact timing helpers/macros for consistent TE tolerance checks
- Reset decoder Manchester state + counters in reset() to avoid stale parses
- Make Type2 Manchester decoder use tolerance-based checks (half-bit robustness)
- Compact repeated encoder Manchester bit emission via macro
- Add upload buffer overflow guards in encoder builders
2026-02-12 09:33:04 +01:00
gullradriel
0271feca44 use calloc instead of malloc, avoid setting variables to zero after 2026-02-12 00:18:49 +01:00
gullradriel
20a1860395 make aut64_pack compilation optional, as it's not (yet?) used in the code 2026-02-11 23:38:04 +01:00
gullradriel
ecdee5cf1e make validations optionnal 2026-02-11 23:18:25 +01:00
gullradriel
d2c153a5c6 make aut64 validations optional via a define 2026-02-11 23:04:33 +01:00
gullradriel
6e01796a95 Use updated aut64 API, catch errors 2026-02-11 22:42:40 +01:00
gullradriel
7196583200 - API now returns status codes instead of void
- aut64_encrypt/decrypt/pack/unpack now return int
- API now uses pointers everywhere
- Made 0xFF sentinel meaningful
- Strict key validation added and enforced
- aut64_encrypt, aut64_decrypt, and aut64_pack fail fast if the key is invalid
- aut64_unpack() unpacks into dest, then validates the resulting key
- Pointer validation for public API functions
- Removed sizeof(...) loop bounds and replaced with defined sizes
- Avoid reading uninitialized memory / overwriting incorrectly
- Converted hardcoded message[7] to message[AUT64_BLOCK_SIZE - 1].
- Upgraded internal array dimensions to use defines
2026-02-11 22:42:05 +01:00
gullradriel
695d9c3d46 rename AUT64_KEY_STRUCT_PACKED_SIZE to AUT64_PACKED_KEY_SIZE as the size is not the struct size but the packed key size 2026-02-11 16:28:12 +01:00
gullradriel
2b65d3e135 format + define helpers description 2026-02-11 11:21:28 +01:00
gullradriel
08d27354a5 fix risky/bon-portable 'inline' usage. Follow flipper zero codebase that mainly use static inline in headers for short functions, which guarantee that it will be inlined 2026-02-11 11:19:51 +01:00
gullradriel
06521f8329 return UNKNOWN if no preset name is given 2026-02-11 11:07:35 +01:00
MX
aea05d475c fix kia v2 crc 2026-02-11 04:53:09 +03:00
MX
092d1370d3 fix missing define checks and logs removal 2026-02-10 23:46:32 +03:00
gullradriel
ee2e004b3a update from main 2026-02-09 21:44:56 +01:00
MX
d82c4df166 apply code formatting and make app even smaller 2026-02-09 23:36:27 +03:00
gullradriel
fd6ba8aaff change furi_assert to furi_check 2026-02-09 21:35:58 +01:00
gullradriel
c644b1bbf8 indent code 2026-02-09 20:43:57 +01:00
MX
db1fe3c6cf Revert "fix vag variable allocation"
This reverts commit c0fbaec4d5.
2026-02-09 17:22:45 +03:00