Skip to content

Commit 4f5f02d

Browse files
authored
Add new NRCs specified in ISO 14229-1:2020 (#141)
1 parent 0db1aee commit 4f5f02d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

udsoncan/Response.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,27 @@ class Code:
7272
FailurePreventsExecutionOfRequestedAction = 0x26
7373
RequestOutOfRange = 0x31
7474
SecurityAccessDenied = 0x33
75+
AuthenticationRequired = 0x34
7576
InvalidKey = 0x35
7677
ExceedNumberOfAttempts = 0x36
7778
RequiredTimeDelayNotExpired = 0x37
79+
SecureDataTransmissionRequired = 0x38
80+
SecureDataTransmissionNotAllowed = 0x39
81+
SecureDataVerificationFailed = 0x3A
82+
CertificateVerificationFailed_InvalidTimePeriod = 0x50
83+
CertificateVerificationFailed_InvalidSignature = 0x51
84+
CertificateVerificationFailed_InvalidChainOfTrust = 0x52
85+
CertificateVerificationFailed_InvalidType = 0x53
86+
CertificateVerificationFailed_InvalidFormat = 0x54
87+
CertificateVerificationFailed_InvalidContent = 0x55
88+
CertificateVerificationFailed_InvalidScope = 0x56
89+
CertificateVerificationFailed_InvalidCertificate = 0x57
90+
OwnershipVerificationFailed = 0x58
91+
ChallengeCalculationFailed = 0x59
92+
SettingAccessRightsFailed = 0x5A
93+
SessionKeyCreationDerivationFailed = 0x5B
94+
ConfigurationDataUsageFailed = 0x5C
95+
DeAuthenticationFailed = 0x5D
7896
UploadDownloadNotAccepted = 0x70
7997
TransferDataSuspended = 0x71
8098
GeneralProgrammingFailure = 0x72
@@ -101,6 +119,7 @@ class Code:
101119
TorqueConverterClutchLocked = 0x91
102120
VoltageTooHigh = 0x92
103121
VoltageTooLow = 0x93
122+
ResourceTemporarilyNotAvailable = 0x94
104123

105124
#Defined by ISO-15764. Offset of 0x38 is defined within UDS standard (ISO-14229)
106125
GeneralSecurityViolation = 0x38 + 0

0 commit comments

Comments
 (0)