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 .