<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 1. 服務器請求 | 參數名稱 | 數據類型 | 意義| | --- | --- | --- | | cmd | string | 命令 | | portUse| int | 選擇的通道(1-4)| | otdrPower | string | Otdr模塊電源狀態控制 , “off”:斷電;”on”:上電;”restart”:重啟| | id| uint32| 隨機數,由服務器請求提供,代表消息的唯一性| ## 2. 網關應答 | 參數名稱 | 數據類型 | 意義| | --- | --- | --- | | cmd | string | 命令 | | portUse| int | 選擇的通道(1-4)| | otdrPower | string | Otdr模塊電源狀態控制 , “off”:斷電;”on”:上電;”restart”:重啟| |OTDRStatus| json| otdr模塊的狀態| | id| uint32| 隨機數,由服務器請求提供,代表消息的唯一性| | code| int | 0:成功| ### 2.1 OTDRStatus字段說明 | 參數名稱 | 數據類型 | 意義| | --- | --- | --- | | scan | bool | otdr是否正在測試 | | link | bool | otdr link狀態 | | run | bool | otdr 運行狀態 | ### 2.2 code字段說明 | 數值 | 意義 | | --- | --- | | 0 | 成功 | | -999 | 服務器請求數據格式錯誤 | | -998 |繼電器端口選擇參數非法(合法范圍為:1-4) | | -997 | otdr模塊狀態設置參數非法(合法數值為:on,off,restart) | ### 3 JSON格式說明 ①:設置測試參數 | 參數 | 數據類型 |意義|取值| | --- | --- |--- |--- | | cmd |string |命令 |setParas | id| int|標識|6位隨機數 |paras |||| | --- | --- |--- | --- | | Mode |int |測量模式 |1: 2:| | ReflectThr| float| 反射?限| | Refresh| int |使能刷新 |0:禁?刷新 1:可以刷新 | |Wavelength |int | 測試波?| | RangeKm| int | 測試量程 | | Pulsewidth | int | 測試脈寬 | |Duration | int | 測量時間 | |RefrIndex |float |折射率 |1-2| |EOFThr |float |結束?限 | |NonReflThr |float | 非反射門限| 代碼示例: ``` { "cmd":"setParas", "id":324620, "paras":{ "mode":1, "reflectionThr":65, "isRefresh":1, "waveLength":1550, "rangeKm":0, "duration":15000, "refrIndex":1.4685, "eofThr":5, "nonReflThr":0, "pulseWidth":0 } } ``` ②:取消測試 | 參數 | 數據類型 |意義|取值| | --- | --- |--- |--- | | cmd |string |取消測試|cancelMeasure | id| int|標識|隨機數| | mode|int |取消測試的方法 | 1:完全取消,結束測試進?空閑模式,并把當前獲得的數據全部丟棄;2:停?測試進?空閑模式,以當前獲得的數據為基礎進?數據處理。 代碼示例: ``` { "cmd":"cancelMeasure", "id":324620, "mode":1 } ``` ③:設置IP **說明:目前設置IP范圍為:192.168.4.1 ---192.168.4.9 (后期可升級) ** IP更改后不要忘記~!!! paras包含的?參數,?需全部發送,可以根據服務器發送的參數數量進?設置 | 參數 | 數據類型 |意義|取值| | --- | --- |--- |--- | | cmd |string |設置ip|ipConfig | id| int|標識|6位隨機數| |paras |||| | --- | --- |--- | --- | | ip|string |ip地址 | 最大16位| | mask| string| 子網掩碼 |最大16位| | geteway| string |默認網關|最大16位 | 代碼示例: ``` { "cmd":"ipConfig", "id":324620, "paras":{ "ip":"192.168.4.6", "mask":"255.255.255.0", "gateway":"192.168.4.1" } } ``` ④:曲線接收響應命令 | 參數 | 數據類型 |意義|取值| | --- | --- |--- |--- | | cmd |string |告知OTDR模塊接收到數據|received | id| int|標識|6位隨機數| |content|int | 空命令| 1 代碼示例: ``` { "cmd":"received", "id":324620, "content":1 } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看