Skip to content

Commit a86033f

Browse files
committed
Add GOOSE ASN.1 sources
1 parent 6c2761d commit a86033f

18 files changed

Lines changed: 1421 additions & 2 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ share/python-wheels/
2727
*.egg
2828
MANIFEST
2929
_version.py
30+
.projects
3031

3132
# PyInstaller
3233
# Usually these files are written by a python script from a template

src/icspacket/proto/iec61850/_iec61850.asn1

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Data ::= CHOICE {
2727
booleanArray [14] IMPLICIT BIT STRING,
2828
objId [15] IMPLICIT OBJECT IDENTIFIER,
2929
mMSString [16] IMPLICIT MMSString,
30-
utc-time [17] UtcTime
30+
utc-time [17] IMPLICIT UtcTime
3131
}
3232

3333
MMSString ::= UTF8String
@@ -123,4 +123,30 @@ IECGoosePdu ::= SEQUENCE {
123123

124124
UtcTime ::= OCTET STRING
125125

126+
-- IEC 61850-9-2 Definitions
127+
IEC61850-9-2-Specific-Protocol::= CHOICE {
128+
savPdu [APPLICATION 0] IMPLICIT SavPdu
129+
-- ...
130+
}
131+
132+
SavPdu ::= SEQUENCE {
133+
noASDU [0] IMPLICIT INTEGER(1..65535),
134+
security [1] ANY OPTIONAL,
135+
seqASDU [2] IMPLICIT SEQUENCE OF ASDU
136+
}
137+
138+
ASDU ::= SEQUENCE {
139+
svID [0] IMPLICIT VisibleString,
140+
datSet [1] IMPLICIT VisibleString OPTIONAL,
141+
smpCnt [2] IMPLICIT INTEGER(0..65535),
142+
confRev [3] IMPLICIT INTEGER(0..4294967295),
143+
refrTm [4] IMPLICIT UtcTime OPTIONAL,
144+
smpSynch [5] IMPLICIT INTEGER{none(0),local(1),global(2)} OPTIONAL,
145+
smpRate [6] IMPLICIT INTEGER(0..65535) OPTIONAL,
146+
seqData [7] IMPLICIT Data,
147+
smpMod [8] IMPLICIT INTEGER{samplesPerNormalPeriod(0),samplesPerSecond(1),secondsPerSample(2)} OPTIONAL,
148+
gmidData [9] IMPLICIT GmidData OPTIONAL
149+
-- ...
150+
}
151+
126152
END

0 commit comments

Comments
 (0)