Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
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
captainwong
ademco_hb
Commits
3ece614a
Commit
3ece614a
authored
Sep 15, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
74c3d02a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
27 deletions
+33
-27
README.md
docs/README.md
+7
-6
gen_event_md.cpp
examples/gen_event_md/gen_event_md.cpp
+26
-21
No files found.
docs/README.md
View file @
3ece614a
...
...
@@ -185,9 +185,15 @@
### *恒博主机类型与支持的防区属性对照表*
*
防区属性是否支持防拆
||00 匪警全局|01 匪警紧急|02 火警防区|03 胁迫防区|04 燃气防区|05 淹水防区|06 分机|07 遥控器|08 匪警半局|09 屏蔽防区|0A 门铃防区|0F 旁路防区|
|----|----|----|----|----|----|----|----|----|----|----|----|----|
|防拆支持|√|√| |√| | |√| |√| | |√|
*
主机类型与支持的防区属性对照表
|事件码|类型|型号|00
匪警全局|01 匪警紧急|02 火警防区|03 胁迫防区|04 燃气防区|05 淹水防区|06 分机|07 遥控器|08 匪警半局|09 屏蔽防区|0A 门铃防区|0F 旁路防区
|
|事件码|类型|型号|00
|01|02|03|04|05|06|07|08|09|0A|0F
|
|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
|1707|3|
<ul><li>
G250
</li></ul>
|√|√|√|√|√|√|√|√|√|√|√|√|
|1717|4|
<ul><li>
4040G
</li><li>
5050G
</li><li>
5050G-4G
</li></ul>
|√|√|√|√|√|√| |√| | | | |
...
...
@@ -198,11 +204,6 @@
|1777|7|
<ul><li>
G1000
</li><li>
G1000-4G
</li></ul>
|√|√|√|√|√|√| |√| |√|√|√|
|1787|2|
<ul><li>
5050G-4GW
</li></ul>
|√|√|√|√|√|√| |√| | | | |
|1797|10|
<ul><li>
2050
</li></ul>
|√|√|√|√|√|√| |√| | | | |
*
防区属性是否支持防拆
||00 匪警全局|01 匪警紧急|02 火警防区|03 胁迫防区|04 燃气防区|05 淹水防区|06 分机|07 遥控器|08 匪警半局|09 屏蔽防区|0A 门铃防区|0F 旁路防区|
|----|----|----|----|----|----|----|----|----|----|----|----|----|
|防拆支持|√|√| |√| | |√| |√| | |√|
## 四、恒博扩展
...
...
examples/gen_event_md/gen_event_md.cpp
View file @
3ece614a
...
...
@@ -299,10 +299,35 @@ void print_available_zone_props()
};
printf
(
"* 防区属性是否支持防拆
\n\n
"
);
printf
(
"|"
);
for
(
auto
zp
:
all_props
)
{
printf
(
"|"
);
print_prop
(
zp
);
}
printf
(
"|
\n
"
);
printf
(
"|----"
);
for
(
size_t
i
=
0
;
i
<
all_props
.
size
();
i
++
)
{
printf
(
"|----"
);
}
printf
(
"|
\n
"
);
printf
(
"|防拆支持"
);
for
(
auto
zp
:
all_props
)
{
printf
(
"|%s"
,
print_bool
(
zonePropCanReportTamper
(
zp
)));
}
printf
(
"|
\n\n
"
);
printf
(
"* 主机类型与支持的防区属性对照表
\n\n
"
);
printf
(
"|事件码|类型|型号"
);
for
(
auto
zp
:
all_props
)
{
printf
(
"|"
);
print_prop
(
zp
);
//printf("|"); print_prop(zp);
printf
(
"|%02X"
,
(
int
)
zp
);
}
printf
(
"|
\n
"
);
...
...
@@ -329,26 +354,6 @@ void print_available_zone_props()
}
printf
(
"* 防区属性是否支持防拆
\n\n
"
);
printf
(
"|"
);
for
(
auto
zp
:
all_props
)
{
printf
(
"|"
);
print_prop
(
zp
);
}
printf
(
"|
\n
"
);
printf
(
"|----"
);
for
(
size_t
i
=
0
;
i
<
all_props
.
size
();
i
++
)
{
printf
(
"|----"
);
}
printf
(
"|
\n
"
);
printf
(
"|防拆支持"
);
for
(
auto
zp
:
all_props
)
{
printf
(
"|%s"
,
print_bool
(
zonePropCanReportTamper
(
zp
)));
}
printf
(
"|
\n\n
"
);
}
int
main
()
...
...
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