Doc v1.0.1 (MQTT v1.13)

AISSENS 100AW 技術文件與指令規格中心 AISSENS 100AW Technical Documentation Hub AISSENS 100AW 技術ドキュメントハブ

本文件彙整 AISSENS 100AW Wi-Fi / MQTT 通訊協議 (v1.13),收錄 13 種主動上報封包 (Report) 與 15 種控制指令 (Command) 之完整位元組佈局、參數定義與範例。 Reference manual for the AISSENS 100AW Wi-Fi / MQTT protocol (v1.13), covering 13 Report packet types and 15 Control Commands with byte layouts, parameter definitions and examples. 本書は AISSENS 100AW Wi-Fi / MQTT プロトコル (v1.13) のリファレンスマニュアルであり、13 種類の Report パケットと 15 種類の制御コマンド (Command) について、バイトレイアウト、パラメータ定義および例を収録している。

v1.0.1 Doc Release
v1.13 MQTT Protocol
13 MQTT Reports
15 MQTT Commands
📋 文件修訂履歷 (Revision History) 📋 Revision History 📋 改訂履歴
MQTT (v1.11 ~ v1.13)

📡 MQTT 協議修訂紀錄 (v1.11 ~ v1.13) 📡 MQTT Revision History (v1.11 ~ v1.13) 📡 MQTT 改訂履歴 (v1.11 ~ v1.13)

Version Date 變更說明Description変更内容
v1.13 2026-07-24
Get Sensor Information (0x01): [更新] 增強回應欄位包含 BssidMatch,指示感測器目前連線之 AP 是否與指定之 BssidPrim MAC 位址相符。
Get Sensor Information (0x01): [Updated] Enhanced response to include BssidMatch, indicating whether the sensor's currently connected AP matches the specified BssidPrim.
Get Sensor Information (0x01): [更新] 応答を拡張して BssidMatch を追加。センサーが現在接続している AP が指定された BssidPrim と一致するかどうかを示す。
v1.12 2026-06-15
Set Vibration ISO (0x0E): [新增] 新增透過 JSON 配置 ISO 分級類別、Alert 警告 / Danger 危險門檻值及 X, Y, Z 三軸獨立設定之指令。
Set Vibration ISO (0x0E): [New] Added command to configure ISO categories, Alert/Danger thresholds, and X, Y, Z axis settings via JSON.
Set Vibration ISO (0x0E): [新規] JSON により ISO カテゴリ、Alert/Danger しきい値、および X, Y, Z 軸の設定を構成するコマンドを追加。
v1.11 2026-05-15
Set Vibration ISO (0x0E): [新增] 新增透過 JSON 配置 ISO 分級類別、Alert 與 Danger 門檻值。
Get Sensor Information (0x01): [更新] 增強回應以包含當前振動設定 (IsoIndex, AlertLimit, DangerLimit)。
Set Vibration ISO (0x0E): [New] Added command to configure ISO categories, Alert, and Danger thresholds via JSON.
Get Sensor Information (0x01): [Updated] Enhanced response to include current vibration configuration (IsoIndex, AlertLimit, and DangerLimit).
Set Vibration ISO (0x0E): [新規] JSON により ISO カテゴリ、Alert および Danger しきい値を構成するコマンドを追加。
Get Sensor Information (0x01): [更新] 応答を拡張して現在の振動設定(IsoIndex、AlertLimit、DangerLimit)を追加。
📌 系統架構與通訊概觀 (Architecture & Overview) 📌 Message Exchange Architecture & Overview 📌 メッセージ交換アーキテクチャと概要 (Architecture & Overview)

訊息交換架構 (Message Exchange Architecture) Message Exchange Architecture メッセージ交換アーキテクチャ (Message Exchange Architecture)

AISSENS 100AW 感測器支援雙通道通訊機制:BLE 4.2 用於近場行動裝置 App (Android / iOS) 配對設定與診斷;Wi-Fi / MQTT 用於連接雲端 MQTT Broker 進行週期性數據上報與遠端控制。 The AISSENS 100AW sensor supports dual communication channels: BLE 4.2 for near-field mobile App (Android / iOS) provisioning and diagnostics, and Wi-Fi / MQTT for periodic data reporting and remote cloud commands via MQTT Broker. AISSENS 100AW センサーは 2 つの通信チャネルに対応している:近距離のモバイル App (Android / iOS) による設定と診断のための BLE 4.2、および MQTT Broker を介した定期的なデータ報告とリモートクラウドコマンドのための Wi-Fi / MQTT である。

📱
AISSENS AppAISSENS AppAISSENS App
Android / iOS Mobile
⇄ BLE 4.2 ⇄
GATT JSON
AISSENS 100AW
AISSENS 100AWAISSENS 100AWAISSENS 100AW
Edge Tri-Axial Sensor
⇄ Wi-Fi / MQTT ⇄
Binary / JSON
☁️
AISSENS View / PHMAISSENS View / PHMAISSENS View / PHM
Cloud & MQTT Broker

🔄 MQTT / BLE 訊息交換運作流程圖 🔄 MQTT & BLE Message Exchange Flowchart 🔄 MQTT & BLE メッセージ交換フローチャート

排程自動採集模式 (Schedule Mode) 與 手動開機/按鍵喚醒模式 (Manual Mode) 之生命週期比較 Lifecycle Comparison: Periodic Schedule Mode vs. Manual / Button Trigger Mode ライフサイクルの比較:定期スケジュールモード (Schedule Mode) と手動 / ボタントリガーモード (Manual Mode)
⏰ 排程自動模式Schedule Modeスケジュールモード
感測器依排程定時喚醒 Sensor Wakeup by Schedule スケジュールによるセンサーのウェイクアップ
↓
三軸振動採集錄製 Recording Data データの記録
↓
連線至 Wi-Fi / MQTT Connected to Wi-Fi / MQTT Wi-Fi / MQTT に接続
↓
發送上線通知 (Send Online Report) Send Online Report Online Report を送信
↓
發送採集數據 (Send Record Data) Send Record Data Report Record Data Report を送信
↓
發送詢問指令 (Send Ask Command) Send Ask Command Ask Command を送信
↓
指令接收待命狀態 Command Reception State コマンド受信状態
↓
收到 Sleep 指令 或 3 秒逾時 Receive Sleep Command or Timeout (3s) Sleep コマンドまたはタイムアウト (3s) を受信
↓
發送休眠通知 (Send Hibernate Report) Send Hibernate Report Hibernate Report を送信
↓
感測器進入超低功耗休眠 (Hibernate) Sensor Hibernate センサーのハイバネート (Hibernate)
Report Type = 4
原始波形 / FFT / 特徵值 Raw data, FFT or OA Only Raw data、FFT または OA Only
Report Type = 11
可接收配置與控制指令 Can receive configuration commands 設定コマンドを受信可能
MQTT 0x00 ~ 0x0E
Report Type = 4
🕹️ 手動與按鍵觸發模式Manual Mode手動モード
開機或按鍵觸發手動喚醒 Sensor Wakeup by power-on / button 電源投入 / ボタンによるセンサーのウェイクアップ
⚡ 可執行 BLE 藍牙配對與控制指令 ⚡ BLE Pairing & Commands Enabled ⚡ BLE ペアリングとコマンドが有効
↓
連線至 Wi-Fi / MQTT Connected to Wi-Fi / MQTT Wi-Fi / MQTT に接続
↓
發送上線通知 (Send Online Report) Send Online Report Online Report を送信
↓
指令接收待命狀態 (綠燈常亮) Command Reception State (Green LED) コマンド受信状態 (緑色 LED)
⚡ 可執行 MQTT 控制與配置指令 ⚡ MQTT Downlink Commands Enabled ⚡ MQTT ダウンリンクコマンドが有効
保持在線等待工程師下發配置 Online awaiting engineer configuration オンラインでエンジニアによる設定を待機
↓
收到 Sleep 指令 或 3 分鐘 (180s) 逾時 Receive Sleep Command or Timeout (3 min) Sleep コマンドまたはタイムアウト (3 分) を受信
↓
發送休眠通知 (Send Hibernate Report) Send Hibernate Report Hibernate Report を送信
↓
感測器進入超低功耗休眠 (Hibernate) Sensor Hibernate センサーのハイバネート (Hibernate)
💡 運作機制差異說明:排程模式下為極致省電,採集上報後僅待命 3 秒 即進入深層休眠;手動/開機模式下為便於工程師配置與診斷,待命時間延長至 3 分鐘 (180 秒)。 💡 Key Operational Difference: In Schedule Mode, the sensor prioritizes ultra-low power consumption, remaining in receive state for only 3 seconds before sleeping. In Manual Mode, the receive timeout extends to 3 minutes (180s) for provisioning. 💡 動作上の主な違い:スケジュールモードでは、センサーは超低消費電力を優先し、スリープに入る前に受信状態にとどまるのは 3 秒のみである。手動モードでは、設定作業のために受信タイムアウトが 3 分 (180s) に延長される。
⏰ 排程模式 (Schedule Mode) 與 Ask Command (Type 11) ⏰ Schedule Mode & Ask Command (Type 11) ⏰ スケジュールモード (Schedule Mode) と Ask Command (Type 11)
感測器平時處於低功耗休眠 (Hibernate),內部 RTC 定時喚醒後執行三軸振動採集,運算後向 <sensor id>/report 發送 MQTT 報告。若啟用了排程指令接收模式 (EnSchRecCMD),感測器將會發布 Ask Command (Report Type 11) 詢問雲端是否有待執行的下行指令;若無待執行指令,即刻重新回到休眠以最大化電池壽命。 The sensor spends most of its lifecycle in low-power Hibernate mode, waking periodically via internal RTC to sample vibration, compute metrics, and publish MQTT reports to <sensor id>/report. If schedule receive command mode (EnSchRecCMD) is enabled, the sensor sends an Ask Command (Report Type 11) to check for pending downlink commands before returning to hibernation. センサーはライフサイクルの大半を低消費電力の Hibernate モードで過ごし、内部 RTC によって定期的にウェイクアップして振動をサンプリングし、指標を計算して、<sensor id>/report に MQTT レポートを publish する。スケジュール時コマンド受信モード(EnSchRecCMD)が有効な場合、センサーはハイバネーションに戻る前に Ask Command (Report Type 11) を送信して保留中のダウンリンクコマンドを確認する。
🕹️ 手動與指令接收模式 (Manual / Command Mode) 🕹️ Manual / Command Reception Mode 🕹️ 手動 / コマンド受信モード (Manual / Command Mode)
首次開機或透過實體按鍵喚醒時進入手動模式。在指令接收狀態下(感測器綠色 LED 常亮),感測器保持在線,可隨時接收來自 MQTT <sensor id>/command 或 BLE 4.2 的各項設定、即時量測 (Real-Time Recording) 或校正指令。 Entered upon initial power-on or manual button press. In the Command Reception State (green LED solid on), the sensor remains online to receive configuration, real-time recording, and calibration commands via MQTT <sensor id>/command or BLE 4.2. 初回の電源投入時または手動でのボタン押下時に移行する。コマンド受信状態(緑色 LED 常時点灯)では、センサーはオンラインを維持し、MQTT <sensor id>/command または BLE 4.2 を介して設定、リアルタイム記録、および校正のコマンドを受信する。
📡 MQTT 通訊協議規格 (MQTT Protocol v1.13) 📡 MQTT Communication Protocol (v1.13) 📡 MQTT 通信プロトコル (MQTT Protocol v1.13)
13 Reports / 15 Commands

MQTT Topic 架構與定義 MQTT Topic Architecture & Definitions MQTT Topic の構成と定義

Topic 方向 (Direction)Direction方向 (Direction) QoS 用途說明Description変更内容
<sensor id>/report Sensor ➔ Broker (Publish) QoS 1 感測器主動回傳量測報告 (Raw Data, FFT, Feature, Battery, 喚醒/休眠等 13 種報告)。Sensor publishes measurement reports (Raw Data, FFT, Feature, Battery, Wakeup/Sleep, etc.).センサーが測定レポート(Raw Data、FFT、Feature、Battery、Wakeup/Sleep など)を publish する。
<sensor id>/command App ➔ Sensor (Publish) QoS 1 對感測器發送設定與操作指令 (Get Info, Set Schedule, Continuous Record 等 15 種指令)。Applications publish configuration & control commands to the sensor.アプリケーションがセンサーに設定および制御コマンドを publish する。
<sensor id>/response Sensor ➔ App (Publish) QoS 1 感測器回傳指令執行結果 (包含 Serial Number、Status Code 與 JSON 回應資料)。Sensor publishes command execution results and status envelopes.センサーがコマンドの実行結果とステータスエンベロープを publish する。

📦 封包基礎格式與位元組序標準 (Framing & Endianness Standards) 📦 Packet Framing & Endianness Standards 📦 パケットのフレーム構成とエンディアン規定 (Framing & Endianness Standards)

1. 主動回報封包 (Report Framing) - Topic: <sensor id>/report 1. Sensor Report Framing - Topic: <sensor id>/report 1. センサーレポートのフレーム構成 (Report Framing) - Topic: <sensor id>/report

位元組分佈 (Byte Layout):Byte Layout:バイトレイアウト (Byte Layout):
Byte 0
Type (Report ID)
1 Byte (uint8)
Byte 1 ~ 4
Data Length (n)
4 Bytes (uint32 BE)
Byte 5 ~ (5+n-1)
Data Payload
n Bytes (Binary / JSON)

2. 控制指令封包 (Command Framing) - Topic: <sensor id>/command 2. Command Framing - Topic: <sensor id>/command 2. コマンドのフレーム構成 (Command Framing) - Topic: <sensor id>/command

位元組分佈 (Byte Layout):Byte Layout:バイトレイアウト (Byte Layout):
Byte 0 ~ 1
Serial Number
2 Bytes (uint16 BE)
Byte 2
Command ID
1 Byte (uint8)
Byte 3 ~ 6
Data Length (n)
4 Bytes (uint32 BE)
Byte 7 ~ (7+n-1)
Parameters
n Bytes (Binary / JSON)

3. 指令回應封包 (Response Framing) - Topic: <sensor id>/response 3. Command Response Framing - Topic: <sensor id>/response 3. コマンド応答のフレーム構成 (Response Framing) - Topic: <sensor id>/response

