- Hardware type: Sensors
- Connectivity: LoRaWAN
- Industry: Smart Buildings, Smart Cities, Environmental Monitoring, Industrial Manufacturing
- Use cases: Water Metering, Smart Farming, Smart Irrigation, Waste Management
- Platforms: Community Edition, Professional Edition, Cloud
概述
AgroSense LoRaWAN®定位式漏水传感器可在固定点检测漏水情况,适用于车库/厨房漏水检测等场景。一旦检测到漏水,立即通过LoRaWAN®协议上报。该传感器得益于LoRaWAN技术,确保稳定性和可靠性。可在保持低功耗的同时覆盖长距离传输。与有线设备不同,它采用电池供电,降低了终端用户的部署、设计和开发工作量与复杂度——上电后设置云端服务器配置即可运行。
前置条件
继续本指南前,需准备以下内容:
- AgroSense Positioning Water Leak Sensor
- LoRaWAN® gateway (in our case UG56 LoRaWAN® Gateway)
- Configured integration on networks server and ThingsBoard
- ThingsBoard 账户
设备连接
Device configuration
连接并发送数据前,需配置设备和网络服务器。
First, we are going to configure the device and save the required information for the network server configuration.
要将设备加入网络服务器并从中获取数据,需准备以下设备参数:
- Device EUI – Device identifier
- Application EUI – Application identifier
- Application Key – Application key for device authentication
Note: You can find the values of these keys on the label located on the side of the device (see example image below).

To configure the device we also need to add it to a network server, so select the network server your gateway is connected to:
在ChirpStack上添加设备我们需要在 ChirpStack 上添加设备。 要添加设备,请按以下步骤操作:
登录ChirpStack服务器。 进入设备配置页面,点击添加设备配置按钮。 填写字段并点击提交按钮。 进入应用页面,点击您的应用后按添加设备按钮。 使用设备配置中的值填写参数。然后选择之前创建设备配置并点击提交按钮。 将应用密钥填入相应字段并点击提交按钮保存设备。 ThingsBoard集成中的上行数据转换器步骤1:下载JSON文件 点击下方按钮下载包含上行数据转换器配置的JSON文件。
下载包含上行数据转换器配置的文件后,将其导入ThingsBoard:
现在,将您的 ChirpStack 集成更新为使用新的上行数据转换器:
|
在The Things Stack社区版上添加设备我们需要在 The Things Stack社区版 上添加设备。 要添加设备,请按以下步骤操作:
登录云端并打开控制台。 进入 应用 页面。然后选择您的应用并点击应用名称。 点击 注册终端设备 按钮。 将 APP EUI 值填入 JoinEUI 字段。点击 确认 按钮。 填写其余参数并点击 注册终端设备 按钮。 ThingsBoard集成中的上行数据转换器步骤1:下载JSON文件 点击下方按钮下载包含上行数据转换器配置的JSON文件。 下载 The Things Stack 集成的上行数据转换器。
下载包含上行数据转换器配置的文件后,将其导入ThingsBoard:
现在,将您的 The Things Stack 集成更新为使用新的上行数据转换器:
|
在The Things Industries上添加设备我们需要在 The Things Industries云 上添加设备。 要添加设备,请按以下步骤操作:
登录云端并打开控制台。 进入 应用 页面。然后选择您的应用并点击应用名称。 点击 注册终端设备 按钮。 将 APP EUI 值填入 JoinEUI 字段。点击 确认 按钮。 填写其余参数并点击 注册终端设备 按钮。 ThingsBoard集成中的上行数据转换器步骤1:下载JSON文件 点击下方按钮下载包含上行数据转换器配置的JSON文件。 下载 The Things Industries 集成的上行数据转换器。
下载包含上行数据转换器配置的文件后,将其导入ThingsBoard:
现在,将您的 The Things Industries 集成更新为使用新的上行数据转换器:
|
在Loriot上添加设备我们需要在 Loriot 上添加设备。 要添加设备,请按以下步骤操作:
登录Loriot服务器。我们使用 eu2.loriot.io,具体取决于注册时选择的区域。 在左侧菜单中进入“应用”页面。 打开您的应用,我们的示例为“SampleApp”。 进入“注册设备”页面。使用设备配置中的值填写字段,然后点击“注册”按钮。 ThingsBoard集成中的上行数据转换器步骤1:下载JSON文件 点击下方按钮下载包含上行数据转换器配置的JSON文件。
下载包含上行数据转换器配置的文件后,将其导入ThingsBoard:
现在,将您的 Loriot 集成更新为使用新的上行数据转换器:
|
在ThingsBoard上查看数据
After the device is connected to the network server and ThingsBoard, you can check received and converted data on the platform for this device.
To do this, open Entities menu section and select Devices.
Click on the device name to open the device details page.
Go to the Latest telemetry tab to see the latest telemetry data received from the device.

总结
现在您可以轻松将AgroSense Positioning Water Leak Sensor连接到ThingsBoard并开始发送数据。
进一步了解可查阅ThingsBoard文档, 学习创建仪表板可视化遥测、 配置告警规则实时监控设备行为等核心功能。