Echo自检功能指南

介绍

概述

在某些行业应用中,可能需要自动检查设备的扬声器和麦克风。这是通过回声自测功能完成的。原理很简单:设备通过扬声器播放音频并通过麦克风录音,以验证扬声器和麦克风是否都正常工作。以下部分说明如何在行业设备上执行语音自测。

适用型号

门禁、对讲机和其他行业专用终端。

先决条件

① 一台对讲设备(本指南以 i12 为例),一台 PoE 交换机或直流电源,以及一台 Yunyi 服务器。将设备连接到交换机。
② 一台配置 PC 和一台服务器连接到同一台交换机,且 PC 与设备之间的网络通信已确认。

设备与 PC 连接图

将 i12 连接到交换机,将服务器连接到同一台交换机,并将 PC 也连接到该交换机,确保 PC 和设备可以通过网络通信,如下所示。

设备与 PC 连接图

回声自测方法

回声自测可以通过几种不同的方式实现。每种方法说明如下。

主动 URI 方法

主动 URI 的工作原理是从远程控制台发送 HTTP GET 请求。设备内置 HTTP 服务器,可解析请求并执行命令,从而实现对设备的远程控制。

测试格式为:
http://Device_IP/cgi-bin/ConfigManApp.com?key=ECHO_TEST

设备 IP:正在测试的设备的 IP 地址。在此示例中,IP 地址为 172.18.8.15
返回结果:如果扬声器和麦克风都已连接且正常工作,结果将为 success。如果扬声器或麦克风断开或损坏,结果将为 Failure

示例:在浏览器地址栏中输入以下地址。如果设备扬声器和麦克风正常工作,返回结果将为 success,如图 1 所示。

http://172.18.8.15/cgi-bin/ConfigManApp.com?key=ECHO_TEST

浏览器中成功的回声自测结果

HTTP API 方法

HTTP API 专为与第三方应用程序或管理系统集成而设计。设备充当 HTTP 服务器,并通过 URL http://ip/xmlservice 提供 API 服务。第三方应用程序充当 HTTP 客户端,并发送带有 XML 内容的 HTTP POST 请求。

HTTP API 请求格式如下:

客户端 -> 服务器请求



URI="cmd:echo_test"

这表示请求的命令是回声自测。

服务器 -> 客户端响应



URI="cmd:echo_test"
0


返回结果:如果扬声器和麦克风都已连接且正常工作,结果为 success。如果扬声器或麦克风断开或损坏,结果为 Failure

示例:您可以使用 Postman 或 ApiPost 进行测试。向 http://Device_IP/xmlservice 发送 POST 请求,输入正确的 XML 请求正文,然后点击 Send。如果请求正确,设备将成功返回测试结果,如图 2 所示。

向设备发送 POST 请求以进行回声自测

时间计划方法

您可以在时间计划设置中添加语音自测项目。设备将在设定的时间或设定的时间段内自动执行自测,并通过 Action URL 机制报告结果。

登录设备网页界面,然后前往 Intercom Settings --- Time Plan --- Time Plan Rules 并创建一个新的时间计划,如图 3 所示。

执行类型:选择 Voice Self-Test
执行时间:选择所需的时间段。设备将在该设定的时间段内执行自测。

语音自测时间计划配置

成功添加规则后,Time Plan 部分将出现一个新的时间计划条目。当到达计划时间时,设备将自动执行自测。

SIP 消息方法

在公共网络环境中,SIP 消息方法的运作方式是服务器向设备发送 Message Active URI 命令。设备以 200 OK 响应 Message 请求。然后它将包含自测结果的 Message 响应发送回平台,平台以 200 OK 响应。

1. 在服务器上注册设备账户。

2. 在服务器上创建自测任务。在此示例中,使用 Yunyi 服务器。登录 Yunyi 服务器网页界面,前往 Self-Test Task --- Add,然后创建一个新的自测任务。

3. 添加任务后,选择任务并点击执行。如果设备扬声器和麦克风已连接且正常工作,任务将成功完成。如果扬声器或麦克风断开或损坏,执行将失败,服务器界面将显示异常状态。您也可以前往服务器网页界面中的 Self-Test Result 直接查看结果。

在服务器上查看自测结果

您也可以通过捕获设备上的数据包来验证自测是成功还是失败。在开始自测之前,登录设备 web 界面,然后前往 System --- Tools --- Network Packet Capture,然后点击 Start

设备上的网络数据包捕获

自测完成后,在设备网页界面中点击 Stop。在 Wireshark 中打开捕获的数据包文件,并按 sip 进行过滤。在 MESSAGE 数据包中,如果看到 Success 字段,则自测成功。如果结果显示 FailFailure,则自测失败。

在数据包捕获中查看自测结果

目录
客服 电话
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .