Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosConnectRoot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
station
YeeAmosConnectRoot
Commits
224b64bc
Commit
224b64bc
authored
May 21, 2020
by
高东东
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gaodongdong' into develop
parents
f51162d2
7250c178
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
ApduQueue.java
.../com/yeejoin/amos/iec104/tcp/client/invoke/ApduQueue.java
+21
-0
InformationObject.java
...com/yeejoin/amos/iec104/tcp/entity/InformationObject.java
+8
-0
No files found.
YeeAmosIec104IntfServer/src/main/java/com/yeejoin/amos/iec104/tcp/client/invoke/ApduQueue.java
View file @
224b64bc
...
@@ -126,6 +126,27 @@ public class ApduQueue {
...
@@ -126,6 +126,27 @@ public class ApduQueue {
// }
// }
}
}
break
;
break
;
// 21 浮点型遥测
case
21
:
InformationObject
[]
normalizedObjects
=
asdu
.
getInformationObjects
();
numberOfSequenceElements
=
asdu
.
getSequenceLength
();
for
(
int
i
=
0
;
i
<
numberOfSequenceElements
;
i
++)
{
InformationObject
obj
=
normalizedObjects
[
i
];
InformationElement
[][]
informationElement
=
obj
.
getInformationElements
();
int
informationObjectAddress
=
obj
.
getInformationObjectAddress
();
RecData
data
=
new
RecData
(
serverId
);
data
.
setCommonAddress
(
asdu
.
getCommonAddress
());
data
.
setCreatedTime
(
new
Date
());
data
.
setDataType
(
2
);
data
.
setInformationAddress
(
informationObjectAddress
);
IeShortFloat
shortFloat
=
(
IeShortFloat
)
informationElement
[
0
][
0
];
data
.
setValue
(
shortFloat
.
getValue
()
+
""
);
informationObjectAddress
++;
RecDataQueue
.
getInstance
().
add
(
data
);
}
break
;
// 30 带 CP56Time2a 时标的单点信息
// 30 带 CP56Time2a 时标的单点信息
case
30
:
case
30
:
InformationObject
[]
informationCP56Time2aObjects
=
asdu
.
getInformationObjects
();
InformationObject
[]
informationCP56Time2aObjects
=
asdu
.
getInformationObjects
();
...
...
YeeAmosIec104IntfServer/src/main/java/com/yeejoin/amos/iec104/tcp/entity/InformationObject.java
View file @
224b64bc
...
@@ -50,6 +50,14 @@ public class InformationObject {
...
@@ -50,6 +50,14 @@ public class InformationObject {
log
.
debug
(
"13 浮点型遥测2: "
+
i
+
"--->"
+
informationElements
[
i
][
1
].
toString
());
log
.
debug
(
"13 浮点型遥测2: "
+
i
+
"--->"
+
informationElements
[
i
][
1
].
toString
());
}
}
break
;
break
;
// 21 浮点型 不带品质描述词的规一化值
case
21
:
informationElements
=
new
InformationElement
[
numberOfSequenceElements
][
1
];
for
(
int
i
=
0
;
i
<
numberOfSequenceElements
;
i
++)
{
informationElements
[
i
][
0
]
=
new
IeShortFloat
(
is
);
log
.
debug
(
"21 浮点型遥测, 不带品质描述词的规一化值: "
+
i
+
"--->"
+
informationElements
[
i
][
0
].
toString
());
}
break
;
// 30 带 CP56Time2a 时标的单点信息
// 30 带 CP56Time2a 时标的单点信息
case
30
:
case
30
:
informationElements
=
new
InformationElement
[
numberOfSequenceElements
][
2
];
informationElements
=
new
InformationElement
[
numberOfSequenceElements
][
2
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment