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
09a34f9e
Commit
09a34f9e
authored
Sep 15, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zone props
parent
08128747
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
README.md
docs/README.md
+11
-11
gen_event_md.cpp
examples/gen_event_md/gen_event_md.cpp
+5
-4
No files found.
docs/README.md
View file @
09a34f9e
...
@@ -193,17 +193,17 @@
...
@@ -193,17 +193,17 @@
*
主机类型与支持的防区属性对照表
*
主机类型与支持的防区属性对照表
|事件码类型|主机类型|
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 网络模块+工程主机|√|√|√|√|√|√|√|√|√|√|√|√|
|1707 我是网络模块|3 网络模块+工程主机|
<ul><li>
HB-G250
</li></ul>
|
√|√|√|√|√|√|√|√|√|√|√|√|
|1717 我是GPRS主机|4 GPRS主机|√|√|√|√|√|√| |√| | | | |
|1717 我是GPRS主机|4 GPRS主机|
<ul><li>
HB-4040G
</li><li>
HB-5050G
</li><li>
HB-5050G-4G
</li></ul>
|
√|√|√|√|√|√| |√| | | | |
|1727 我是液晶主机|5 液晶主机|√|√|√|√|√|√|√|√|√|√|√|√|
|1727 我是液晶主机|5 液晶主机|
<ul><li>
HB-BJQ560
</li><li>
HB-BJQ560B
</li></ul>
|
√|√|√|√|√|√|√|√|√|√|√|√|
|1737 我是网线主机|6 网线主机|√|√|√|√|√|√| |√| | | | |
|1737 我是网线主机|6 网线主机|
<ul><li>
HB-4040R
</li><li>
HB-5050R
</li></ul>
|
√|√|√|√|√|√| |√| | | | |
|1757 我是三区段主机|8 三区段主机|√|√|√|√|√|√| |√| |√|√|√|
|1757 我是三区段主机|8 三区段主机|
<ul><li>
HB-G1000
</li><li>
HB-G1000-4G
</li></ul>
|
√|√|√|√|√|√| |√| |√|√|√|
|1767 我是物联卡主机|9 物联卡主机|√|√|√|√|√|√| |√| |√|√|√|
|1767 我是物联卡主机|9 物联卡主机|
<ul><li>
HB-2050-4GW
</li></ul>
|
√|√|√|√|√|√| |√| |√|√|√|
|1777 我是真彩主机|7 真彩主机|√|√|√|√|√|√| |√| |√|√|√|
|1777 我是真彩主机|7 真彩主机|
<ul><li>
HB-G1000
</li><li>
HB-G1000-4G
</li></ul>
|
√|√|√|√|√|√| |√| |√|√|√|
|1787 我是简化版物联卡主机|2 简化的物联卡主机|√|√|√|√|√|√| |√| | | | |
|1787 我是简化版物联卡主机|2 简化的物联卡主机|
<ul><li>
HB-5050G-4GW
</li></ul>
|
√|√|√|√|√|√| |√| | | | |
|1797 我是GPRS主机能打电话|10 GPRS主机能打电话|√|√|√|√|√|√| |√| | | | |
|1797 我是GPRS主机能打电话|10 GPRS主机能打电话|
<ul><li>
HB-2050
</li></ul>
|
√|√|√|√|√|√| |√| | | | |
## 四、恒博扩展
## 四、恒博扩展
...
...
examples/gen_event_md/gen_event_md.cpp
View file @
09a34f9e
...
@@ -213,7 +213,7 @@ std::string brand_to_path(const std::string& brand)
...
@@ -213,7 +213,7 @@ std::string brand_to_path(const std::string& brand)
return
{};
return
{};
}
}
void
_print_machine_img
(
MachineType
t
)
void
print_machine_brands
(
MachineType
t
)
{
{
printf
(
"|<ul>"
);
printf
(
"|<ul>"
);
for
(
auto
brand
:
get_machine_brands
(
t
))
{
for
(
auto
brand
:
get_machine_brands
(
t
))
{
...
@@ -253,7 +253,7 @@ void print_machineTypes()
...
@@ -253,7 +253,7 @@ void print_machineTypes()
printf
(
"|%s"
,
print_bool
(
machineCanReportBySMS
(
t
)));
printf
(
"|%s"
,
print_bool
(
machineCanReportBySMS
(
t
)));
printf
(
"|%s"
,
get_core_author
(
t
));
printf
(
"|%s"
,
get_core_author
(
t
));
printf
(
"|%s"
,
get_net_author
(
t
));
printf
(
"|%s"
,
get_net_author
(
t
));
_print_machine_img
(
t
);
print_machine_brands
(
t
);
printf
(
"|
\n
"
);
printf
(
"|
\n
"
);
}
}
}
}
...
@@ -320,13 +320,13 @@ void print_available_zone_props()
...
@@ -320,13 +320,13 @@ void print_available_zone_props()
printf
(
"* 主机类型与支持的防区属性对照表
\n\n
"
);
printf
(
"* 主机类型与支持的防区属性对照表
\n\n
"
);
printf
(
"|事件码类型|主机类型"
);
printf
(
"|事件码类型|主机类型
|型号
"
);
for
(
auto
zp
:
all_props
)
{
for
(
auto
zp
:
all_props
)
{
printf
(
"|"
);
print_prop
(
zp
);
printf
(
"|"
);
print_prop
(
zp
);
}
}
printf
(
"|
\n
"
);
printf
(
"|
\n
"
);
printf
(
"|----
-----|---
----"
);
printf
(
"|----
|----|
----"
);
for
(
size_t
i
=
0
;
i
<
all_props
.
size
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
all_props
.
size
();
i
++
)
{
printf
(
"|----"
);
printf
(
"|----"
);
}
}
...
@@ -339,6 +339,7 @@ void print_available_zone_props()
...
@@ -339,6 +339,7 @@ void print_available_zone_props()
if
(
!
machineIsSelling
(
t
))
continue
;
if
(
!
machineIsSelling
(
t
))
continue
;
printf
(
"|%04d %s"
,
(
int
)
e
,
jlib
::
win32
::
utf16_to_mbcs
(
ademcoEventToStringChinese
(
e
,
false
)).
data
());
printf
(
"|%04d %s"
,
(
int
)
e
,
jlib
::
win32
::
utf16_to_mbcs
(
ademcoEventToStringChinese
(
e
,
false
)).
data
());
printf
(
"|%s"
,
jlib
::
win32
::
utf16_to_mbcs
(
machineTypeToWString
(
t
)).
data
());
printf
(
"|%s"
,
jlib
::
win32
::
utf16_to_mbcs
(
machineTypeToWString
(
t
)).
data
());
print_machine_brands
(
t
);
auto
avail_props
=
getAvailableZoneProperties
(
t
);
auto
avail_props
=
getAvailableZoneProperties
(
t
);
for
(
auto
zp
:
all_props
)
{
for
(
auto
zp
:
all_props
)
{
printf
(
"|%s"
,
print_bool
(
jlib
::
is_contain
(
avail_props
,
zp
)));
printf
(
"|%s"
,
print_bool
(
jlib
::
is_contain
(
avail_props
,
zp
)));
...
...
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