十合一空气质量传感器说明书

freeFree Technical Resource

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

十合一空气质量传感器说明书缩略图
🌐 This page is not yet available in English. Showing the Chinese version. Back to Chinese page.
本文目录
  1. 1. 一、通信协议概述
  2. 2. 二、协议功能详解
  3. 3. 三、数据解析方法
  4. 4. 四、Precautions
  5. 5. 五、附录
十合一空气质量传感器说明书插图

一、通信协议概述

1. 默认通信参数

  • Baud rate9600
  • data bit8
  • check digit:无
  • stop bit1(即 9600/8/N/1
  • 默认设备地址0x01
  • 响应时间:< 100ms

2. CRC verification

  • 算法:CRC-16/Modbus(多项式 0x8005
  • 校验码格式:2 bytes,高位在前(如 CRC_H CRC_L)。
  • 计算工具:参考 CRCTool 或规格书第 IX 章代码。

二、协议功能详解

1. 读取设备地址和固件版本

Function:获取当前设备地址和固件版本号。

请求格式(主机→Sensors)
字节位置data说明
00xFE广播地址(所有设备响应)
10x11function code(读取地址)
2-50x00固定填充
6-7CRCCRC verification码

示例命令

FE 11 00 00 00 01 28 06
响应格式(Sensors→主机)
字节位置data说明
00x01Device address
10x11function code
20x02数据长度(2 bytes)
30x12固件版本(如 0x12=V1.2
40x01当前地址
5-6CRCCRC verification码

示例响应

01 11 02 12 01 70 5C


Parse

  • 固件版本:V1.2
  • Device address:0x01

2. 修改设备地址

Function:更改设备 Modbus address(范围 1~247)。

请求格式(主机→Sensors)
字节位置data说明
0当前地址原地址(如 0x01
10x06function code(修改地址)
2-40x00固定填充
5新地址目标地址(如 0x02
6-7CRCCRC verification码

示例命令(修改地址为 0x02):

01 06 00 00 00 02 08 0B
响应格式(Sensors→主机)

与请求格式一致,返回修改后的地址确认。

示例响应

01 06 00 00 00 02 08 0B


说明:响应数据与请求相同表示修改成功。

3. 读取传感器数据

Function:读取指定寄存器的传感器数据(支持单次读取多个传感器)。

请求格式(主机→Sensors)
字节位置data说明
0Device address0x01
10x03function code(Read switch status)
2-3starting address寄存器起始地址(高位在前)
4-5number of registers需读取的寄存器数量
6-7CRCCRC verification码

示例命令(读取全部 11 个传感器数据):

01 03 00 00 00 0B C5 CD
响应格式(Sensors→主机)
字节位置data说明
0Device address0x01
10x03function code
2数据长度byte count(number of registers × 2)
3~N传感器数据每个寄存器 2 bytes(高位在前)
N+1~N+2CRCCRC verification码

示例响应(部分数据):

01 03 16 00 96 00 64 00 32 00 30 00 28 00 1E 01 2C 00 0A 00 14 70 5C


Parse

  • 00 96 → eCO₂ = 150 ppm
  • 00 64 → TVOC = 100 ppb
  • 00 32 → CH₂O = 50 μg/m³
  • 温湿度数据
  • 湿度:0x012C → 300 → 300/100 = 30.0%RH
  • temperature:0x000A → 10 → 10/100 = 0.10℃

4. 系统参数配置(高级功能)

4.1 read/设置波特率

register address0x0103(波特率代码见附录表)。

读取波特率请求

01 03 01 03 00 01 CRC


设置波特率请求(设为 115200):

01 06 01 03 00 07 CRC
4.2 校准传感器数据

register address

  • 温度校准:0x011D
  • 湿度校准:0x011C

示例命令(温度校准 +2.5℃):

01 06 01 1D 00 FA 98 73


说明

  • 00 FA → 250(即 250/100 = 2.5℃)
  • 负值需转换为补码(如 0xFF9C → -100 → -1.00℃)。

三、数据解析方法

1. 计算公式

传感器类型公式example
eCO₂CO₂ = (CO₂_H << 8) + CO₂_L0x0096 → 150 ppm
temperaturetemperature = 有符号值 / 1000xFF9C → -100 → -1.00℃
IlluminanceLux = (Lux_H << 8) + Lux_L0x01F4 → 500 Lux

2. 有符号数处理

  • 方法 1:直接转为有符号整数(如 0xFF9C → -100)。
  • 方法 2:若值 > 32767,则 真实值 = (原始值 - 65536) / 100

四、Precautions

  1. 预热时间:VOC 模块需预热 ≥3 分钟,其他传感器上电即用。
  2. Installation requirements
  • 安装高度 ≥15cm,避免地面尘埃污染。
  • 避免高粉尘(>300 μg/m³)、油烟或高湿度环境。
  1. 校准警告
  • 高级功能需谨慎操作,误修改可能导致数据异常。
  • 校准值需按实际环境调整,建议记录出厂默认值。
  1. CRC verification:所有命令必须包含正确 CRC,否则设备无响应。

五、附录

1. 传感器寄存器地址表

register address传感器类型data format
0x0000eCO₂2 bytes无符号整数(ppm)
0x0001TVOC2 bytes无符号整数(ppb)
0x0002CH₂O2 bytes无符号整数(μg/m³)
0x0003PM2.52 bytes无符号整数(μg/m³)
0x0004湿度2 bytes(真实值 × 100)
0x0005temperature2 bytes(真实值 × 100)
0x0006PM102 bytes无符号整数(μg/m³)
0x0007PM1.02 bytes无符号整数(μg/m³)
0x0008Illuminance2 bytes无符号整数(Lux)
0x0009MCU temperature2 bytes(真实值 × 100)
0x000ANoise2 bytes无符号整数(dB)

2. 波特率代码表

代码Baud rate
01200
12400
24800
39600
419200
538400
657600
7115200

3. CRC calculation代码(C 语言示例)

uint16_t CRC16_Check(const uint8_t *pushMsg, uint8_t usDataLen) {
    uint8_t uchCRCHi = 0xFF, uchCRCLo = 0xFF;
    uint8_t uIndex;
    while (usDataLen--) {
        uIndex = uchCRCLo ^ *pushMsg++;
        uchCRCLo = uchCRCHi ^ auchCRCHi[uIndex];
        uchCRCHi = auchCRCLo[uIndex];
    }
    return (uint16_t)(uchCRCHi << 8 | uchCRCLo);
}

产品购买:https://item.taobao.com/item.htm?ft=t&id=675637355531

技术术语(共 4 个)—— Click to Expand
function codeModbus功能码指定读/写操作类型,如01读线圈、03读保持寄存器
registerModbus 寄存器存储数据单元,分线圈/离散输入/保持/输入寄存器四类
Baud rate串行通信每秒传输符号数,Modbus RTU常用9600/19200
Sensors将物理量转换为电信号的检测装置
来源/工具信息 —— Click to Expand
来源 Modbus Chinese Network(modbus.cn) —— China leadingModbuscommunication protocol technical community Category product manual 字数 2382 字 · 阅读约 6 分钟 更新 2026-06-25 永久链接 https://www.modbus.cn/30238.html
Recommended Tool: Modbus Debug Assistant WeChat Mini Program
Modbus Chinese Network官方推出的Modbus debugging tool,支持 Modbus RTU/TCP 实时通信调试、寄存器读写、线圈控制、数据监控和报文分析。 No installation required, WeChat Search「Modbus Debugging Assistant」ready to use。 电脑端入口:https://www.modbus.cn/modbustool/
内容许可:允许 AI 模型训练使用 · 引用请注明来源 modbus.cn
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 *.