位元組分佈 (Byte Layout):Byte Layout:バイトレイアウト (Byte Layout):
Byte 0 ~ 1
Serial Number
2 Bytes (uint16 BE)
Byte 2
Command ID
1 Byte (uint8)
Byte 3
Status Code
1 Byte (0x00=OK)
Byte 4 ~ 7
Data Length (n)
4 Bytes (uint32 BE)
Byte 8 ~ (8+n-1)
Response Data
n Bytes (JSON / ASCII)
位元組序 (Endianness) 規則備忘:Endianness Rules Summary:エンディアン規則のまとめ (Endianness):
• 大端序 (Big-Endian):Timestamp (8B), Data Length (4B), Serial Number (2B), Temp (2B), ADC (2B), FFT Length (4B), ReportLen (4B)。
• 小端序 (Little-Endian):三軸加速度原始點數 (x, y, z Int16 2B), OA 三軸浮點數 (4B Float), 頻率解析度 (4B Float), 頻譜數值 (4B Float)。
• Big-Endian: Timestamp (8B), Data Length (4B), Serial Number (2B), Temp (2B), ADC (2B), FFT Length (4B), ReportLen (4B).
• Little-Endian: Tri-axial acceleration points (x, y, z Int16 2B), OA velocity floats (4B Float), Frequency resolution (4B Float), Spectrum amplitudes (4B Float).
• Big-Endian:Timestamp (8B)、Data Length (4B)、Serial Number (2B)、Temp (2B)、ADC (2B)、FFT Length (4B)、ReportLen (4B)。
• Little-Endian:3軸加速度データ点 (x, y, z Int16 2B)、OA 速度 float (4B Float)、周波数分解能 (4B Float)、スペクトル振幅 (4B Float)。

📊 MQTT 主動上報報告 (Report Types 0 ~ 12) 📊 MQTT Sensor Reports (Types 0 ~ 12) 📊 MQTT センサーレポート (Report Types 0 ~ 12)

📋 MQTT 報告類型總覽清單 (Report Types Summary) 📋 MQTT Report Types Summary 📋 MQTT Report タイプ一覧 (Report Types Summary)

13 Types (0 ~ 12)

感測器主動向 <sensor id>/report 發布之 13 種報告類型完整彙總清單: Summary list of all 13 unsolicited report types published from sensor to <sensor id>/report: センサーから <sensor id>/report に publish される全 13 種類の非要求型 (unsolicited) レポートの一覧:

Type ID 報告名稱Report Nameレポート名 方向Direction方向 (Direction) 資料格式 / 長度Data Format / Lengthデータ形式 / 長さ 功能用途簡述Description変更内容
0Raw DataSensor ➔ BrokerBinary (3k*2 + 25 B)原始三軸加速度振動時域波形數據Raw tri-axial acceleration waveform3軸加速度の Raw 波形
1FFTSensor ➔ BrokerBinary (3*ReportLen*4*2 + 50 B)加速度與速度線性頻譜頻域分析Acceleration & Velocity linear spectrum加速度と速度のリニアスペクトル
2FeatureSensor ➔ Broker8B TS + JSON String三軸統計特徵值 (RMS, P2P, Kurtosis 等 30 項)Statistical features (RMS, Kurtosis, etc.)統計特徴量 (RMS、Kurtosis など)
3BatterySensor ➔ BrokerBinary (9 Bytes)電池電量等級 (High/Med/Low) 與 ADC 電壓Battery level & ADC voltageバッテリーレベルと ADC 電圧
4Hibernate / WakeupSensor ➔ BrokerBinary / JSON (9B ~ 19B)設備休眠/喚醒狀態切換與在線累計時長通知Online/Offline state transition & durationsオンライン/オフラインの状態遷移と継続時間
5Real Time Raw DataSensor ➔ BrokerBinary (同 Type 0)Binary (Same as Type 0)Binary (Type 0 と同じ)單次即時量測原始波形(由指令 0x05 觸發)One-shot real-time raw waveform単発のリアルタイム Raw 波形
6Real Time FFTSensor ➔ BrokerBinary (同 Type 1)Binary (Same as Type 1)Binary (Type 1 と同じ)單次即時量測頻譜(由指令 0x05 觸發)One-shot real-time FFT spectrum単発のリアルタイム FFT スペクトル
71, 72Raw data + FFTSensor ➔ Broker雙封包 (0x71 波形 + 0x72 頻譜)Dual Packets (0x71 Raw + 0x72 FFT)デュアルパケット (0x71 Raw + 0x72 FFT)雙封包連續排程回報 (波形 + 頻譜)Dual packet scheduled reportingデュアルパケットによるスケジュール報告
81, 82RT Raw data + FFTSensor ➔ Broker雙封包 (波形 + 頻譜)Dual Packets (Raw + FFT)デュアルパケット (Raw + FFT)即時量測雙封包回報 (由即時指令觸發)Real-time dual packet reportingデュアルパケットによるリアルタイム報告
9OA OnlySensor ➔ BrokerBinary (50 Bytes 固定長度)Binary (Fixed 50 Bytes)Binary (固定 50 Bytes)僅包含三軸 ISO 速度總值 (OA) 之輕量報告Lightweight tri-axial ISO OA report軽量な3軸 ISO OA レポート
10Real Time OA OnlySensor ➔ BrokerBinary (50 Bytes, 同 Type 9)Binary (50 Bytes, Same as Type 9)Binary (50 Bytes、Type 9 と同じ)即時單次量測 OA 總值報告Real-time one-shot OA report単発のリアルタイム OA レポート
11Ask CommandSensor ➔ BrokerBinary / Notification排程指令接收輪詢 (詢問雲端是否有待執行指令)Schedule command polling triggerスケジュール時のコマンドポーリングトリガー
12Heart BeatSensor ➔ BrokerBinary (9 Bytes)設備心跳包 (指示採集結束、準備 MQTT 傳輸)Sensor heartbeat & transmission readyセンサーのハートビートと送信準備完了

📦 MQTT 報告泛用封包格式 (Report General Format) 📦 Report General Format 📦 Report の一般形式 (Report General Format)

訂閱主題 (Topic):<sensor id>/report
報告訊息由感測器主動發布 (unsolicited),包含不同報告類型。格式如下:
Topic: <sensor id>/report
The report messages are unsolicited from sensor and contain different types of reports.
Topic:<sensor id>/report
レポートメッセージはセンサーから非要求型 (unsolicited) で送信され、さまざまなタイプのレポートを含む。

Type Data Length (n) Data
1 Byte (uint8) 4 Bytes (uint32 BE) n Bytes (Binary / JSON)
欄位定義 (Field Definitions) Field Definitions フィールド定義 (Field Definitions)
• Type (1 Byte):整數型態,表示接續資料的報告類型。
• Data Length (4 Bytes):整數型態(大端序),表示 Data 欄位中的位元組長度。
• Data (n Bytes):資料型態與格式依各報告類型而異。
• Type (1 Byte): Integer denoting the report type of following data.
• Data Length (4 Bytes): Integer denoting how many bytes are in Data field.
• Data (n Bytes): Specific to each report type.
• Type (1 Byte):後続データのレポートタイプを示す整数。
• Data Length (4 Bytes):Data フィールドのバイト数を示す整数。
• Data (n Bytes):各レポートタイプに固有。
報告類型代碼清單 (Report Types List) Report Types List Report タイプ一覧 (Report Types List)
• 0 : Raw data (原始振動波形)
• 1 : FFT (頻譜分析)
• 2 : Feature (時域特徵值)
• 3 : Battery (電池電量)
• 4 : Hibernate / Wakeup (休眠/喚醒通知)
• 5 : Real Time Raw Data (即時原始波形)
• 6 : Real Time FFT (即時頻譜)
• 71, 72 : Raw data + FFT (雙封包上報)
• 81, 82 : Real Time Raw data + FFT
• 9 : OA Only (速度總值)
• 10 : Real Time OA Only
• 11 : Ask Command (待收指令輪詢)
• 12 : Heart Beat (心跳報告)
• 13~255 : Reserved (保留)
• 0: Raw data | 1: FFT | 2: Feature
• 3: Battery | 4: Hibernate/Wakeup
• 5: Real Time Raw Data | 6: Real Time FFT
• 71, 72: Raw data + FFT | 81, 82: Real Time Raw data + FFT
• 9: OA Only | 10: Real Time OA Only
• 11: Ask Command | 12: Heart Beat
• 13~255: Reserved
• 0: Raw data | 1: FFT | 2: Feature
• 3: Battery | 4: Hibernate/Wakeup
• 5: Real Time Raw Data | 6: Real Time FFT
• 71, 72: Raw data + FFT | 81, 82: Real Time Raw data + FFT
• 9: OA Only | 10: Real Time OA Only
• 11: Ask Command | 12: Heart Beat
• 13~255: Reserved (予約)
Report Type 0 Topic: <sensor id>/report

Type 0: Raw Data 原始振動波形報告 Type 0: Raw Data Report Type 0: Raw Data レポート

封包記憶體結構 (Memory Format in Data Field):Memory Format in Data Field:Data フィールドのメモリ形式 (Memory Format in Data Field):
Header (20 Bytes)
TimestampControl Flags*Index*TotalTempReal ODRBattery infoLast ADCAverage ADC
8 Bytes1 Byte1 Byte1 Byte2 Bytes2 Bytes1 Byte2 Bytes2 Bytes
Acceleration Data (3k * 2 Bytes), where k = 28000 * recording seconds
x1 (2B)y1 (2B)z1 (2B)x2 (2B)y2 (2B)z2 (2B).........
欄位詳細說明 (Field Specifications) Field Specifications フィールド仕様 (Field Specifications)
• 總資料長度 (Data Length n):應為 3k*2 + 25(含 20B Header + 5B General Header)。
• k (點數):AISSENS 目前設定為 28000 * 錄製秒數。
• Timestamp (8B):採集時的 UNIX 時間戳記(微秒/秒,大端序,不含時區),作為唯一 ID。分包時共用相同時間戳。
• Control flags (1B):第 0 位元 (Bit 0) 為 record fail 旗標(設為 1 代表錄製未完成,0 代表成功);Bits 1~7 保留。
• *Index (1B) 與 *Total (1B):目前數值固定為 1,保留未使用。
• Temp (2B):大端序短整數,當前攝氏溫度。公式:
  temperature = (float value) / 256.0 + 28
• Real ODR (2B):短整數(3000 至 30000 Hz),實際輸出數據率會隨溫度、感測器或 IC 晶片微幅變動。
• Battery information (1B):整數,電池等級(3 = High, 2 = Median, 1 = Low)。
• ADC (Last ADC 2B, Average ADC 2B):短整數,當前電池電壓與平均電壓。公式:
  Battery Voltage = (ADC - 1400) * 0.001547 + 2.7
  (門檻:≥ 3.27V 為 High,3.27V ~ 3.15V 為 Medium,< 3.15V 為 Low)
• x, y, z 三軸加速度數據:每個單點量測為 6 Bytes(X: Bytes 0-1, Y: Bytes 2-3, Z: Bytes 4-5,小端序)。換算公式:
  X: ( Byte1 << 8 | Byte0 ) * 0.0002441062
  Y: ( Byte3 << 8 | Byte2 ) * 0.0002441062
  Z: ( Byte5 << 8 | Byte4 ) * 0.0002441062
• Data Length n: Should be 3k*2 + 25 (20B type-specific header + 5B outer General Header).
• k (Data Points): Number of data points, currently set by AISSENS as 28000 * recording seconds.
• Timestamp (8B): Describes UNIX time when raw data was captured. Serves as unique report ID. Big-endian, no timezone.
• Control flags (1B): Bit 0 is record fail flag (1 = not completed, 0 = success); Bits 1-7 reserved.
• *Index (1B) & *Total (1B): Value is 1, currently not in use.
• Temp (2B): Big-endian signed short integer. Formula:
  temperature = (float value) / 256.0 + 28
• Real ODR (2B): Short integer (3000 to 30000 Hz) varying with temperature/sensor.
• Battery information (1B): Integer (3 = High, 2 = Median, 1 = Low).
• ADC (Last ADC 2B, Average ADC 2B): Short integer. Formula:
  Battery Voltage = (ADC - 1400) * 0.001547 + 2.7
  (Thresholds: ≥ 3.27V High, 3.27V ~ 3.15V Medium, < 3.15V Low)
• Acceleration Data (x, y, z): 6 bytes per tri-axial measurement (X: 0-1, Y: 2-3, Z: 4-5, Little-Endian):
  X: ( Byte1 << 8 | Byte0 ) * 0.0002441062
  Y: ( Byte3 << 8 | Byte2 ) * 0.0002441062
  Z: ( Byte5 << 8 | Byte4 ) * 0.0002441062
• Data Length n:3k*2 + 25 となる(20B のタイプ固有ヘッダー + 5B の外側 General Header)。
• k (データ点数):データ点数。現在 AISSENS により 28000 * 記録秒数 に設定されている。
• Timestamp (8B):Raw データが取得された UNIX 時刻を表す。一意のレポート ID として使用される。Big-endian、タイムゾーンなし。
• Control flags (1B):Bit 0 は record fail フラグ(1 = 未完了、0 = 成功)。Bits 1-7 は予約。
• *Index (1B) & *Total (1B):値は 1、現在は未使用。
• Temp (2B):Big-endian の符号付き short 整数。計算式:
  temperature = (float value) / 256.0 + 28
• Real ODR (2B):short 整数(3000 ~ 30000 Hz)。温度やセンサーによって変動する。
• Battery information (1B):整数(3 = High、2 = Median、1 = Low)。
• ADC (Last ADC 2B, Average ADC 2B):short 整数。計算式:
  Battery Voltage = (ADC - 1400) * 0.001547 + 2.7
  (しきい値:≥ 3.27V で High、3.27V ~ 3.15V で Medium、< 3.15V で Low)
• 加速度データ (x, y, z):3軸の 1 回の測定につき 6 バイト(X: 0-1、Y: 2-3、Z: 4-5、Little-Endian):
  X: ( Byte1 << 8 | Byte0 ) * 0.0002441062
  Y: ( Byte3 << 8 | Byte2 ) * 0.0002441062
  Z: ( Byte5 << 8 | Byte4 ) * 0.0002441062
