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
fcb055dc
Commit
fcb055dc
authored
Nov 18, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore
parent
263e0d15
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
README.md
tools/README.md
+31
-0
exclude.txt
tools/exclude.txt
+5
-0
update_tools.bat
tools/update_tools.bat
+6
-0
No files found.
tools/README.md
0 → 100644
View file @
fcb055dc
# Tools 测试及演示工具,已编译的dll等
*
`ademco_hb.dll`
供
`dll_demo`
和
`csharp_dll_demo`
调用
*
`ademco_java.dll`
供
`Java SimpleServer`
调用
*
`bench.exe`
本机性能测试工具
*
`demo.exe`
正确性测试以及使用C++开发、直接引入头文件的示例
*
`server_demo.exe`
简易版接警中心,可用来接收主机报告、远程控制(已停止维护)
*
`server_demo_libevent`
简易版接警中心,可用来接收主机连接,进行简单交互:接收主机事件;布撤防、查询主机类型或其他自定义消息等命令。
主机连接成功后可以发送的命令列表:
* `A`: 对所有上线的主机布防
* `D`: 对所有上线的主机撤防,要求输入6位数字密码
* `E`: 对所有上线的主机发送紧急报警命令
* `T`: 对所有上线的主机发送 `1798` 查询主机类型
* `M`: 对所有上线的主机,手动输入 [事件码 gg zone]
* `C`: 对指定安定宝ID的主机发送:[ademco_id 事件码 gg zone]
* `X`: 对指定安定宝ID的主机发送,附带字符串形式的 XDATA: [ademco_id 事件码 gg zone xdata],如 [6668888 1400 0 0 123456]
* `Y`: 对指定安定宝ID的主机发送,附带十六进制形式的 XDATA: [ademco_id 事件码 gg zone xdata],如 [666888 1704 0 0 EBBA3FA176]
* `Z`: 对指定安定宝ID的主机发送,开启查询防区信息流程
* `I`: 打印统计信息
* `P`: 打印数据包开关
* `Q`: 退出
*
`bench_client`
性能测试工具,用法
`bench_client ip port thread_count session_count timeout`
。使用
`thread_count`
个线程、发起
`session_count`
个客户端,对
`ip:port`
上运行的接警中心进行性能测试,在
`timeout`
秒后停止并输出测试结果。
## 直连型主机模拟器
*说明:本程序仅用来模拟测试,如果有与真实主机不一致的情况,以真实主机为准。*
注意:界面左侧修改主机配置后需要点击左上角菜单 文件--保存 后才能被程序读取生效。
\ No newline at end of file
tools/exclude.txt
0 → 100644
View file @
fcb055dc
.exp
.iobj
.ipdb
.lib
.pdb
\ No newline at end of file
tools/update_tools.bat
0 → 100644
View file @
fcb055dc
xcopy /i /s /y /exclude:exclude.txt ..\examples\Win32\Release .\Win32
del .\Win32\ademco_java.dll
del .\Win32\gen_event_md.exe
xcopy /i /s /y /exclude:exclude.txt ..\examples\x64\Release .\x64
del .\x64\gen_event_md.exe
PAUSE
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