|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- # 资源概述
- #@ Model BOXPC901
- # 网口 2路
- # USB 2路
- # HDMI 1路
- # 串口 10路
- # ttymxc1 TXA1 RXB1 -> 兼容接口既可以做RS485,又可以做RS232,暂未使用
- # ttymxc2 TXA2 RXB2 -> 兼容接口既可以做RS485,又可以做RS232,暂未使用
- # ttyS0 - TXA3 RXB3 -> 暂未使用
- # ttyS1 - TXA4 RXB4 -> 舱门:步进电机
- # ttyS2 - TXA5 RXB5 -> 舱门:编码器
- # ttyS3 - TXA6 RXB6 -> XYZ伺服电机
- # ttyS4 - TXA7 RXB7 -> 气象站
- # ttyS5 - TXA8 RXB8 -> 充电器
- # ttyS6 - TXA9 RXB9 -> BMS
- # ttyS7 - TXA10 RXB10 -> 舱内传感器
-
- [Basic] # 基本信息
- HardwareRev = 101 # 硬件版本
- IsDeBug = 1 # 调试信息打印开关
- MsgTimeoutMs = 8000 # 消息超时时间,单位MS
- PollTime = 50 # 轮询时间,单位ms
- HTTP_PORT = 8000 # http 服务端口号 http://192.168.144.15:8000
- BROKER_ADDR = 106.15.120.154 # MQTT服务器地址
- BROKER_PORT = 1883 # MQTT服务端口
- CLIENT_ID = THJSQV2LinuxTest001 # MQTT机场ID
-
- [Button] # 线程与功能开关
- MqttThread = 0 # 默认关闭
- WthBaseThread = 0 # 默认开启
- ChgrThread = 1 # 默认开启
- BMSThread = 1 # 默认开启
- InnerSenThread = 0 # 默认开启
- Airbutton = 0 # 默认开启
- Smokebutton = 0 # 默认关闭
- Waterbutton = 0 # 默认关闭
-
- [Hatch] # 舱门与编码器
- UartNum_HATCH = /dev/ttyS1 #
- UartBaud_HATCH = 9600 #
- LeftEncoderOpenVal = -50 # 原先是10 ,1024对应125.664mm, 1mm 约 8.15
- LeftEncoderCloseVal = -5290 # 原先是5200 ,1024对应125.664mm
- RightEncoderOpenVal = 50 #
- RightEncoderCloseVal = 5290 # 21000
- HatchSpeed = 200 # rmp 舱门速度
- HatchAccelerationTime = 50 # ms/1000rpm 舱门加速时间
- HatchDecelerationTime = 50 # ms/1000rpm 舱门减速时间
- UartNum_ENCODER = /dev/ttyS2 #
- UartBaud_ENCODER = 9600 #
- Model = CZ38-K08G-M0610-MB24 # CZ38-K08G-M0610-MB24(旧) # RMT-3808-06-12-RS(新)
- HatchDir = 1 # 舱门dir方向 1:新 0:旧(2号)
-
- [Servo] # 伺服电机,XYZ轴
- UartNum = /dev/ttyS3 #
- UartBaud = 9600 #
- LifertDownVal = 114579349 #down 下方
- LifertUpVal = 10 #up 上升
- XNegOpenVal = 1000 #x- open
- XNegCloseVal = 7866764 #x- close
- XPosOpenVal = 1000 #x+ open
- XPosCloseVal = 7729313 #x+ close
- YNegOpenVal = 1000 #y- open
- YNegCloseVal = 8044646 #y- close
- YPosOpenVal = 1000 #y+ open,1000→1000000
- YPosCloseVal = 7915801 #y+ close
- LifterSpeed = 3000 # rmp 升降器速度
- LifterAccelerationTime = 1500 # ms 升降器加速时间
- LifterDecelerationTime = 1500 # ms 升降器减速时间
- HolderYOpenSpeed = 1650 # rmp 固定器Y打开速度
- HolderYCloseSpeed = 600 # rmp 固定器Y关闭速度
- HolderYAccelerationTime = 800 # ms 固定器Y加速时间
- HolderYDecelerationTime = 800 # ms 固定器Y减速时间
- HolderXOpenSpeed = 1650 # rmp 固定器X打开速度
- HolderXCloseSpeed = 600 # rmp 固定器X关闭速度
- HolderXAccelerationTime = 800 # ms 固定器X加速时间
- HolderXDecelerationTime = 800 # ms 固定器X减速时间
-
- [Wthbase] # 气象站
- UartNum = /dev/ttyS4 #
- UartBaud = 9600 #
- WindModel = GENGNONG # GENGNONG:耕农智慧 PUHUI_Wind:普惠风
- RainModel = PUHUI_Snow # WENKONG:稳控 PUHUI_Snow:普惠雨雪 PUHUI_Rain:普惠雨量(压电式)
- WeatherID_wind = 1 # 设备ID 风速为1
- WeatherID_rain = 2 # 设备ID 雨量为2
- ContrllerID = 3 # 设备ID 气象站内部485模块(控图传与照明灯)
- Have_pcb = 0 # pcb与IO模块二选一(控图传与照明灯)
- WthpcbID = 4 # 气象站pcb控制板
- WindSpeedThreshold = 5.0 # 0.5-40m/s 风速阈值
- RainFallThreshold = 0.5 # 精度0.1
-
- [Charger] # 充电器
- UartNum = /dev/ttyS5 #
- UartBaud = 9600 #
- SlaveID = 1 #
- ChgrCurr = 100 # 充电电流 0.1A
- StopCurr = 10 # 停止电流 0.1A
- OpenChgrTemp = 35.0 # 开始充电温度 ℃
- OpenChgrBatVlot = 25.6 # 开始充电的电池电压 v
- ChargerModel = G600 # 充电器型号 G600(旧) FN1000(新)
-
- [BMS] #
- UartNum = /dev/ttyS6 #
- UartBaud = 9600 #
- SlaveID = 1 #
- BatTempHThreshold = 45.0 # 电池温度高阈值 ℃
- BatVlotHThreshold = 26.1 # 电池电压高阈值 v
- BatVlotLThreshold = 22.6 # 电池电压低阈值 v
-
- [InnerSensor] # 内部传感器
- UartNum = /dev/ttyS7 #
- UartBaud = 9600 #
- SlaveID_TempSensor = 1 # 温湿度设备地址
- TempHThreshold = 45.0 # 舱内温度高阈值 ℃
-
- SlaveID_AirCondition = 2 # 空调设备地址
- CoolStartTmp = 35 # 制冷启动温度
- CoolReturnTmp = 3 # 制冷回差
- HeatStartTmp = 5 # 制热启动温度
- HeatReturnTmp = 10 # 制热回差
- TimeofHumi = 60 # 最大除湿时间
- HumiSet = 90 # 除湿设定
- HumiReturn = 10 # 除湿回差
- AirModel = SHEYU # 空调型号 SHEYU(旧) DEKUO(新)
-
- SlaveID_Inner485IOCtl = 3 # 485IO控制器设备地址
- SlaveID_LightBelt = 4 # 灯带控制器设备地址
- SlaveID_SmokeSensor = 6 # 烟感设备地址
- SlaveID_WaterSoak = 7 # 水浸设备地址
|