# SwitchSensor-demo **Repository Path**: mx17355326068/switch-sensor-demo ## Basic Information - **Project Name**: SwitchSensor-demo - **Description**: modbus-RTU协议读取开关量 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-09-26 - **Last Updated**: 2023-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 工程简介 使用modbus—RTU 协议读取传感器数据 ## 设备选型 1. 开关量检测(无源接法) 2. usb 转485 ## 问题 1. 如果有依赖下不下来 1. 使用默认的仓库下载 2. 需要自己下载依赖(自行百度) ```xml org.scream3r jssc 2.8.0 com.RXTXcomm RXTXcomm 3.0.5 ``` ## switch 模块介绍 1.offset 1. 偏移量为0 设备正常运行开关量 1. 偏移量为1 设备故障开关量 1. 偏移量为2 设备待机状态开关量