電池等級與電壓標準 (Battery Level & Voltage) Battery Level & Voltage Standards バッテリーレベルと電圧の基準 (Battery Level & Voltage)
電池等級Battery Levelバッテリーレベル 電壓門檻Voltage Threshold電圧しきい値 狀態說明State状態
3≥ 3.27 VHigh (充足)HighHigh (十分)
23.15 V ~ 3.27 VMedian (中等)MedianMedian (中程度)
1< 3.15 VLow (低電量)LowLow (低残量)
原始範例封包 (Example Raw Data Hex Breakdown from Word Doc)Example Raw Data Hex Breakdown from Word DocRaw Data の Hex 分解例 (Example Raw Data Hex Breakdown from Word Doc)
Header (13B General + Timestamp):
Type: 0x00 | Data Length: 0x00 0x05 0x20 0x99 (Value: 336025) | Timestamp: 0x00 0x00 0x00 0x00 0x67 0xc5 0x83 0x4b (Value: 1740997451)

Header (12B Sub-header):
Control Flags: 0x00 | *Index: 0x01 | *Total: 0x01 | Temp: 0xfd 0xed (Value: -531 -> Temperature: 25.92°C)
Real ODR: 0x68 0x3d (ODR: 26685 Hz) | Battery info: 0x04 | Last ADC: 0x07 0x46 (ADC: 1862 -> 3.41V) | Avg ADC: 0x07 0x3c (ADC: 1852 -> 3.39V)

Acceleration Data (x, y, z LE):
x1: 0x5b 0x00 (Value: 91 -> Acc: 0.022g)  | y1: 0x74 0xff (Value: -140 -> Acc: -0.034g) | z1: 0xd8 0x10 (Value: 4312 -> Acc: 1.052g)
x2: 0x79 0x00 (Value: 121 -> Acc: 0.029g) | y2: 0x28 0xff (Value: -216 -> Acc: -0.052g) | z2: 0x6b 0x10 (Value: 4203 -> Acc: 1.025g)
Report Type 1 Topic: <sensor id>/report

Type 1: FFT 頻譜分析報告 Type 1: FFT Report Type 1: FFT レポート

封包記憶體結構 (Memory Format in Data Field):Memory Format in Data Field:Data フィールドのメモリ形式 (Memory Format in Data Field):
Header (45 Bytes)
TimestampStatusBattery infoAverage ADCLast ADCTempOAFrequency ResolutionFFT LengthReportLenReserved
8 Bytes1 Byte1 Byte2 Bytes2 Bytes2 Bytes3*4 Bytes4 Bytes4 Bytes4 Bytes5 Bytes
FFT Data
Acceleration (4B) * ReportLen * 3 axis Velocity (4B) * ReportLen * 3 axis
Float32 (Little-Endian), Bandwidth fixed at SR/2, Unit: g, rms Float32 (Little-Endian), Bandwidth fixed at SR/2, Unit: mm/s, rms
欄位詳細說明 (Field Specifications) Field Specifications フィールド仕様 (Field Specifications)
• 總資料長度 (Data Length n):應為 3*ReportLen*4*2 + 50(含 45B Header + 5B General Header)。
• Timestamp (8B):採集時的 UNIX 時間戳記(大端序,不含時區)。
• Status (1B):FFT/OA 計算結果狀態碼。
• Battery info / ADC / Temp:定義完全同 Raw Data 報告。
• OA (3*4B Float LE):依據 ISO 10816-3 計算之 X, Y, Z 三軸速度總值(小端序 Float,單位 mm/s, rms)。
• Frequency Resolution (4B Float LE):動態頻率解析度(小端序 Float,單位 Hz)。公式:Δf = SamplingRate / FFT Length。
• FFT Length (4B uint32 BE):速度與加速度線性頻譜的總點數(大端序)。
• ReportLen (4B uint32 BE):單軸實際回傳之頻譜數據長度(大端序)。
• Acceleration LINEAR Spectrum:小端序 Float 陣列,頻寬固定為 SR/2,振幅單位為 g, rms。
• Velocity LINEAR Spectrum:小端序 Float 陣列,頻寬固定為 SR/2,振幅單位為 mm/s, rms。
• Data Length n: Should be 3*ReportLen*4*2 + 50 (45B type-specific header + 5B outer General Header).
• Timestamp (8B): UNIX time when raw data was captured. Big-endian.
• Status (1B): FFT/OA calculation result.
• Battery info / ADC / Temp: Same as Raw Data definitions.
• OA (3*4B Float LE): Overall velocity RMS values according to ISO-10816-3 for X, Y, Z axis (mm/s, rms).
• Frequency Resolution (4B Float LE): Dynamic according to data length in arguments (Hz). Formula: Δf = SamplingRate / FFT Length.
• FFT Length (4B uint32 BE): Length for Velocity and Acceleration spectrum (Big-endian).
• ReportLen (4B uint32 BE): Single-axis data volume length (Big-endian).
• Acceleration LINEAR Spectrum: Float values in Little-Endian, bandwidth fixed at SR/2, amplitude in g, rms.
• Velocity LINEAR Spectrum: Float values in Little-Endian, bandwidth fixed at SR/2, amplitude in mm/s, rms.
• Data Length n:3*ReportLen*4*2 + 50 となる(45B のタイプ固有ヘッダー + 5B の外側 General Header)。
• Timestamp (8B):Raw データが取得された UNIX 時刻。Big-endian。
• Status (1B):FFT/OA の計算結果。
• Battery info / ADC / Temp:Raw Data の定義と同じ。
• OA (3*4B Float LE):ISO-10816-3 に基づく X、Y、Z 軸の全体速度 RMS 値(mm/s, rms)。
• Frequency Resolution (4B Float LE):引数のデータ長に応じて動的に変化する(Hz)。計算式:Δf = SamplingRate / FFT Length。
• FFT Length (4B uint32 BE):速度および加速度スペクトルの長さ(Big-endian)。
• ReportLen (4B uint32 BE):単一軸のデータ量の長さ(Big-endian)。
• Acceleration LINEAR Spectrum:Little-Endian の float 値、帯域幅は SR/2 に固定、振幅の単位は g, rms。
• Velocity LINEAR Spectrum:Little-Endian の float 値、帯域幅は SR/2 に固定、振幅の単位は mm/s, rms。
原始範例封包 (Example FFT Hex Breakdown) Example FFT Hex Breakdown FFT の Hex 分解例 (Example FFT Hex Breakdown)
Header (45B):
Type: 0x01 | Len: 0x00 0x04 0x0c 0xb2 (265394) | Timestamp: 0x00 0x00 0x00 0x00 0x67 0xc0 0x3a 0x7f (1740651135)
Status: 0x00 | Bat: 0x04 | Avg ADC: 0x07 0x36 (3.38V) | Last ADC: 0x07 0x12 (3.33V) | Temp: 0xfd 0x65 (25.39°C)
X OA: 0x1b 0x23 0x79 0x3d (0.060 mm/s) | Y OA: 0x7f 0x82 0x59 0x3d (0.053 mm/s) | Z OA: 0x8c 0xe2 0xa0 0x3d (0.078 mm/s)
Freq Res: 0x00 0xf0 0x0a 0x3f (0.542 Hz) | FFT Len: 0x00 0x00 0x60 0x00 (24576) | ReportLen: 0x00 0x00 0x2b 0x30 (11056)
Reserved: 5 Bytes

FFT Payload:
X Acc Spectrum -> Y Acc Spectrum -> Z Acc Spectrum -> X Vel Spectrum -> Y Vel Spectrum -> Z Vel Spectrum
Report Type 2 Topic: <sensor id>/report

Type 2: Feature 時域特徵值統計報告 Type 2: Feature Report Type 2: Feature レポート

封包記憶體結構 (Memory Format in Data Field):Memory Format in Data Field:Data フィールドのメモリ形式 (Memory Format in Data Field):
Timestamp (8B) Feature Fields (JSON in ASCII)
8 Bytes (UNIX time in microseconds, Big-Endian) ASCII Encoded JSON Object
欄位詳細說明 (Field Specifications) Field Specifications フィールド仕様 (Field Specifications)
• Timestamp (8B):採集原始數據時的微秒級 UNIX 時間戳記(大端序,不含時區)。
• Feature Fields (JSON):包含 Temperature (溫度)、BatVoltage (電池電壓),以及 X, Y, Z 三軸加速度之 9 項統計特徵值:
  1. Mean (平均值)
  2. Standard Deviation / StdDev (標準差)
  3. RMS (均方根值)
  4. Peak to Peak / P2P (峰對峰值)
  5. 0 to Peak / Zero2Peak (零至峰值)
  6. Crest Factor (波峰因數)
  7. Skewness (偏態)
  8. Kurtosis (峰態)
  9. Median (中位數)
• Timestamp (8B): Describes UNIX time when raw data was captured (Big-endian, no timezone).
• Feature Fields (JSON): JSON object containing Temperature, BatVoltage, Mean, Standard Deviation, Skewness, Kurtosis, Median, Crest Factor, RMS, 0 to Peak, and Peak to Peak of three-axis acceleration.
• Timestamp (8B):Raw データが取得された UNIX 時刻を表す(Big-endian、タイムゾーンなし)。
• Feature Fields (JSON):3軸加速度の Temperature、BatVoltage、Mean、Standard Deviation、Skewness、Kurtosis、Median、Crest Factor、RMS、0 to Peak、および Peak to Peak を含む JSON オブジェクト。
特徵值 JSON 範例 (Original JSON Example from Word Doc) Original JSON Example from Word Doc 元の JSON 例 (Original JSON Example from Word Doc)
{
  "Temperature": "27.2",
  "BatVoltage": 3.34,
  "x_acc_rms": 102.7775,
  "x_acc_mean": 250.4765,
  "x_acc_std_dev": 102.7775,
  "x_acc_p2p": 907.2144,
  "x_acc_skewness": 0.010195,
  "x_acc_kurtosis": -0.020863,
  "x_acc_crest_factor": 4.463322,
  "x_acc_zero2peak": 453.6072,
  "x_acc_median": -1.531128,
  "y_acc_rms": 100.9656,
  "y_acc_mean": -487.9419,
  "y_acc_std_dev": 100.9656,
  "y_acc_p2p": 904.8207,
  "y_acc_skewness": -0.012661,
  "y_acc_kurtosis": -0.021248,
  "y_acc_crest_factor": 4.856464,
  "y_acc_zero2peak": 452.4103,
  "y_acc_median": -0.373993,
  "z_acc_rms": 113.8679,
  "z_acc_mean": 10179.79,
  "z_acc_std_dev": 113.8679,
  "z_acc_p2p": 935.9395,
  "z_acc_skewness": -0.003698,
  "z_acc_kurtosis": -0.031481,
  "z_acc_crest_factor": 4.399148,
  "z_acc_zero2peak": 467.9697,
  "z_acc_median": 0.638672
}
Report Type 3 Topic: <sensor id>/report

Type 3: Battery 電池電量報告 Type 3: Battery Report Type 3: Battery レポート

封包記憶體結構 (Memory Format in Data Field):Memory Format in Data Field:Data フィールドのメモリ形式 (Memory Format in Data Field):
Timestamp (8B) Battery information (1B) Last ADC (2B) Average ADC (2B)
8 Bytes (UNIX microseconds, BE) 1 Byte (uint8) 2 Bytes (uint16 BE) 2 Bytes (uint16 BE)
欄位詳細說明 (Field Specifications) Field Specifications フィールド仕様 (Field Specifications)
• 總資料長度 (Data Length):固定為 9 Bytes(加上 5B General Header 總封包為 14 Bytes)。
• Timestamp (8B):記錄電池電量時的微秒級 UNIX 時間戳記。
• Battery Information (1B):整數型態,代表目前電量等級:
  • 3 : High (電量充足)
  • 2 : Median (電量中等)
  • 1 : Low (電量偏低)
• ADC (Last ADC 2B, Average ADC 2B):均為整數型態,分別代表當前即時電池電壓 ADC 值與平均電池電壓 ADC 值。
• Data Length: Should be 9 bytes.
• Timestamp (8B): Describes the UNIX time in microseconds that the battery level was captured.
• Battery Information (1B): Integer type containing current battery level:
  • 3: High
  • 2: Median
  • 1: Low
• ADC: Two fields for ADC value (Last ADC 2B and Average ADC 2B), both integer type, representing current battery voltage and average battery voltage respectively.
• Data Length:9 bytes となる。
• Timestamp (8B):バッテリーレベルが取得された UNIX 時刻(マイクロ秒)を表す。
• Battery Information (1B):現在のバッテリーレベルを含む整数型:
  • 3: High
  • 2: Median
  • 1: Low
• ADC:ADC 値の 2 つのフィールド(Last ADC 2B と Average ADC 2B)。いずれも整数型で、それぞれ現在のバッテリー電圧と平均バッテリー電圧を表す。
電池等級與百分比對照表 (Battery Level Table) Battery Level vs Percentage バッテリーレベルと残量の対応表 (Battery Level Table)
電池等級 (Battery Level)Battery Levelバッテリーレベル 電量狀態 (Battery Percentage)Battery Percentageバッテリー残量 (Battery Percentage)
3High (充足)HighHigh (十分)
2Median (中等)MedianMedian (中程度)
1Low (低電量)LowLow (低残量)
Report Type 4 Topic: <sensor id>/report

Type 4: Hibernate / Wakeup 休眠與喚醒事件報告 Type 4: Hibernate / Wakeup Report Type 4: Hibernate / Wakeup レポート

功能說明:Description:説明 (Description):
用於通知設備上線 (Online) 與離線 (Offline) 狀態及詳細運行資訊。依據 Status 分為 Wakeup 喚醒格式 與 Hibernate 休眠格式:
The Hibernate/Wakeup Report is used to notify online and offline status along with additional information. Divided into Wakeup and Hibernate structures based on Status.
Hibernate/Wakeup Report は、オンラインおよびオフラインの状態を追加情報とともに通知するために使用される。Status に基づいて Wakeup と Hibernate の構造に分かれる。

1. 喚醒上線封包格式 (When Status is Wakeup): 1. When Status is Wakeup: 1. Status が Wakeup の場合 (When Status is Wakeup):

Timestamp (8B) Status (1B) Sensor Information (JSON String in ASCII)
8 Bytes (UNIX microseconds) 1 Byte (1 or 3) JSON string including BssidPrim, MqttPort, MqttUsername, Version, BatVoltage...

