diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-04-23 13:41:58 +0200 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-04-23 13:41:58 +0200 |
commit | c45fc85b78f3d8701346a231f07b7ffa984ca4ed (patch) | |
tree | 1485df9ae1746a12409b0c17bb32d1f810875774 /misc | |
parent | included open ticket test (diff) | |
download | UIC-barcode-c45fc85b78f3d8701346a231f07b7ffa984ca4ed.tar UIC-barcode-c45fc85b78f3d8701346a231f07b7ffa984ca4ed.tar.gz UIC-barcode-c45fc85b78f3d8701346a231f07b7ffa984ca4ed.tar.bz2 UIC-barcode-c45fc85b78f3d8701346a231f07b7ffa984ca4ed.tar.lz UIC-barcode-c45fc85b78f3d8701346a231f07b7ffa984ca4ed.tar.xz UIC-barcode-c45fc85b78f3d8701346a231f07b7ffa984ca4ed.tar.zst UIC-barcode-c45fc85b78f3d8701346a231f07b7ffa984ca4ed.zip |
Diffstat (limited to '')
-rw-r--r-- | misc/dynamicContentDFCB1.asn | 90 | ||||
-rw-r--r-- | misc/headerSpec.asn (renamed from src/resources/headerSpec.asn) | 0 | ||||
-rw-r--r-- | misc/uicBarcodeFCBv2.0.1.asn (renamed from src/resources/uicBarcodeFCBv2.0.1.asn) | 2 | ||||
-rw-r--r-- | misc/uicBarcodeFCBv2.0.2.asn (renamed from src/resources/uicBarcodeFCBv2.0.2.asn) | 2 | ||||
-rw-r--r-- | misc/uicBarcodeFCBv2.0.asn (renamed from src/resources/uicBarcodeFCBv2.0.asn) | 2 | ||||
-rw-r--r-- | misc/uicBarcodeV1finalDelayConfirmation1.3.1.asn (renamed from src/resources/uicBarcodeV1finalDelayConfirmation1.3.1.asn) | 2 | ||||
-rw-r--r-- | misc/uicBarcodeV1finalDelayConfirmation1.3.asn (renamed from src/resources/uicBarcodeV1finalDelayConfirmation1.3.asn) | 2 |
7 files changed, 95 insertions, 5 deletions
diff --git a/misc/dynamicContentDFCB1.asn b/misc/dynamicContentDFCB1.asn new file mode 100644 index 0000000..7ca6d41 --- /dev/null +++ b/misc/dynamicContentDFCB1.asn @@ -0,0 +1,90 @@ +-- ##########################################################################################
+-- #
+-- # FCB Dynamic Content for UicBarcodeHeader.level2SignedData.level2Data.data
+-- # (identified as "FDC1" in UicBarcodeHeader.level2SignedData.level2Data.dataFormat)
+-- #
+-- # Draft version 0.1
+-- #
+-- ##########################################################################################
+ UicDynamicContentData ::= SEQUENCE {
+
+ -- Moment of generation of the dynamic content, expressed in UTC :
+ -- * dynamicContentDay is the number of days from issuing date
+ -- (UicRailTicketData.issuingDetail.issuingYear and issuingDay)
+ -- The range 0..1070 allows a validity equal to that of the validFrom (700) plus
+ -- validUntil (370) elements of the different transport documents of UicRailTicketData.
+ -- * dynamicContentTime is the number of seconds of the day
+ -- (from 0 = 0:00:00 to 86399 = 23:59:59)
+ -- These two elements shall be either both present, either both absent
+ dynamicContentDay INTEGER (0..1070) DEFAULT 0,
+ dynamicContentTime INTEGER (0..86399) OPTIONAL,
+
+ -- Coordinates of the place where the dynamic content has been generated
+ -- (same GeoCoordinateType type as in UicRailTicketData)
+ dynamicContentGeoCoordinate GeoCoordinateType OPTIONAL,
+
+ -- Response from the mobile to any data received from the terminal.
+ -- The data received from the terminal may be a random number, or any other information.
+ -- The response may be the data itself, a hashing of this data, or any other response.
+ -- This response may be completed with other information: IMEI, mobile phone number...
+ -- The type used is ExtensionData, as it is fully adapted.
+ -- extensionId shall be set to:
+ -- * "=" if the data included in extensionData is exactly the one that was transmitted by the terminal,
+ -- * any other value (chosen by the issuer) in other cases.
+ dynamicContentResponseToChallenge ExtensionData OPTIONAL,
+
+ -- proprietary data defined bilaterally
+ dynamicContentExtension ExtensionData OPTIONAL,
+
+ -- challenge string asked by the TCO
+ challengeString IA5String OPTIONAL,
+
+ -- phoneIdHash hashed phone id to be made available via 90918-4 ticket control data
+ phoneIdHash OCTETSTRING OPTIONAL,
+
+ -- e-passport-id hash to be read by the phone at control and to be made available via 90918-4 ticket control data
+ phoneIdHash OCTETSTRING OPTIONAL,
+ ...
+ }
+
+ -- ##########################################################################################
+ -- # Generic type for geo coordinates
+ -- ##########################################################################################
+ GeoCoordinateType ::= SEQUENCE {
+ geoUnit GeoUnitType DEFAULT milliDegree,
+ coordinateSystem GeoCoordinateSystemType DEFAULT wgs84,
+ hemisphereLongitude HemisphereLongitudeType DEFAULT north, -- separate hemishpere flag reduces the data size
+ hemisphereLatitude HemisphereLatitudeType DEFAULT east, -- separate hemishpere flag reduces the data size
+ longitude INTEGER,
+ latitude INTEGER,
+ accuracy GeoUnitType OPTIONAL
+ }
+
+ GeoCoordinateSystemType ::= ENUMERATED {
+ wgs84 (0), -- WGS 84 standard system
+ grs80 (1) -- (outdated) GRS 80 coordinate system
+ }
+
+ GeoUnitType ::= ENUMERATED {
+ microDegree (0), -- approx. 11 cm on earth surface
+ tenthmilliDegree (1), -- 1 / 10000 degree is approx. 11 meter on earth surface
+ milliDegree (2), -- approx 110 meter on earth surface
+ centiDegree (3),
+ deciDegree (4)
+ }
+
+ HemisphereLongitudeType ::= ENUMERATED {
+ north (0),
+ south (1)
+ }
+
+ HemisphereLatitudeType ::= ENUMERATED {
+ east (0),
+ west (1)
+ }
+
+ -- ###########################################################################################
+ ExtensionData ::= SEQUENCE {
+ extensionId IA5String,
+ extensionData OCTET STRING
+ }
\ No newline at end of file diff --git a/src/resources/headerSpec.asn b/misc/headerSpec.asn index 08d84f6..08d84f6 100644 --- a/src/resources/headerSpec.asn +++ b/misc/headerSpec.asn diff --git a/src/resources/uicBarcodeFCBv2.0.1.asn b/misc/uicBarcodeFCBv2.0.1.asn index 010c49c..16c376b 100644 --- a/src/resources/uicBarcodeFCBv2.0.1.asn +++ b/misc/uicBarcodeFCBv2.0.1.asn @@ -1998,7 +1998,7 @@ ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN GeoUnitType ::= ENUMERATED {
microDegree (0), -- approx. 11 cm on earth surface
- tenthmilliDegree (1), -- 1 / 100000 degree is approx. 1.1 meter on earth surface
+ tenthmilliDegree (1), -- 1 / 10000 degree is approx. 11 meter on earth surface
milliDegree (2), -- approx 110 meter on earth surface
centiDegree (3),
deciDegree (4)
diff --git a/src/resources/uicBarcodeFCBv2.0.2.asn b/misc/uicBarcodeFCBv2.0.2.asn index 5ac906d..d7067ca 100644 --- a/src/resources/uicBarcodeFCBv2.0.2.asn +++ b/misc/uicBarcodeFCBv2.0.2.asn @@ -2069,7 +2069,7 @@ ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN GeoUnitType ::= ENUMERATED {
microDegree (0), -- approx. 11 cm on earth surface
- tenthmilliDegree (1), -- 1 / 100000 degree is approx. 1.1 meter on earth surface
+ tenthmilliDegree (1), -- 1 / 10000 degree is approx. 11 meter on earth surface
milliDegree (2), -- approx 110 meter on earth surface
centiDegree (3),
deciDegree (4)
diff --git a/src/resources/uicBarcodeFCBv2.0.asn b/misc/uicBarcodeFCBv2.0.asn index 2c2eda7..924a415 100644 --- a/src/resources/uicBarcodeFCBv2.0.asn +++ b/misc/uicBarcodeFCBv2.0.asn @@ -1996,7 +1996,7 @@ ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN GeoUnitType ::= ENUMERATED {
microDegree (0), -- approx. 11 cm on earth surface
- tenthmilliDegree (1), -- 1 / 100000 degree is approx. 1.1 meter on earth surface
+ tenthmilliDegree (1), -- 1 / 10000 degree is approx. 11 meter on earth surface
milliDegree (2), -- approx 110 meter on earth surface
centiDegree (3),
deciDegree (4)
diff --git a/src/resources/uicBarcodeV1finalDelayConfirmation1.3.1.asn b/misc/uicBarcodeV1finalDelayConfirmation1.3.1.asn index 3c589eb..0181738 100644 --- a/src/resources/uicBarcodeV1finalDelayConfirmation1.3.1.asn +++ b/misc/uicBarcodeV1finalDelayConfirmation1.3.1.asn @@ -1977,7 +1977,7 @@ ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN GeoUnitType ::= ENUMERATED { microDegree (0), -- approx. 11 cm on earth surface - tenthmilliDegree (1), -- 1 / 100000 degree is approx. 1.1 meter on earth surface + tenthmilliDegree (1), -- 1 / 10000 degree is approx. 11 meter on earth surface milliDegree (2), -- approx 110 meter on earth surface centiDegree (3), deciDegree (4) diff --git a/src/resources/uicBarcodeV1finalDelayConfirmation1.3.asn b/misc/uicBarcodeV1finalDelayConfirmation1.3.asn index fb19462..6b79451 100644 --- a/src/resources/uicBarcodeV1finalDelayConfirmation1.3.asn +++ b/misc/uicBarcodeV1finalDelayConfirmation1.3.asn @@ -2003,7 +2003,7 @@ ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN GeoUnitType ::= ENUMERATED { microDegree (0), -- approx. 11 cm on earth surface - tenthmilliDegree (1), -- 1 / 100000 degree is approx. 1.1 meter on earth surface + tenthmilliDegree (1), -- 1 / 10000 degree is approx. 11 meter on earth surface milliDegree (2), -- approx 110 meter on earth surface centiDegree (3), deciDegree (4) |