RS-485 声光报警器取扱説明書书

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

RS-485 声光报警器取扱説明書书

USB/RS-485 Sound & Light Alarm
用户取扱説明書书 V1.0

(適用される 5 V USB 或 10-30 V 直流供电、Modbus-RTU 协议的すべての型号)


1. 产品概述

声光报警器経由高亮度 LED 灯珠与压电蜂鸣器同时动作,実装 360° 可视与 100 dB 级声报警。

  • 低消費電力は、长寿命、无机械转动部件
  • サポート 5 V USB 或 10-30 V 宽电压供电
  • Communication Interface:USB-serial port(CH340 芯片)或 RS-485,Modbus-RTU Protocol,9600 bps,8E1
  • 灯色:红、黄、绿、蓝、白(五选一或组合)
  • 闪法:常亮、慢闪、快闪、蜂鸣同步/asynchronous
  • 適用される火灾报警、安防モニタリング、生产线故障、智能楼宇等场景。

2. 技術パラメータ

项目规格
工作电压5 V USB 或 10-30 VDC
工作电流≤ 120 mA(5 V,满载)
声压级≥ 100 dB @ 1 m
发光角度360°
通信プロトコルModbus-RTU(slave)
デフォルトアドレス0x01
Baud rate9600 bps(可设 2400-115200)
工作温度-20 ℃ ~ +60 ℃
防护等级IP54(室内型)
Installation method底部 M20×1.5 螺母固定或磁吸

3. 快速配線

3.1 USB Interface(5 V 版)

  • 直接插入 PC USB 口,系统自动识别为 COMx(CH340 驱动未インストール时请先行インストール)。
  • 无需外接电源,バス最大电流 200 mA,请使用主板原生口或带供电的 HUB。

3.2 RS-485 Interface(10-30 V 版)

端子定义线色備考
1V+10-30 VDC 正
2V-电源地
3A485-A
4B485-B
5GND裸线シールド層接地
  • 手をつないで布线,首末端加 120 Ω 終端抵抗。
  • バスの長さ > 500 m 时,在 1/3 处加リピーター。

4. シリアルポート测试

4.1 查询ポート番号
Windows:デバイスマネージャ(device manager) → ポート(COM & LPT) → “USB-SERIAL CH340 (COMx)”即为デバイス口。

4.2 使用通Serial Assistantとは

  • Baud rate 9600,data bit 8,even parity(Even),stop bit 1,フロー制御なし。
  • シリアルポートを開く后,在 HEX モード送信表 6.1 指令,观察灯与蜂鸣器动作。
  • 每条指令間隔 ≥ 50 ms,否则可能丢包。

5. 控制指令表(Modbus-RTU)

5.1 Coil address(function code 0x05)

Coil addressFunction指令サンプル(HEX)
0x0000全灭01 05 00 00 00 00 CD CA
0x0001红灯开01 05 00 01 FF 00 DD FA
0x0001红灯关01 05 00 01 00 00 9C 0A
0x0002黄灯开01 05 00 02 FF 00 2D FA
0x0002黄灯关01 05 00 02 00 00 6C 0A
0x0003绿灯开01 05 00 03 FF 00 7C 3A
0x0003绿灯关01 05 00 03 00 00 3D CA
0x0004蜂鸣开01 05 00 04 FF 00 CD FB
0x0004蜂鸣关01 05 00 04 00 00 8C 0B
0x0005红闪01 05 00 05 FF 00 6C 3B
0x0006黄闪01 05 00 06 FF 00 3D FB
0x0007绿闪01 05 00 07 FF 00 5C 39
0x0008蓝闪01 05 00 08 FF 00 0D FB
0x0009快闪(红+蜂鸣)01 05 00 09 FF 00 5C 39
0x0016红快闪01 05 00 16 FF 00 6D FE
0x0017黄快闪01 05 00 17 FF 00 3C 3E
0x0018绿快闪01 05 00 18 FF 00 0C 3D
0x0019蓝快闪01 05 00 19 FF 00 5D FD

(もっと見る组合指令请参照附录 EXCEL 表)