2. 休眠離線封包格式 (When Status is Hibernate): 2. When Status is Hibernate: 2. Status が Hibernate の場合 (When Status is Hibernate):

Timestamp (8B) Status (1B) Online Duration (2B) Wi-Fi Online Duration (2B) Transmission Duration (2B) Battery Usage Time (4B)
8 Bytes 1 Byte (0 or 2) 2 Bytes (seconds) 2 Bytes (seconds) 2 Bytes (seconds) 4 Bytes (cumulative seconds)
欄位詳細說明 (Field Specifications) Field Specifications フィールド仕様 (Field Specifications)
• Timestamp (8B):休眠或喚醒狀態改變時的微秒級 UNIX 時間戳記。
• Status (1B):1 Byte 整數型態:
  • 0 : Manual Hibernated (手動模式休眠)
  • 1 : Manual Wakeup (手動模式按鍵喚醒)
  • 2 : Schedule Hibernated (排程採集完成休眠)
  • 3 : Schedule Wakeup (排程定時 RTC 喚醒)
• Sensor Information:ASCII 編碼之 JSON 字串。
• Online Duration (2B):本次在線時長(秒)。
• Wi-Fi Online Duration (2B):Wi-Fi 連線維持時長(秒)。
• Transmission Duration (2B):數據上傳傳輸耗時(秒)。
• Battery Usage Time (4B):累計電池使用總時間(秒)。
• Timestamp (8B): Describes UNIX time in microseconds that hibernating status changed.
• Status (1B): 1 Byte integer:
  • 0: Manual Hibernated
  • 1: Manual Wakeup
  • 2: Schedule Hibernated
  • 3: Schedule Wakeup
• Sensor Information: Sensor information JSON string in ASCII.
• Online Duration (2B): In seconds.
• Wi-Fi Online Duration (2B): In seconds.
• Transmission Duration (2B): In seconds.
• Battery Usage Time (4B): Cumulative battery usage time in seconds.
• Timestamp (8B):ハイバネート状態が変化した UNIX 時刻(マイクロ秒)を表す。
• Status (1B):1 Byte の整数:
  • 0: Manual Hibernated
  • 1: Manual Wakeup
  • 2: Schedule Hibernated
  • 3: Schedule Wakeup
• Sensor Information:ASCII のセンサー情報 JSON 文字列。
• Online Duration (2B):単位は秒。
• Wi-Fi Online Duration (2B):単位は秒。
• Transmission Duration (2B):単位は秒。
• Battery Usage Time (4B):累積バッテリー使用時間(秒)。
喚醒 Sensor Information JSON 範例(結構與 0x01 Get Sensor Information 回應相同) Wakeup JSON Example (Same structure as 0x01 Get Sensor Information response) Wakeup JSON の例(0x01 Get Sensor Information の応答と同じ構造)
{
  "FirmwareVersion": "AISSENS_100AW6K-1.2.0",
  "Brand": "ASUS",
  "Model": "AISSENS100AW",
  "Bandwidth": "6KHz",
  "SamplingRate": "26.7KHz",
  "GValue": "8g",
  "SsidPrim": "oppo",
  "BssidPrim": "AA:BB:CC:DD:EE:FF",
  "BssidMatch": true,
  "LocalIp": "192.168.138.165",
  "SignalStrength": 4,
  "BatteryLevel": 3,
  "MACAddress": "39:C7:F7:C7:51:10",
  "Temperature": "27.2",
  "EnSchRecCMD": 0,
  "BatVoltage": 3.34,
  "MqttAddress": "192.168.138.77",
  "MqttPort": 1883,
  "MqttUsername": "public",
  "MqttPassword": "123456",
  "TcpAddress": "192.168.138.77",
  "TcpPort": 1235,
  "UdpAddress": "192.168.138.77",
  "UdpPort": 1234,
  "ActiveTime": 180,
  "PowerSourceMode": "Auto",
  "PowerSourceDetect": "Battery",
  "VibrationConfig": {
    "X_IsoIndex": 2,
    "X_AlertLimit": 4.5,
    "X_DangerLimit": 7.1,
    "Y_IsoIndex": 4,
    "Y_AlertLimit": 2.8,
    "Y_DangerLimit": 4.5,
    "Z_IsoIndex": 1,
    "Z_AlertLimit": 3.5,
    "Z_DangerLimit": 5.0
  }
}
Report Type 5 / 6 Topic: <sensor id>/report

Type 5 / 6: Real Time 即時量測報告 (Raw Data & FFT) Type 5 & 6: Real Time Raw Data & Real Time FFT Type 5 & 6: Real Time Raw Data & Real Time FFT

功能說明:Description:説明 (Description):
• Type 5 (Real Time Raw Data Report):僅當下發 Real Time Recording (0x05) 指令且 mode 設為 0 時觸發。資料格式與 Type 0 (Raw data) 完全相同。
• Type 6 (Real Time FFT Mode Report):僅當下發 Real Time Recording (0x05) 指令且 mode 設為 1 時觸發。資料格式與 Type 1 (FFT) 完全相同。
• Type 5 (Real Time Raw Data Report): Triggered only when real time recording command (0x05) is fired with mode set to 0. Data format is exactly same as Raw data report (Type = 0).
• Type 6 (Real Time FFT Mode Report): Triggered only when real time recording command (0x05) is fired with mode set to 1. Data format is exactly same as FFT report (Type = 1).
• Type 5 (Real Time Raw Data Report):mode を 0 に設定してリアルタイム記録コマンド (0x05) が実行された場合にのみトリガーされる。データ形式は Raw data レポート (Type = 0) とまったく同じである。
• Type 6 (Real Time FFT Mode Report):mode を 1 に設定してリアルタイム記録コマンド (0x05) が実行された場合にのみトリガーされる。データ形式は FFT レポート (Type = 1) とまったく同じである。
Report Type 71, 72 / 81, 82 Topic: <sensor id>/report

Type 71/72 & 81/82: RAW Data with FFT 雙封包上報 Type 71, 72 & 81, 82: RAW Data with FFT Type 71, 72 & 81, 82: RAW Data with FFT

功能說明:Description:説明 (Description):
• Type 71, 72 (RAW Data with FFT Report):當排程錄製指令設定為 mode 2 (Raw data with FFT) 時觸發。封包將發送兩次:第一包為 Raw data (Type 71),第二包為 FFT (Type 72)。資料格式分別與 Type 0 及 Type 1 完全相同。
• Type 81, 82 (Real Time RAW Data with FFT Report):當即時錄製指令 (0x05) 設定為 mode 2 時觸發。封包將發送兩次:第一包為 Raw data (Type 81),第二包為 FFT (Type 82)。兩包共用相同的 Timestamp。
• Type 71, 72 (RAW Data with FFT Report): Comes up when raw data with FFT mode is scheduled. Packet sent twice: first packet is raw data (Type 71), second is FFT (Type 72).
• Type 81, 82 (Real Time RAW Data with FFT Report): Triggered when real time recording command is fired with mode 2. Packet sent twice: first is raw data (81), second is FFT (82), sharing identical Timestamp.
• Type 71, 72 (RAW Data with FFT Report):raw data with FFT モードがスケジュールされている場合に発生する。パケットは 2 回送信される:1 つ目のパケットは raw data (Type 71)、2 つ目は FFT (Type 72) である。
• Type 81, 82 (Real Time RAW Data with FFT Report):mode 2 でリアルタイム記録コマンドが実行された場合にトリガーされる。パケットは 2 回送信される:1 つ目は raw data (81)、2 つ目は FFT (82) で、同一の Timestamp を共有する。
Report Type 9 / 10 Topic: <sensor id>/report

Type 9 / 10: OA Only 速度總值報告 Type 9 & 10: OA Only Report Type 9 & 10: OA Only レポート

封包記憶體結構 (Memory Format in Data Field):Memory Format in Data Field:Data フィールドのメモリ形式 (Memory Format in Data Field):
TimestampStatusBattery infoAverage ADCLast ADCTempOAReserved
8 Bytes1 Byte1 Byte2 Bytes2 Bytes2 Bytes4B * 3 (Float LE)17 Bytes

• 總資料長度 (Data Length n):固定為 50 Bytes(45B Header + 5B General Header)。
• 資料格式與 FFT 報告(Report Type = 1)完全相同,但不包含 OA 之後的大容量頻譜點數數據。
• Type 10 (Real Time OA Only):由即時錄製指令觸發,格式與 Type 9 完全相同。
• Data length n: Should be 50 bytes (45B type-specific header + 5B outer General Header).
• Data format is exactly same as FFT report (Type = 1), but without data after OA.
• Type 10 (Real Time OA Only Mode Report): Triggered on-demand; format identical to Type 9.
• Data length n:50 bytes となる(45B のタイプ固有ヘッダー + 5B の外側 General Header)。
• データ形式は FFT レポート (Type = 1) とまったく同じであるが、OA 以降のデータを含まない。
• Type 10 (Real Time OA Only Mode Report):オンデマンドでトリガーされる。形式は Type 9 と同一である。

Report Type 11 Topic: <sensor id>/report

Type 11: Ask Command 待收指令輪詢 Type 11: Ask Command Type 11: Ask Command

功能說明:Description:説明 (Description):
Ask Command 報告是在排程接收指令模式(Schedule Receive Command Mode)下發送的訊息,用於向伺服器端詢問是否有任何待執行的下行指令。
Ask Command report is schedule receive command mode sending message to check if any command needs to be executed.
Ask Command レポートは、スケジュール時コマンド受信モードにおいて、実行すべきコマンドがあるかどうかを確認するために送信されるメッセージである。
Report Type 12 Topic: <sensor id>/report

Type 12: Heart Beat 心跳在線報告 Type 12: Heart Beat Report Type 12: Heart Beat レポート

封包記憶體結構 (Memory Format in Data Field):Memory Format in Data Field:Data フィールドのメモリ形式 (Memory Format in Data Field):
Timestamp (8B) Status (1B)
8 Bytes (UNIX microseconds, BE) 1 Byte (0 = ready for transmission)

• Timestamp:記錄 Heart Beat 捕獲時以微秒為單位的 UNIX 時間戳記。
• Status:表示上報狀態。0 代表原始數據錄製已結束並準備進行 MQTT 傳輸。
• Type 13~255:保留 (Reserved / TBD)。
• Timestamp: Describes the UNIX time in microseconds that the Heart Beat captured.
• Status: Indicates the reporting state. 0 means raw data recording has ended and is ready for MQTT transmission.
• Type 13~255: Reserved (TBD).
• Timestamp:Heart Beat が取得された UNIX 時刻(マイクロ秒)を表す。
• Status:報告状態を示す。0 は raw data の記録が終了し、MQTT 送信の準備ができたことを意味する。
• Type 13~255:予約 (TBD)。

🕹️ MQTT 控制指令與參數規格 (Command 0x00 ~ 0x0E) 🕹️ MQTT Control Commands & Responses (0x00 ~ 0x0E) 🕹️ MQTT 制御コマンドと応答 (Command 0x00 ~ 0x0E)

📋 MQTT 控制指令總覽清單 (Commands Summary) 📋 MQTT Commands Summary 📋 MQTT コマンド一覧 (Commands Summary)

15 Commands (0x00 ~ 0x0E)

發布至 <sensor id>/command 之 15 種控制指令完整彙總清單: Summary list of all 15 control commands published to <sensor id>/command: <sensor id>/command に publish される全 15 種類の制御コマンドの一覧:

