transit parsers: Calypso card systems

Run from hf calypso info. parsecalypso.c is a table driven EN 1545 walker
(fixed fields, presence bitmaps, repeated containers) after Metrodroid's
En1545Parser, shared by the network parsers:

  Navigo (Paris, 250901)          Metrodroid transit/intercode
  Intercode, other 250xxx         Metrodroid transit/intercode
  Opus (Montreal, 124001)         Metrodroid transit/opus
  Rav-Kav (Israel, 376xxx)        Metrodroid transit/ravkav

hf calypso info additionally hands over the ICC record, so Intercode and
Opus print the card number as issued, reads the second contracts file
(SFI 06) after a full first one, and reads the per contract counters at
SFI 0A..0D, where Rav-Kav keeps its stored value.

Holder data is deliberately not decoded. Self tests are synthetic,
neither Metrodroid nor Metroflip ships real record hex for these.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
iceman1001andClaude Opus 5.5 committed 2026-11-10 10:05:13 +07:00
1 parent 8b2f4f9cf6
commit 070972f47e
14 files changed
+1925 -3

No files matched your search

+4
View File
@@ -446,8 +446,10 @@ set (TARGET_SOURCES
${PM3_ROOT}/client/src/parsers/parsenortic.c
${PM3_ROOT}/client/src/parsers/parsetransit.c
${PM3_ROOT}/client/src/parsers/parsebip.c
${PM3_ROOT}/client/src/parsers/parsecalypso.c
${PM3_ROOT}/client/src/parsers/parsecharlie.c
${PM3_ROOT}/client/src/parsers/parseclipper.c
${PM3_ROOT}/client/src/parsers/parseintercode.c
${PM3_ROOT}/client/src/parsers/parseintertic.c
${PM3_ROOT}/client/src/parsers/parseitso.c
${PM3_ROOT}/client/src/parsers/parsekazan.c
@@ -457,7 +459,9 @@ set (TARGET_SOURCES
${PM3_ROOT}/client/src/parsers/parsenol.c
${PM3_ROOT}/client/src/parsers/parseoctopus.c
${PM3_ROOT}/client/src/parsers/parseopal.c
${PM3_ROOT}/client/src/parsers/parseopus.c
${PM3_ROOT}/client/src/parsers/parseplantain.c
${PM3_ROOT}/client/src/parsers/parseravkav.c
${PM3_ROOT}/client/src/parsers/parserenfe.c
${PM3_ROOT}/client/src/parsers/parsesmartrider.c
${PM3_ROOT}/client/src/parsers/parsesuica.c