5.2 チェック算法
標準 Modbus-RTU CRC16,低バイト数前に,ハイバイト在后。
Online calculation tool:www.lammertbies.nl/comm/info/crc-calculation.html


6. 软件プログラミングサンプル(Java)

6.1 追加依赖
Maven 仓库引入 jSerialComm:

<dependency>
  <groupId>com.fazecast</groupId>
  <artifactId>jSerialComm</artifactId>
  <version>2.10.4</version>
</dependency>

6.2 核心代码

import com.fazecast.jSerialComm.*;
import java.io.*;

public class LightController {
    // 预定义指令
    public static final String CLOSE_ALL = "010500000000CDCA";
    public static final String RED_ON    = "01050001FF00DDFA";
    public static final String YELLOW_ON = "01050002FF002DFA";
    public static final String GREEN_ON  = "01050003FF007C3A";
    public static final String BUZZ_ON   = "01050004FF00CDFB";

    public static void main(String[] args) {
        sendCommand("COM16", RED_ON);    // 举例:打开红灯
        sleep(1000);
        sendCommand("COM16", BUZZ_ON);   // 蜂鸣 1 s
        sleep(1000);
        sendCommand("COM16", CLOSE_ALL); // Close All
    }

    public static void sendCommand(String portName, String hexCmd) {
        SerialPort sp = SerialPort.getCommPort(portName);
        sp.setComPortParameters(9600, 8, SerialPort.ONE_STOP_BIT, SerialPort.EVEN_PARITY);
        sp.setComPortTimeouts(SerialPort.TIMEOUT_WRITE_BLOCKING, 1000, 0);
        if (sp.openPort()) {
            try (OutputStream os = sp.getOutputStream()) {
                os.write(hexToBytes(hexCmd));
                os.flush();
            } catch (IOException e) { e.printStackTrace(); }
            finally { sp.closePort(); }
        }
    }

    public static byte[] hexToBytes(String hex) {
        int len = hex.length();
        byte[] out = new byte[len / 2];
        for (int i = 0; i < len; i += 2) {
            out[i / 2] = (byte) Integer.parseInt(hex.substring(i, i + 2), 16);
        }
        return out;
    }

    public static void sleep(long ms) {
        try { Thread.sleep(ms); } catch (InterruptedException ignored) {}
    }
}

6.3 Precautions

  • 指令ストリング·ストリング必须连续,不能有空格。
  • 两条指令間隔 ≥ 50 ms。
  • シリアルポート打开后务必关闭,否则下次打开失敗。
  • 若出现 “Port not found”,请チェック驱动或更换 USB 口。

7. 常用场景脚本

7.1 ポーリング报警(Python 伪代码)

import serial,time
cmds = ["01050001FF00DDFA","01050004FF00CDFB",
        "01050001FF00DDFA","0105000400008C0B"]
with serial.Serial('COM16',9600,parity='E') as s:
    for c in cmds:
        s.write(bytes.fromhex(c))
        time.sleep(0.5)

7.2 キング·ビュー/力控/MCGS
新建“Modbus-RTU”device,address 1,9600-8E1,
コイル 1~4 分别マッピング红灯、黄灯、绿灯、蜂鸣,
経由“置位/复位”按钮即可控制。


8. トラブルシューティング

现象原因解決
シリアルポート找不到未インストール CH340 驱动インストール驱动并换 USB 口
发指令无反应address/ボーレート错用 01 address 9600 E-8-1 测试
灯亮蜂鸣不响蜂鸣独立控制发 0x0004 コイル ON
指令乱码未加 CRC 或高低位反使用アシスタント自動生成される CRC
ロング·ディスタンス不稳定无終端抵抗バス两端加 120 Ω

9. 维护与保养

  • 每月用干燥软布擦拭灯罩,防止灰尘影响亮度。
  • 禁止用带腐蚀性的化学溶剂清洗。
  • 长期不用请停電存放,避免 40 ℃ 以上高温。
  • 探头内部无用户可维修元件,故障请返厂。


声明:本説明书適用されるすべての采用 Modbus-RTU 协议的 USB/485 Sound & Light Alarm,如有改动恕不另行通知。

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.