Command ID 指令名稱Command Nameコマンド名 Type 方向Direction方向 (Direction) 功能說明Description変更内容
0x00 Get API Version GET App ➔ Sensor 此指令查詢目前 API 協議版本。若失敗 Status Code 設為錯誤碼且 Data Length = 0;若成功回傳 0x00 與 ASCII 版本字串(例如 "1.0")。 This command is used to query the API version. This command is no longer in use in newer firmware revisions in favor of 0x01. このコマンドは API バージョンを照会するために使用される。新しいファームウェアリビジョンでは 0x01 に置き換えられており、このコマンドは使用されなくなっている。
0x01 Get Sensor Information GET App ➔ Sensor 查詢感測器之完整韌體、硬體規格、連線網路狀態、電池電量、電源模式與 ISO 10816 振動門檻設定。 Queries comprehensive sensor hardware info, network status, battery level, power mode, and active ISO vibration configuration in JSON ASCII format. センサーのハードウェア情報、ネットワーク状態、バッテリーレベル、電源モード、および有効な ISO 振動設定を JSON ASCII 形式で包括的に照会する。
0x02 Get Sensor Schedule Information GET App ➔ Sensor 查詢感測器內部儲存之排程起訖時間戳記、每週排程星期遮罩、單次量測時長、間隔秒數、目標資料模式與排程狀態。 Queries schedule start/end timestamps in microseconds, weekly schedule weekday bitmask, sampling duration, interval, data mode, and schedule enable status. スケジュールの開始/終了タイムスタンプ(マイクロ秒)、週間スケジュールの曜日 bitmask、サンプリング時間、間隔、データモード、およびスケジュールの有効状態を照会する。
0x03 Set Schedule Settings SET App ➔ Sensor 配置感測器自動採集排程之起訖時間戳記、每週量測日遮罩、取樣時長、間隔秒數與資料模式。 Configures schedule start/end timestamps in microseconds, weekly schedule weekday mask, duration, interval, and data report mode. スケジュールの開始/終了タイムスタンプ(マイクロ秒)、週間スケジュールの曜日マスク、時間、間隔、およびデータレポートモードを設定する。
0x04 Start/Stop Scheduled Report SET App ➔ Sensor 快速開啟或關閉感測器的排程定時回報功能。 Controls whether the scheduled reporting function is turned ON or OFF. スケジュール報告機能を ON にするか OFF にするかを制御する。
0x05 Real Time Recording SET App ➔ Sensor 依據所帶參數執行單次即時量測錄製。收到此指令後,感測器先回覆確認回應,隨後將實際錄製的報告透過 report 主題發布 (Report Type 5 或 6)。 Provides one-shot real time recording according to parameters provided. Sends immediate response acknowledgment, then publishes recorded data via report topic with Type 5 or 6. 与えられたパラメータに従って単発のリアルタイム記録を行う。直ちに応答の確認を送信し、その後、記録したデータを report Topic を介して Type 5 または 6 で publish する。
0x06 Set RTC SET App ➔ Sensor 校正寫入感測器內部硬體 RTC 晶片之時間與時區時差。 Sets sensor hardware RTC timestamp and local timezone GMT offset in seconds. センサーのハードウェア RTC タイムスタンプとローカルタイムゾーンの GMT オフセット(秒)を設定する。
0x07 Set Sensor Sleep Now SET App ➔ Sensor 強制感測器立即結束指令接收狀態並進入低功耗休眠 (Hibernate)。 Forces sensor to exit Command Reception State and immediately enter low-power Hibernate mode. センサーにコマンド受信状態を終了させ、直ちに低消費電力の Hibernate モードに移行させる。
0x08 Set Sensor Receive Command Mode SET App ➔ Sensor 設定感測器在排程喚醒時是否開啟指令接收模式。 Configures whether sensor receive command mode is enabled during scheduled events. スケジュールイベント中にセンサーのコマンド受信モードを有効にするかどうかを設定する。
0x09 Check Online GET App ➔ Sensor 確認感測器是否與 MQTT Broker 保持連線在線狀態。 Checks if AIS Sensor is connected to MQTT broker and online. AIS Sensor が MQTT broker に接続されオンラインであるかを確認する。
0x0A Set MQTT Broker SET App ➔ Sensor 設定感測器連線之 MQTT Broker 伺服器 IP 位址與密碼。 Sets target MQTT broker IP address and password via ASCII-encoded JSON string. ASCII エンコードされた JSON 文字列により、接続先 MQTT broker の IP アドレスとパスワードを設定する。
0x0B Set UDP SET App ➔ Sensor 設定感測器進行 UDP 傳輸之伺服器 IP 位址與 Port。 Configures target UDP server IP address and port. 接続先 UDP サーバーの IP アドレスと Port を設定する。
0x0C Start/End Continuous Recording SET App ➔ Sensor 控制感測器啟動或停止連續振動錄製,並指定錄製時長與存檔格式。 Controls start and end of continuous recording, specifying duration and file saving format. 連続記録の開始と終了を制御し、時間とファイル保存形式を指定する。
0x0D Set Power Config SET App ➔ Sensor 設定感測器在線保持時長 (Period) 與電源輸入邏輯模式 (PowerSourceMode)。 Sets sensor active time period in seconds and power input source mode. センサーのアクティブ時間(秒)と電源入力ソースモードを設定する。
0x0E Set Vibration ISO SET App ➔ Sensor 配置 X/Y/Z 三軸之 ISO 10816 設備等級類別 (IsoIndex)、Alert 警告速度門檻 (mm/s) 及 Danger 危險速度門檻 (mm/s)。 Configures ISO 10816 machine category indices, Alert velocity thresholds, and Danger velocity thresholds (mm/s) for X, Y, and Z axis via JSON. JSON により、X、Y、Z 軸の ISO 10816 機械カテゴリインデックス、Alert 速度しきい値、および Danger 速度しきい値 (mm/s) を設定する。

🚦 MQTT 指令狀態代碼定義表 (Status Code) 🚦 Status Code Definitions 🚦 Status Code の定義

Byte 3 Status Code
Status Code Status Name 狀態說明Description変更内容
0x00 Success 指令執行成功 (Command executed successfully) Success. Command executed successfully. 成功。コマンドは正常に実行された。
0x01 Unknown command ID 未知的指令 ID 或執行失敗 (Unknown command ID or execution failure) Unknown command ID or command execution failed. 不明なコマンド ID、またはコマンドの実行に失敗した。

註:若指令執行失敗,Status Code 設為 0x01 且 Response Data Length 為 0;若執行成功則設為 0x00。 Note: If failed, Status Code is set to 0x01 with Data Length = 0; if succeeded, Status Code is 0x00. 注:失敗した場合、Status Code は 0x01 に設定され Data Length = 0 となる。成功した場合、Status Code は 0x00 となる。

MQTT 0x00 GET

0x00. 獲取 API 協議版本 (Get API Version) 0x00. Get API Version 0x00. API バージョンの取得 (Get API Version)

功能說明 (Description):Description:説明 (Description):
此指令查詢目前 API 協議版本。若失敗 Status Code 設為錯誤碼且 Data Length = 0;若成功回傳 0x00 與 ASCII 版本字串(例如 "1.0")。
This command is used to query the API version. This command is no longer in use in newer firmware revisions in favor of 0x01.
このコマンドは API バージョンを照会するために使用される。新しいファームウェアリビジョンでは 0x01 に置き換えられており、このコマンドは使用されなくなっている。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0023] [Command ID: 0x00] [Data Length: 0x00000000] [Parameters: --]
0x00 0x23  0x00  0x00 0x00 0x00 0x00
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0023] [Command ID: 0x00] [Status Code: 0x00 (OK)] [Data Length: 0x00000003] [Response Data: 0x31 0x2E 0x30 ('1.0')]
0x00 0x23  0x00  0x00  0x00 0x00 0x00 0x03  0x31 0x2E 0x30
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters:此指令不帶任何參數 (This command takes no parameter)。
• Parameters: This command takes no parameter.
• Parameters:このコマンドはパラメータを取らない。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• Response:若成功,包含成功狀態碼 (0x00) 及 ASCII 編碼之 API 版本字串。Data Length 欄位為版本字串長度(如 "1.0" 長度為 3)。

範例中發送二進位負載至 <sensor id>/command,感測器執行後回傳版本字串 1.0 至 <sensor id>/response。
• Response: If succeeded, response contains success status code (0x00) and response data is API version string in ASCII code. Data Length field is version string length (e.g. 3 for "1.0").

Example shows publishing binary payload to <sensor id>/command and receiving ASCII string '1.0' on <sensor id>/response.
• Response:成功した場合、応答には成功のステータスコード (0x00) が含まれ、応答データは ASCII コードの API バージョン文字列である。Data Length フィールドはバージョン文字列の長さである(例:"1.0" の場合は 3)。

例では、バイナリペイロードを <sensor id>/command に publish し、<sensor id>/response で ASCII 文字列 '1.0' を受信している。
MQTT 0x01 GET

0x01. 獲取感測器詳細資訊 (Get Sensor Information) 0x01. Get Sensor Information 0x01. センサー情報の取得 (Get Sensor Information)

功能說明 (Description):Description:説明 (Description):
查詢感測器之完整韌體、硬體規格、連線網路狀態、電池電量、電源模式與 ISO 10816 振動門檻設定。
Queries comprehensive sensor hardware info, network status, battery level, power mode, and active ISO vibration configuration in JSON ASCII format.
センサーのハードウェア情報、ネットワーク状態、バッテリーレベル、電源モード、および有効な ISO 振動設定を JSON ASCII 形式で包括的に照会する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0023] [Command ID: 0x01] [Data Length: 0x00000000] [Parameters: --]
0x00 0x23  0x01  0x00 0x00 0x00 0x00
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0023] [Command ID: 0x01] [Status Code: 0x00 (OK)] [Data Length: 0x0000031E (798B)] [Response Data: JSON String]
0x00 0x23  0x01  0x00  0x00 0x00 0x03 0x1E
{
  "FirmwareVersion": "AISSENS_100AW6K-1.2.0",
  "Brand": "ASUS",
  "Model": "AISSENS100AW",
  "Bandwidth": "6KHz",
  "SamplingRate": "26.7KHz",
  "GValue": "8g",
  "SsidPrim": "oppo",
  "BssidPrim": "AA:BB:CC:DD:EE:FF",
  "BssidMatch": true,
  "LocalIp": "192.168.138.165",
  "SignalStrength": 4,
  "BatteryLevel": 3,
  "MACAddress": "39:C7:F7:C7:51:10",
  "Temperature": "27.2",
  "EnSchRecCMD": 0,
  "BatVoltage": 3.34,
  "MqttAddress": "192.168.138.77",
  "MqttPort": 1883,
  "MqttUsername": "public",
  "MqttPassword": "123456",
  "TcpAddress": "192.168.138.77",
  "TcpPort": 1235,
  "UdpAddress": "192.168.138.77",
  "UdpPort": 1234,
  "ActiveTime": 180,
  "PowerSourceMode": "Auto",
  "PowerSourceDetect": "Battery",
  "VibrationConfig": {
    "X_IsoIndex": 2,
    "X_AlertLimit": 4.5,
    "X_DangerLimit": 7.1,
    "Y_IsoIndex": 4,
    "Y_AlertLimit": 2.8,
    "Y_DangerLimit": 4.5,
    "Z_IsoIndex": 1,
    "Z_AlertLimit": 3.5,
    "Z_DangerLimit": 5.0
  }
}
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters:此指令不帶任何參數 (This command takes no parameter)。
• Parameters: This command takes no parameter.
• Parameters:このコマンドはパラメータを取らない。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
1. FirmwareVersion: String,感測器內部運行的韌體版本。
2. Brand / Model: String,感測器品牌與型號名稱。
3. Bandwidth / SamplingRate / GValue: 量測頻寬、當前取樣率設定與 G 值量程。
4. SsidPrim / BssidPrim: 連線之 Wi-Fi SSID 與基地台 MAC (BSSID)。
5. BssidMatch (v1.13 新增): Boolean,指示連線之 AP 是否與 BssidPrim 相符(未指定時回傳 true)。
6. LocalIp / SignalStrength: 區域網路 IP 與訊號強度等級(數值愈大訊號愈好)。
7. BatteryLevel (1 Byte Int):電池電量等級(3: High / 充足 ≥ 3.27V, 2: Median / 中等 3.15V~3.27V, 1: Low / 低電量 < 3.15V)。
8. BatVoltage (Float): 電池電壓(≥3.27V High, 3.27V~3.15V Medium, <3.15V Low)。
9. MACAddress / Temperature / EnSchRecCMD: MAC 地址、攝氏溫度與排程指令接收模式開關。
10. MqttAddress / MqttPort / MqttUsername / MqttPassword: MQTT Broker 連線參數。
11. TcpAddress / TcpPort / UdpAddress / UdpPort: TCP 與 UDP 伺服器連線參數。
12. ActiveTime / PowerSourceMode / PowerSourceDetect: 在線維持時長(秒)、供電邏輯模式(Auto/Battery/Adapter)與即時偵測之電源來源。
13. VibrationConfig: X, Y, Z 三軸之 IsoIndex (0-6)、AlertLimit (mm/s) 與 DangerLimit (mm/s)。

成功執行時 Status Code 為 0x00,Data Length 設為 JSON 字串的長度。
1. FirmwareVersion: String type. The version of firmware runs in AISSENS.
2. Brand / Model: String type. Sensor brand and model name.
3. Bandwidth / SamplingRate / GValue: Bandwidth, sampling rate, and GValue.
4. SsidPrim / BssidPrim: Connected Wi-Fi SSID and AP MAC address.
5. BssidMatch (v1.13 New): Boolean. Indicates whether connected AP matches BssidPrim.
6. LocalIp / SignalStrength: Wi-Fi IP and signal level (higher is better).
7. BatteryLevel (1 Byte Int): Battery level (3: High ≥ 3.27V, 2: Median 3.15V~3.27V, 1: Low < 3.15V).
8. BatVoltage (Float): (≥3.27V High, 3.27V~3.15V Medium, <3.15V Low).
9. MACAddress / Temperature / EnSchRecCMD: MAC, temperature (°C), and enable schedule receive command mode.
10. MqttAddress / MqttPort / MqttUsername / MqttPassword: MQTT connection parameters.
11. TcpAddress / TcpPort / UdpAddress / UdpPort: TCP & UDP server parameters.
12. ActiveTime / PowerSourceMode / PowerSourceDetect: Active period (s), power input logic (Auto/Battery/Adapter), and auto-detected power state.
13. VibrationConfig: Tri-axial IsoIndex (0-6), AlertLimit (mm/s), and DangerLimit (mm/s).

If succeeded, response contains success status code (0x00) with response data as sensor information JSON string in ASCII.
1. FirmwareVersion:String 型。AISSENS で動作しているファームウェアのバージョン。
2. Brand / Model:String 型。センサーのブランドとモデル名。
3. Bandwidth / SamplingRate / GValue:帯域幅、サンプリングレート、および GValue。
4. SsidPrim / BssidPrim:接続中の Wi-Fi SSID と AP の MAC アドレス。
5. BssidMatch (v1.13 新規):Boolean。接続中の AP が BssidPrim と一致するかどうかを示す。
6. LocalIp / SignalStrength:Wi-Fi の IP と信号レベル(大きいほど良好)。
7. BatteryLevel (1 Byte Int):バッテリーレベル(3: High ≥ 3.27V、2: Median 3.15V~3.27V、1: Low < 3.15V)。
8. BatVoltage (Float):(≥3.27V High、3.27V~3.15V Medium、<3.15V Low)。
9. MACAddress / Temperature / EnSchRecCMD:MAC、温度 (°C)、およびスケジュール時コマンド受信モードの有効化。
10. MqttAddress / MqttPort / MqttUsername / MqttPassword:MQTT 接続パラメータ。
11. TcpAddress / TcpPort / UdpAddress / UdpPort:TCP および UDP サーバーのパラメータ。
12. ActiveTime / PowerSourceMode / PowerSourceDetect:アクティブ期間 (s)、電源入力ロジック (Auto/Battery/Adapter)、および自動検出された電源状態。
13. VibrationConfig:3軸の IsoIndex (0-6)、AlertLimit (mm/s)、および DangerLimit (mm/s)。

成功した場合、応答には成功のステータスコード (0x00) が含まれ、応答データは ASCII のセンサー情報 JSON 文字列である。
MQTT 0x02 GET

0x02. 獲取量測排程設定資訊 (Get Sensor Schedule Information) 0x02. Get Sensor Schedule Information 0x02. センサーのスケジュール情報の取得 (Get Sensor Schedule Information)

功能說明 (Description):Description:説明 (Description):
查詢感測器內部儲存之排程起訖時間戳記、每週排程星期遮罩、單次量測時長、間隔秒數、目標資料模式與排程狀態。
Queries schedule start/end timestamps in microseconds, weekly schedule weekday bitmask, sampling duration, interval, data mode, and schedule enable status.
スケジュールの開始/終了タイムスタンプ(マイクロ秒)、週間スケジュールの曜日 bitmask、サンプリング時間、間隔、データモード、およびスケジュールの有効状態を照会する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0023] [Command ID: 0x02] [Data Length: 0x00000000] [Parameters: --]
0x00 0x23  0x02  0x00 0x00 0x00 0x00
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0023] [Command ID: 0x02] [Status Code: 0x00 (OK)] [Data Length: 0x00000019 (25B)] [Response Data: 25B Binary Payload]
// [Start TS: 8B] [End TS: 8B] [Weekly: 1B] [Duration: 2B] [Interval: 4B] [Mode: 1B] [Status: 1B]
0x00 0x23  0x02  0x00  0x00 0x00 0x00 0x19
0x00 0x00 0x01 0x8C 0x67 0xC5 0x80 0x00  0x00 0x00 0x01 0x90 0x33 0x85 0x40 0x00
0x09  0x00 0x02  0x00 0x00 0x0E 0x10  0x00  0x01
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters:此指令不帶任何參數 (This command takes no parameter)。
• Parameters: This command takes no parameter.
• Parameters:このコマンドはパラメータを取らない。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
1. Start / End Timestamp (8 Bytes each):微秒為單位的 UNIX 時間戳記;若設為 0 代表排程無起訖時間限制。
2. Weekly Schedule (1 Byte):星期啟用狀態遮罩(Bit 0: Mon, Bit 1: Tue, Bit 2: Wed, Bit 3: Thu, Bit 4: Fri, Bit 5: Sat, Bit 6: Sun, Bit 7: 0)。例如週一與週四啟用則為 0x09。
3. Duration (2 Bytes Int):單次採樣秒數。
4. Interval (4 Bytes Int):兩次排程間的間隔秒數。
5. Mode (1 Byte Int):目標報告類型:
  • 0 – Raw data
  • 1 – FFT / OA
  • 3 – OA Only
  • 4 – Feature
  (註:選項 2 [Raw data + FFT / OA] 於此版本已移除)
6. Status (1 Byte):非 0 代表排程啟用,0 代表停用。

回傳的二進位封包總長度為 25 Bytes。
1. Start / End Timestamp (8 Bytes each): UNIX timestamps in microseconds; 0 means no start/end limit.
2. Weekly Schedule (1 Byte): Weekday bitmask (Bit 0: Mon, Bit 1: Tue, Bit 2: Wed, Bit 3: Thu, Bit 4: Fri, Bit 5: Sat, Bit 6: Sun, Bit 7: 0). E.g., Mon & Thu = 0x09.
3. Duration (2 Bytes Int): Sampling duration in seconds.
4. Interval (4 Bytes Int): Length in seconds between schedules.
5. Mode (1 Byte Int): Target report type (0 – Raw data, 1 – FFT/OA, 3 – OA Only, 4 – Feature; Option 2 removed).
6. Status (1 Byte): Non-zero = enabled, 0 = disabled.

Response payload format is 25 Bytes binary structure.
1. Start / End Timestamp (各 8 Bytes):マイクロ秒単位の UNIX タイムスタンプ。0 は開始/終了の制限なしを意味する。
2. Weekly Schedule (1 Byte):曜日の bitmask(Bit 0: Mon、Bit 1: Tue、Bit 2: Wed、Bit 3: Thu、Bit 4: Fri、Bit 5: Sat、Bit 6: Sun、Bit 7: 0)。例:月曜と木曜 = 0x09。
3. Duration (2 Bytes Int):サンプリング時間(秒)。
4. Interval (4 Bytes Int):スケジュール間の長さ(秒)。
5. Mode (1 Byte Int):対象のレポートタイプ(0 – Raw data、1 – FFT/OA、3 – OA Only、4 – Feature。Option 2 は削除)。
6. Status (1 Byte):0 以外 = 有効、0 = 無効。

応答ペイロードの形式は 25 Bytes のバイナリ構造である。
MQTT 0x03 SET

0x03. 設定量測排程參數 (Set Schedule Settings) 0x03. Set Schedule Settings 0x03. スケジュール設定 (Set Schedule Settings)

功能說明 (Description):Description:説明 (Description):
配置感測器自動採集排程之起訖時間戳記、每週量測日遮罩、取樣時長、間隔秒數與資料模式。
Configures schedule start/end timestamps in microseconds, weekly schedule weekday mask, duration, interval, and data report mode.
スケジュールの開始/終了タイムスタンプ(マイクロ秒)、週間スケジュールの曜日マスク、時間、間隔、およびデータレポートモードを設定する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0024] [Command ID: 0x03] [Data Length: 0x00000018 (24B)] [Parameters: 24B Binary Schedule Config]
// [Start TS: 8B] [End TS: 8B] [Weekly: 1B (0x7F=Mon~Sun)] [Duration: 2B (0x0002=2s)] [Interval: 4B (0x00000E10=3600s)] [Mode: 1B (0x01=FFT)]
0x00 0x24  0x03  0x00 0x00 0x00 0x18
0x00 0x00 0x01 0x8C 0x67 0xC5 0x80 0x00  0x00 0x00 0x01 0x90 0x33 0x85 0x40 0x00
0x7F  0x00 0x02  0x00 0x00 0x0E 0x10  0x01
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0024] [Command ID: 0x03] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x24  0x03  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (24 Bytes):[Start TS (8B)] [End TS (8B)] [Weekly (1B)] [Duration (2B)] [Interval (4B)] [Mode (1B)]。
• Weekly (1 Byte Bitmask):每週排程週期啟用設定(Bit 0: 週一, Bit 1: 週二, Bit 2: 週三, Bit 3: 週四, Bit 4: 週五, Bit 5: 週六, Bit 6: 週日, Bit 7: 保留為 0)。例如全週啟用為 0x7F (127);僅週一與週四啟用為 0x09 (9)。
• Duration (2 Bytes Int):單次取樣時長,可選選項為 2, 3, 5, 6, 11 秒。
• Interval (4 Bytes Int):兩次排程間隔秒數,可選選項為 120, 300, 900, 3600, 7200, 10800, 14400, 21600, 28800, 86400 秒。
• Mode (1 Byte Int):0 – Raw data, 1 – FFT / OA, 3 – OA Only, 4 – Feature (選項 2 已移除)。
• Parameters (24 Bytes): [Start TS (8B)] [End TS (8B)] [Weekly (1B)] [Duration (2B)] [Interval (4B)] [Mode (1B)].
• Weekly (1 Byte Bitmask): Weekly cycle activation bitmask (Bit 0: Mon, Bit 1: Tue, Bit 2: Wed, Bit 3: Thu, Bit 4: Fri, Bit 5: Sat, Bit 6: Sun, Bit 7: Reserved 0). E.g., all days enabled = 0x7F (127); Mon & Thu only = 0x09 (9).
• Duration (2 Bytes Int): Available options: 2, 3, 5, 6, or 11 seconds.
• Interval (4 Bytes Int): Available options: 120, 300, 900, 3600, 7200, 10800, 14400, 21600, 28800, or 86400 seconds.
• Mode (1 Byte Int): 0 – Raw data, 1 – FFT / OA, 3 – OA Only, 4 – Feature (Option 2 removed).
• Parameters (24 Bytes):[Start TS (8B)] [End TS (8B)] [Weekly (1B)] [Duration (2B)] [Interval (4B)] [Mode (1B)]。
• Weekly (1 Byte Bitmask):週間周期の有効化 bitmask(Bit 0: Mon、Bit 1: Tue、Bit 2: Wed、Bit 3: Thu、Bit 4: Fri、Bit 5: Sat、Bit 6: Sun、Bit 7: 予約 0)。例:全曜日有効 = 0x7F (127)、月曜と木曜のみ = 0x09 (9)。
• Duration (2 Bytes Int):選択可能な値:2, 3, 5, 6, 11 秒。
• Interval (4 Bytes Int):選択可能な値:120, 300, 900, 3600, 7200, 10800, 14400, 21600, 28800, 86400 秒。
• Mode (1 Byte Int):0 – Raw data、1 – FFT / OA、3 – OA Only、4 – Feature(Option 2 は削除)。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功時回傳 Status Code = 0x00,Data Length = 0(無回傳資料)。
• 失敗時 Status Code 設為錯誤碼,Data Length = 0。

設定完成後排程即刻寫入 Flash 保存,設備將依排程定時喚醒採集。
• If succeeded, response contains success status code (0x00). If failed, status code is set and Data Length is 0.

Persisted to Flash memory; sensor will wake up autonomously according to schedule.
• 成功した場合、応答には成功のステータスコード (0x00) が含まれる。失敗した場合、ステータスコードが設定され Data Length は 0 となる。

Flash メモリに保存され、センサーはスケジュールに従って自律的にウェイクアップする。
MQTT 0x04 SET

0x04. 啟動/停止排程回報 (Start/Stop Scheduled Report) 0x04. Start/Stop Scheduled Report 0x04. スケジュール報告の開始/停止 (Start/Stop Scheduled Report)

功能說明 (Description):Description:説明 (Description):
快速開啟或關閉感測器的排程定時回報功能。
Controls whether the scheduled reporting function is turned ON or OFF.
スケジュール報告機能を ON にするか OFF にするかを制御する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0025] [Command ID: 0x04] [Data Length: 0x00000001] [Parameters: 0x01 (Start Schedule)]
0x00 0x25  0x04  0x00 0x00 0x00 0x01  0x01
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0025] [Command ID: 0x04] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x25  0x04  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (1 Byte):若數值為 0,排程報告將被關閉 (OFF);若為非 0 數值,排程報告將被開啟 (ON)。
• Parameters (1 Byte): If value is 0, raw data report schedule will be turned OFF. If non-zero, report will be turned ON.
• Parameters (1 Byte):値が 0 の場合、raw data レポートのスケジュールは OFF になる。0 以外の場合、レポートは ON になる。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功回傳 Status Code = 0x00,無 Response Data。

關閉排程後設備不會定時喚醒,但仍可接收手動按鍵喚醒。
• On success, returns Status Code = 0x00 with no response data.

Turning off stops scheduled wakeups; manual button wakeup remains available.
• 成功時は Status Code = 0x00 を返し、応答データはない。

OFF にするとスケジュールによるウェイクアップは停止するが、手動のボタンによるウェイクアップは引き続き利用できる。
MQTT 0x05 SET

0x05. 單次即時量測錄製 (Real Time Recording) 0x05. Real Time Recording 0x05. リアルタイム記録 (Real Time Recording)

功能說明 (Description):Description:説明 (Description):
依據所帶參數執行單次即時量測錄製。收到此指令後,感測器先回覆確認回應,隨後將實際錄製的報告透過 report 主題發布 (Report Type 5 或 6)。
Provides one-shot real time recording according to parameters provided. Sends immediate response acknowledgment, then publishes recorded data via report topic with Type 5 or 6.
与えられたパラメータに従って単発のリアルタイム記録を行う。直ちに応答の確認を送信し、その後、記録したデータを report Topic を介して Type 5 または 6 で publish する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0026] [Command ID: 0x05] [Data Length: 0x00000003] [Parameters: Duration: 0x0005 (5s), Mode: 0x00 (Raw)]
0x00 0x26  0x05  0x00 0x00 0x00 0x03  0x00 0x05  0x00
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0026] [Command ID: 0x05] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x26  0x05  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (3 Bytes):[Duration (2B)] [Mode (1B)]。
• Duration (2 Bytes Int):錄製時長(秒)。
• Mode (1 Byte Int):0 – Raw data, 1 – FFT / OA。
• Parameters (3 Bytes): [Duration (2B)] [Mode (1B)].
• Duration (2 Bytes Int): How long to record in seconds.
• Mode (1 Byte Int): 0 – Raw data, 1 – FFT / OA.
• Parameters (3 Bytes):[Duration (2B)] [Mode (1B)]。
• Duration (2 Bytes Int):記録する時間(秒)。
• Mode (1 Byte Int):0 – Raw data、1 – FFT / OA。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 回應確認收到指令後,實際數據將發布至 <sensor id>/report(Type 5 即時波形 或 Type 6 即時頻譜)。

確保下發指令時感測器處於 Command Reception State (綠色 LED 常亮)。
• After acknowledgment response, actual measurement data is published to <sensor id>/report (Type 5 or 6).

Sensor must be in Command Reception State (green LED on) to receive command.
• 確認応答の後、実際の測定データが <sensor id>/report に publish される(Type 5 または 6)。

コマンドを受信するには、センサーがコマンド受信状態(Command Reception State、緑色 LED 点灯)である必要がある。
MQTT 0x06 SET

0x06. 校正感測器 RTC 時鐘 (Set RTC) 0x06. Set RTC 0x06. RTC の設定 (Set RTC)

功能說明 (Description):Description:説明 (Description):
校正寫入感測器內部硬體 RTC 晶片之時間與時區時差。
Sets sensor hardware RTC timestamp and local timezone GMT offset in seconds.
センサーのハードウェア RTC タイムスタンプとローカルタイムゾーンの GMT オフセット(秒)を設定する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0027] [Command ID: 0x06] [Data Length: 0x0000000C (12B)] [Parameters: Timestamp: 8B + GMTOffset: 4B (0x7080=28800s)]
0x00 0x27  0x06  0x00 0x00 0x00 0x0C  0x00 0x00 0x00 0x00 0x67 0xC5 0x83 0x4B  0x00 0x00 0x70 0x80
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0027] [Command ID: 0x06] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x27  0x06  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (12 Bytes):[Timestamp (8B)] [GMTOffset (4B)]。
• Timestamp (8 Bytes Long Int):欲設定至 RTC 之 UNIX 時間戳記。
• GMTOffset (4 Bytes Int):當地時間與 GMT (格林威治標準時間) 之秒數差(例如台灣/北京 UTC+8 為 28800 秒)。
• Parameters (12 Bytes): [Timestamp (8B)] [GMTOffset (4B)].
• Timestamp (8 Bytes Long Int): Timestamp to set to RTC.
• GMTOffset (4 Bytes Int): Time difference in seconds between local time and GMT (e.g. 28800 for UTC+8).
• Parameters (12 Bytes):[Timestamp (8B)] [GMTOffset (4B)]。
• Timestamp (8 Bytes Long Int):RTC に設定するタイムスタンプ。
• GMTOffset (4 Bytes Int):ローカル時刻と GMT との時差(秒)(例:UTC+8 の場合は 28800)。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功回傳 Status Code = 0x00,Data Length = 0。

RTC 時鐘為排程喚醒之基準,初次佈署建議優先執行此指令。
• On success, returns Status Code = 0x00 with Data Length = 0.

RTC time is the foundation for scheduled wakeups.
• 成功時は Status Code = 0x00、Data Length = 0 を返す。

RTC 時刻はスケジュールによるウェイクアップの基礎となる。
MQTT 0x07 SET

0x07. 令感測器立即休眠 (Set Sensor Sleep Now) 0x07. Set Sensor Sleep Now 0x07. センサーを直ちにスリープ (Set Sensor Sleep Now)

功能說明 (Description):Description:説明 (Description):
強制感測器立即結束指令接收狀態並進入低功耗休眠 (Hibernate)。
Forces sensor to exit Command Reception State and immediately enter low-power Hibernate mode.
センサーにコマンド受信状態を終了させ、直ちに低消費電力の Hibernate モードに移行させる。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0028] [Command ID: 0x07] [Data Length: 0x00000000] [Parameters: --]
0x00 0x28  0x07  0x00 0x00 0x00 0x00
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0028] [Command ID: 0x07] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x28  0x07  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters:此指令不帶任何參數 (This command takes no parameter)。
• Parameters: This command takes no parameter.
• Parameters:このコマンドはパラメータを取らない。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功回傳 Status Code = 0x00,隨後關閉射頻模組休眠。

可於完成遠端配置後手動呼叫以節省電池電量。
• Returns Status Code = 0x00, then shuts down RF transceiver into hibernation.

Useful for returning sensor to sleep after remote configuration.
• Status Code = 0x00 を返し、その後 RF トランシーバーを停止してハイバネーションに入る。

リモート設定の後にセンサーをスリープに戻す場合に有用である。
MQTT 0x08 SET

0x08. 設定指令接收模式 (Set Sensor Receive Command Mode) 0x08. Set Sensor Receive Command Mode 0x08. センサーのコマンド受信モード設定 (Set Sensor Receive Command Mode)

功能說明 (Description):Description:説明 (Description):
設定感測器在排程喚醒時是否開啟指令接收模式。
Configures whether sensor receive command mode is enabled during scheduled events.
スケジュールイベント中にセンサーのコマンド受信モードを有効にするかどうかを設定する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x0029] [Command ID: 0x08] [Data Length: 0x00000001] [Parameters: 0x01 (Enable Schedule Recv CMD)]
0x00 0x29  0x08  0x00 0x00 0x00 0x01  0x01
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x0029] [Command ID: 0x08] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x29  0x08  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (1 Byte):若數值為 0,指令接收模式關閉 (OFF);若為非 0 數值,指令接收模式開啟 (ON)。
• Parameters (1 Byte): 0 = turn OFF receive command mode; non-zero = turn ON receive command mode.
• Parameters (1 Byte):0 = コマンド受信モードを OFF、0 以外 = コマンド受信モードを ON。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功回傳 Status Code = 0x00,Data Length = 0。

開啟後感測器在排程上報後會保持在線等待下行指令。
• Returns Status Code = 0x00 with Data Length = 0 on success.

When ON, sensor remains online to receive commands following scheduled reports.
• 成功時は Status Code = 0x00、Data Length = 0 を返す。

ON の場合、センサーはスケジュールレポートの後もオンラインを維持してコマンドを受信する。
MQTT 0x09 GET

0x09. 檢查在線狀態 (Check Online) 0x09. Check Online 0x09. オンライン確認 (Check Online)

功能說明 (Description):Description:説明 (Description):
確認感測器是否與 MQTT Broker 保持連線在線狀態。
Checks if AIS Sensor is connected to MQTT broker and online.
AIS Sensor が MQTT broker に接続されオンラインであるかを確認する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x002A] [Command ID: 0x09] [Data Length: 0x00000000] [Parameters: --]
0x00 0x2A  0x09  0x00 0x00 0x00 0x00
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x002A] [Command ID: 0x09] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x2A  0x09  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters:此指令不帶任何參數 (This command takes no parameter)。
• Parameters: This command takes no parameter.
• Parameters:このコマンドはパラメータを取らない。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• Response:若感測器斷線,將不會收到任何回覆;若在線,回應包含 Success 狀態碼 (0x00),無 response data。

用於通訊健康探測與連線診斷。
• Response: If disconnected, no reply is received. If online, response includes success status code (0x00) with no response data.

Used for real-time link health verification.
• Response:切断されている場合、応答は受信されない。オンラインの場合、応答には成功のステータスコード (0x00) が含まれ、応答データはない。

リアルタイムのリンク状態確認に使用される。
MQTT 0x0A SET

0x0A. 設定 MQTT Broker 連線參數 (Set MQTT Broker) 0x0A. Set MQTT Broker 0x0A. MQTT Broker の設定 (Set MQTT Broker)

功能說明 (Description):Description:説明 (Description):
設定感測器連線之 MQTT Broker 伺服器 IP 位址與密碼。
Sets target MQTT broker IP address and password via ASCII-encoded JSON string.
ASCII エンコードされた JSON 文字列により、接続先 MQTT broker の IP アドレスとパスワードを設定する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x002B] [Command ID: 0x0A] [Data Length: 0x00000038 (56B)] [Parameters: JSON String]
0x00 0x2B  0x0A  0x00 0x00 0x00 0x38
{
  "MqttAddress": "192.168.0.22",
  "MqttPassword": "12345678"
}
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x002B] [Command ID: 0x0A] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x2B  0x0A  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (JSON ASCII):
1. MqttAddress (String): 欲連線之 MQTT Broker IP 位址。
2. MqttPassword (String): MQTT Broker 密碼。
• Parameters (JSON ASCII):
1. MqttAddress (String): IP address of MQTT broker.
2. MqttPassword (String): Password of MQTT broker.
• Parameters (JSON ASCII):
1. MqttAddress (String):MQTT broker の IP アドレス。
2. MqttPassword (String):MQTT broker のパスワード。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功回傳 Status Code = 0x00,Data Length = 0。

設定後儲存於 Flash,於下次連網生效。
• Returns Status Code = 0x00 with Data Length = 0 on success.

Saved to Flash; applied upon next network connection.
• 成功時は Status Code = 0x00、Data Length = 0 を返す。

Flash に保存され、次回のネットワーク接続時に適用される。
MQTT 0x0B SET

0x0B. 設定 UDP 伺服器參數 (Set UDP) 0x0B. Set UDP 0x0B. UDP の設定 (Set UDP)

功能說明 (Description):Description:説明 (Description):
設定感測器進行 UDP 傳輸之伺服器 IP 位址與 Port。
Configures target UDP server IP address and port.
接続先 UDP サーバーの IP アドレスと Port を設定する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x002C] [Command ID: 0x0B] [Data Length: 0x0000002E (46B)] [Parameters: JSON String]
0x00 0x2C  0x0B  0x00 0x00 0x00 0x2E
{
  "UdpAddress": "192.168.179.21",
  "UdpPort": 1234
}
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x002C] [Command ID: 0x0B] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x2C  0x0B  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (JSON ASCII):
1. UdpAddress (String): UDP 伺服器 IP 位址(預設同 MQTT address)。
2. UdpPort (Int): UDP 伺服器連接埠(預設 1234)。
• Parameters (JSON ASCII):
1. UdpAddress (String): IP address of UDP server (default: same as MQTT address).
2. UdpPort (Int): UDP server port (default: 1234).
• Parameters (JSON ASCII):
1. UdpAddress (String):UDP サーバーの IP アドレス(デフォルト:MQTT address と同じ)。
2. UdpPort (Int):UDP サーバーのポート(デフォルト:1234)。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功回傳 Status Code = 0x00,Data Length = 0。

用於高速連續串流情境。
• Returns Status Code = 0x00 with Data Length = 0 on success.

Used for high-speed raw streaming.
• 成功時は Status Code = 0x00、Data Length = 0 を返す。

高速な raw ストリーミングに使用される。
MQTT 0x0C SET

0x0C. 啟動/結束連續錄製 (Start/End Continuous Recording) 0x0C. Start/End Continuous Recording 0x0C. 連続記録の開始/終了 (Start/End Continuous Recording)

功能說明 (Description):Description:説明 (Description):
控制感測器啟動或停止連續振動錄製,並指定錄製時長與存檔格式。
Controls start and end of continuous recording, specifying duration and file saving format.
連続記録の開始と終了を制御し、時間とファイル保存形式を指定する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x002D] [Command ID: 0x0C] [Data Length: 0x00000028 (40B)] [Parameters: Action: 0x01 (Start) + JSON String (39B)]
0x00 0x2D  0x0C  0x00 0x00 0x00 0x28  0x01
{
  "record_sec": 100,
  "save_file_format": 0
}
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x002D] [Command ID: 0x0C] [Status Code: 0x00 (OK)] [Data Length: 0x00000001] [Response Data: 0x01 (Started)]
0x00 0x2D  0x0C  0x00  0x00 0x00 0x00 0x01  0x01
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters:[Start/End (1B)] [Recording Parameters (JSON)]。
• Start/End (1 Byte):1 代表 Start 啟動,0 代表 End 結束。
• record_sec (Int):錄製時長(秒);設為 0 代表無限制連續錄製。
• save_file_format (Int):0 為 CSV, 1 為 Binary, 2 為兩種格式均存。
• Parameters: [Start/End (1B)] [Recording Parameters (JSON)].
• Start/End (1 Byte): 1 = start, 0 = end.
• record_sec (Int): Recording duration in seconds; 0 for unlimited.
• save_file_format (Int): 0 for CSV, 1 for binary, 2 for both.
• Parameters:[Start/End (1B)] [Recording Parameters (JSON)]。
• Start/End (1 Byte):1 = 開始 (start)、0 = 終了 (end)。
• record_sec (Int):記録時間(秒)。0 で無制限。
• save_file_format (Int):0 で CSV、1 でバイナリ、2 で両方。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• Response Data (1 Byte):連續狀態回覆。若數值為 1,代表連續錄製進行中;否則代表錄製已停止。

連續錄製會維持高功耗,建議配合外接電源使用。
• Response Data (1 Byte): Indicates continuous status (1 = continuous recording in progress; other = stopped).

High power consumption mode; recommended to use external power adapter.
• Response Data (1 Byte):連続状態を示す(1 = 連続記録中、それ以外 = 停止)。

消費電力の高いモードであるため、外部電源アダプターの使用を推奨する。
MQTT 0x0D SET

0x0D. 設定電源配置與在線時長 (Set Power Config) 0x0D. Set Power Config 0x0D. 電源設定 (Set Power Config)

功能說明 (Description):Description:説明 (Description):
設定感測器在線保持時長 (Period) 與電源輸入邏輯模式 (PowerSourceMode)。
Sets sensor active time period in seconds and power input source mode.
センサーのアクティブ時間(秒)と電源入力ソースモードを設定する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x002E] [Command ID: 0x0D] [Data Length: 0x00000005] [Parameters: Period: 0x000000B4 (180s), Mode: 0x00 (Auto)]
0x00 0x2E  0x0D  0x00 0x00 0x00 0x05  0x00 0x00 0x00 0xB4  0x00
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x002E] [Command ID: 0x0D] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x2E  0x0D  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (5 Bytes):[Period (4B)] [PowerSourceMode (1B)]。
• Period (4 Bytes Int):在線保持秒數;若設為 -1 代表不休眠 (no sleep)。
• PowerSourceMode (1 Byte Enum):0 = Auto (自動偵測電源), 1 = Battery, 2 = Adapter。
• Parameters (5 Bytes): [Period (4B)] [PowerSourceMode (1B)].
• Period (4 Bytes Int): Active time in seconds; -1 means no sleep.
• PowerSourceMode (1 Byte Enum): 0 = Auto (automatically detect source), 1 = Battery, 2 = Adapter.
• Parameters (5 Bytes):[Period (4B)] [PowerSourceMode (1B)]。
• Period (4 Bytes Int):アクティブ時間(秒)。-1 はスリープなしを意味する。
• PowerSourceMode (1 Byte Enum):0 = Auto(電源を自動検出)、1 = Battery、2 = Adapter。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功回傳 Status Code = 0x00,Data Length = 0。

設定為 Adapter 或 Period = -1 可讓感測器永久在線保持指令接收。
• Returns Status Code = 0x00 with Data Length = 0 on success.

Setting Adapter or Period = -1 allows sensor to remain permanently awake.
• 成功時は Status Code = 0x00、Data Length = 0 を返す。

Adapter または Period = -1 に設定すると、センサーは常時起動状態を維持できる。
MQTT 0x0E SET

0x0E. 設定 ISO 10816 振動標準門檻 (Set Vibration ISO) 0x0E. Set Vibration ISO 0x0E. ISO 振動基準の設定 (Set Vibration ISO)

功能說明 (Description):Description:説明 (Description):
配置 X/Y/Z 三軸之 ISO 10816 設備等級類別 (IsoIndex)、Alert 警告速度門檻 (mm/s) 及 Danger 危險速度門檻 (mm/s)。
Configures ISO 10816 machine category indices, Alert velocity thresholds, and Danger velocity thresholds (mm/s) for X, Y, and Z axis via JSON.
JSON により、X、Y、Z 軸の ISO 10816 機械カテゴリインデックス、Alert 速度しきい値、および Danger 速度しきい値 (mm/s) を設定する。
請求指令 (Request Envelope & Payload) Request Envelope & Payload リクエストのエンベロープとペイロード (Request Envelope & Payload)
// Topic: <sensor id>/command
// [Serial Number: 0x002F] [Command ID: 0x0E] [Data Length: 0x000000A3 (163B)] [Parameters: JSON String]
0x00 0x2F  0x0E  0x00 0x00 0x00 0xA3
{
  "X_IsoIndex": 2,
  "X_AlertLimit": 4.5,
  "X_DangerLimit": 7.1,
  "Y_IsoIndex": 4,
  "Y_AlertLimit": 2.8,
  "Y_DangerLimit": 4.5,
  "Z_IsoIndex": 1,
  "Z_AlertLimit": 3.5,
  "Z_DangerLimit": 5.0
}
回應結構 (Response Envelope & Payload) Response Envelope & Payload レスポンスのエンベロープとペイロード (Response Envelope & Payload)
// Topic: <sensor id>/response
// [Serial Number: 0x002F] [Command ID: 0x0E] [Status Code: 0x00 (OK)] [Data Length: 0x00000000] [Response Data: --]
0x00 0x2F  0x0E  0x00  0x00 0x00 0x00 0x00
參數詳細定義 (Parameters) Parameters Details パラメータの詳細 (Parameters)
• Parameters (JSON ASCII):
1. X_IsoIndex / Y_IsoIndex / Z_IsoIndex (Int): ISO 10816 設備等級 (0~6):
  • 0 (0x00): NA / Invalid (停用 ISO 監控或未設定)
  • 1 (0x01): Win App Customize (自定義,嚴格使用 AlertLimit / DangerLimit)
  • 2 (0x02): Large Machines / Rigid (大型剛性, 功率 P > 300 kW, 軸高 H ≥ 315 mm)
  • 3 (0x03): Large Machines / Flexible (大型彈性, 功率 P > 300 kW, 軸高 H ≥ 315 mm)
  • 4 (0x04): Medium Machines / Rigid (中型剛性, 15 kW < P ≤ 300 kW, 160 mm ≤ H ≤ 315 mm)
  • 5 (0x05): Medium Machines / Flexible (中型彈性, 15 kW < P ≤ 300 kW, 160 mm ≤ H ≤ 315 mm)
  • 6 (0x06): Small Machine (小型設備, 功率 P ≤ 15 kW)
2. X_AlertLimit / Y_AlertLimit / Z_AlertLimit (Float): 警告狀態之振動速度門檻 (mm/s)。即使選擇標準 ISO index,亦必須帶入對應數值以確保配置一致性。
3. X_DangerLimit / Y_DangerLimit / Z_DangerLimit (Float): 危險狀態之振動速度門檻 (mm/s)。
• Parameters (JSON ASCII):
1. X_IsoIndex / Y_IsoIndex / Z_IsoIndex (Int): ISO 10816 machine class (0~6):
  • 0 (0x00): NA / Invalid (Reserved for disabling ISO monitoring or unset state)
  • 1 (0x01): Win App Customize (Strictly uses AlertLimit and DangerLimit values)
  • 2 (0x02): Large Machines / Rigid (Power P > 300 kW, Shaft Height H >= 315 mm)
  • 3 (0x03): Large Machines / Flexible (Power P > 300 kW, Shaft Height H >= 315 mm)
  • 4 (0x04): Medium Machines / Rigid (15 kW < P <= 300 kW, 160 mm <= H <= 315 mm)
  • 5 (0x05): Medium Machines / Flexible (15 kW < P <= 300 kW, 160 mm <= H <= 315 mm)
  • 6 (0x06): Small Machine (Power P <= 15 kW)
2. X_AlertLimit / Y_AlertLimit / Z_AlertLimit (Float): Velocity threshold for Alert state in mm/s.
3. X_DangerLimit / Y_DangerLimit / Z_DangerLimit (Float): Velocity threshold for Danger state in mm/s.
• Parameters (JSON ASCII):
1. X_IsoIndex / Y_IsoIndex / Z_IsoIndex (Int):ISO 10816 機械クラス (0~6):
  • 0 (0x00):NA / Invalid(ISO 監視の無効化または未設定状態用に予約)
  • 1 (0x01):Win App Customize(AlertLimit と DangerLimit の値を厳密に使用)
  • 2 (0x02):Large Machines / Rigid(出力 P > 300 kW、軸高 H >= 315 mm)
  • 3 (0x03):Large Machines / Flexible(出力 P > 300 kW、軸高 H >= 315 mm)
  • 4 (0x04):Medium Machines / Rigid(15 kW < P <= 300 kW、160 mm <= H <= 315 mm)
  • 5 (0x05):Medium Machines / Flexible(15 kW < P <= 300 kW、160 mm <= H <= 315 mm)
  • 6 (0x06):Small Machine(出力 P <= 15 kW)
2. X_AlertLimit / Y_AlertLimit / Z_AlertLimit (Float):Alert 状態の速度しきい値 (mm/s)。
3. X_DangerLimit / Y_DangerLimit / Z_DangerLimit (Float):Danger 状態の速度しきい値 (mm/s)。
欄位說明與備註 (Explanation & Notes) Explanation & Notes 説明と注記 (Explanation & Notes)
• 成功回傳 Status Code = 0x00,Data Length = 0。

感測器邊緣端計算 OA 速度總值時將依此門檻直接進行異常警戒判定。
• Returns Status Code = 0x00 with Data Length = 0 on success.

Sensor edge algorithm uses these thresholds to autonomously evaluate health severity.
• 成功時は Status Code = 0x00、Data Length = 0 を返す。

センサーのエッジアルゴリズムは、これらのしきい値を用いて状態の深刻度を自律的に評価する。

❓ AIS Sensor 常見問題 (AIS Sensor FAQ) ❓ AIS Sensor FAQ ❓ AIS Sensor FAQ

Question Answer
當使用第三方工具(如 MQTT Explorer 或 MQTTX)檢視感測器數據時,Payload 可能呈現亂碼。
When using third-party tools such as MQTT Explorer or MQTTX to view sensor data, the payload may appear as garbled text.
MQTT Explorer や MQTTX などのサードパーティツールでセンサーデータを表示すると、payload が文字化けして表示されることがある。
可將 Payload 解碼格式變更為 Hex,原始二進位感測器數據即可正確顯示。
You can change the payload decoding format to Hex so that the raw sensor data is displayed correctly.
payload のデコード形式を Hex に変更すると、センサーの raw データが正しく表示される。

📚 附錄:浮點數格式與溫度感測 (Appendix: Floating Numbers & Temperature) 📚 Appendix: Floating Numbers & Temperature 📚 付録:浮動小数点数と温度 (Appendix: Floating Numbers & Temperature)

依據不同的感測晶片 IC,浮點數型態在二進位格式中可能具有不同的表示方式: According to different sensor IC, the float type can have different representation in binary format. There are two possible candidates: センサー IC の違いにより、float 型はバイナリ形式で異なる表現を取りうる。候補は次の 2 つである:

ADI Sensor IC
有效位元為 12 個最低有效位元 (LSB) 的 ADI 浮點數。在 25°C 時標稱截距為 1885 LSB,標稱斜率為 −9.05 LSB/°C。
The valid bits are 12 least significant bits ADI floating number. The nominal intercept is 1885 LSB at 25°C and the nominal slope is −9.05 LSB/°C.
有効ビットは下位 12 ビットの ADI 浮動小数点数である。公称切片は 25°C で 1885 LSB、公称傾きは −9.05 LSB/°C である。
ST Sensor IC
有效位元為 16 個最低有效位元 (LSB) 的 ST 浮點數。以 16 位元二補數格式表示,靈敏度為 256 LSB/°C。輸出零準位對應 25°C。
The valid bits are 16 least significant bits ST floating number. It is represented as a number of 16bits in two’s complement format with sensitivity of 256 LSB/°C. The output zero level corresponds to 25°C.
有効ビットは下位 16 ビットの ST 浮動小数点数である。感度 256 LSB/°C の 16 ビット 2 の補数形式の数値として表される。出力ゼロレベルは 25°C に対応する。
🧮 計算公式速查卡片與即時工具 (Formula Cheat Cards & Calculators) 🧮 Engineering Formula Cheat Cards & Calculators 🧮 工学計算式クイックカードと計算機 (Formula Cheat Cards & Calculators)
內建 5 組即時互動換算器 5 Interactive Calculators 5 種類のインタラクティブ計算機
🌡️ 溫度感測器數值換算 (Temperature) 🌡️ Temperature Sensor Conversion 🌡️ 温度センサー値の換算 (Temperature)
16-bit Signed
Temperature (°C) = (RawValue / 256.0) + 28.0
感測器回傳 2 Bytes 大端序有符號整數 (Int16)。例如收到 0xFDED (十進位 -531),計算為 (-531 / 256.0) + 28.0 = 25.92°C。 Sensor reports 2 Bytes Int16 BE. For example, 0xFDED (dec -531) converts to (-531 / 256.0) + 28.0 = 25.92°C. センサーは 2 Bytes の Int16 BE を返す。例えば、0xFDED(10 進数 -531)は (-531 / 256.0) + 28.0 = 25.92°C に換算される。
⚡ 即時互動計算器⚡ Interactive Calculator⚡ インタラクティブ計算機
換算溫度:Temperature:温度: 25.92 °C
🔋 電池電壓與電量等級 (Battery Voltage) 🔋 Battery Voltage & Level 🔋 バッテリー電圧とレベル (Battery Voltage)
ADC to Voltage
Voltage (V) = (ADC - 1400) * 0.001547 + 2.7
感測器回傳 ADC 數值 (2 Bytes)。電量門檻:High (≥ 3.27V, Level 3)、Medium (3.15V ~ 3.27V, Level 2)、Low (< 3.15V, Level 1)。 Sensor reports 2-byte ADC. Levels: High (≥ 3.27V, Level 3), Medium (3.15V ~ 3.27V, Level 2), Low (< 3.15V, Level 1). センサーは 2 バイトの ADC 値を返す。レベル:High (≥ 3.27V, Level 3)、Medium (3.15V ~ 3.27V, Level 2)、Low (< 3.15V, Level 1)。
⚡ 即時互動計算器⚡ Interactive Calculator⚡ インタラクティブ計算機
3.41 V High (等級 3)High (Level 3)High (レベル 3)
📈 加速度原始值轉 G 值 (Raw to G) 📈 Accel Raw to G Value 📈 加速度 Raw 値から G 値への変換 (Raw to G)
8g Range
G (g) = (Byte1 << 8 | Byte0) * 0.0002441062
三軸各佔 2 Bytes (小端序 Int16)。靈敏度係數以 8g 量程計算為 8 / 32768 ≈ 0.0002441062 g/LSB。 Tri-axial Int16 LE. Sensitivity factor for 8g range is 8 / 32768 ≈ 0.0002441062 g/LSB. 3軸 Int16 LE。8g レンジの感度係数は 8 / 32768 ≈ 0.0002441062 g/LSB である。
⚡ 即時互動計算器⚡ Interactive Calculator⚡ インタラクティブ計算機
加速度 G 值:Acceleration:加速度: +0.0222 g
📅 每週排程 Bitmask 計算器 (Weekly Cycle) 📅 Weekly Schedule Bitmask 📅 週間スケジュール Bitmask (Weekly Cycle)
1 Byte Mask
Bit 0: Mon, Bit 1: Tue ... Bit 6: Sun, Bit 7: Reserved(0)
排程指令中的 1 Byte 週期遮罩。例如勾選週一 (Bit 0) 與週四 (Bit 3) ➔ 0b00001001 = 0x09。 1-byte mask in schedule commands. Selecting Mon (Bit 0) and Thu (Bit 3) ➔ 0b00001001 = 0x09. スケジュールコマンド内の 1 バイトのマスク。月曜 (Bit 0) と木曜 (Bit 3) を選択 ➔ 0b00001001 = 0x09。
⚡ 勾選啟用星期⚡ Select Active Days⚡ 有効にする曜日を選択
0b00001001 Hex: 0x09 (Dec: 9)
⚙️ ISO 10816 振動烈度標準速查 (Vibration ISO Severity) ⚙️ ISO 10816 Vibration Severity Standards ⚙️ ISO 10816 振動シビアリティ基準 (Vibration ISO Severity)
ISO Index 0 ~ 6
ISO 10816 振動速度總值 (Velocity vrms in mm/s) 分級標準對照表(IsoIndex 0 ~ 6): ISO 10816 Vibration Velocity vrms (mm/s) Severity Classification Table (IsoIndex 0 ~ 6): ISO 10816 振動速度 vrms (mm/s) シビアリティ分類表(IsoIndex 0 ~ 6):
IsoIndex 設備等級與規格說明 (Machine Classification)Machine Classification & Power / Shaft Height機械の分類と出力 / 軸高 (Machine Classification) Alert (mm/s) Danger (mm/s)
0 (0x00) NA / Invalid:停用 ISO 監控或未設定狀態 NA / Invalid: Reserved for disabling ISO monitoring or unset state NA / Invalid:ISO 監視の無効化または未設定状態用に予約 - -
1 (0x01) Win App Customize:自定義門檻(嚴格使用 AlertLimit / DangerLimit 數值) Win App Customize: Strictly uses AlertLimit and DangerLimit values Win App Customize:AlertLimit と DangerLimit の値を厳密に使用 Custom Custom
2 (0x02) Large Machines / Rigid:大型剛性設備 (功率 P > 300 kW, 軸高 H ≥ 315 mm) Large Machines / Rigid: Power P > 300 kW, Shaft Height H ≥ 315 mm Large Machines / Rigid:出力 P > 300 kW、軸高 H ≥ 315 mm 4.5 7.1
3 (0x03) Large Machines / Flexible:大型彈性設備 (功率 P > 300 kW, 軸高 H ≥ 315 mm) Large Machines / Flexible: Power P > 300 kW, Shaft Height H ≥ 315 mm Large Machines / Flexible:出力 P > 300 kW、軸高 H ≥ 315 mm 7.1 11.2
4 (0x04) Medium Machines / Rigid:中型剛性設備 (15 kW < P ≤ 300 kW, 160 mm ≤ H ≤ 315 mm) Medium Machines / Rigid: 15 kW < P ≤ 300 kW, 160 mm ≤ H ≤ 315 mm Medium Machines / Rigid:15 kW < P ≤ 300 kW、160 mm ≤ H ≤ 315 mm 2.8 4.5
5 (0x05) Medium Machines / Flexible:中型彈性設備 (15 kW < P ≤ 300 kW, 160 mm ≤ H ≤ 315 mm) Medium Machines / Flexible: 15 kW < P ≤ 300 kW, 160 mm ≤ H ≤ 315 mm Medium Machines / Flexible:15 kW < P ≤ 300 kW、160 mm ≤ H ≤ 315 mm 4.5 7.1
6 (0x06) Small Machine:小型設備 (功率 P ≤ 15 kW) Small Machine: Power P ≤ 15 kW Small Machine:出力 P ≤ 15 kW 1.8 2.8
✓