串口通信不会啊 求大神指点帮忙

2019-07-15 19:41发布

鄙人做的温湿度,现在要通过max485模块将采集的温湿度传给上位机,但是 串口通信不会啊  求大神指点帮忙,万分感谢!!
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
7条回答
wsha110
2019-07-16 16:38

上位机:
eb eb 01 cd     读取温度值
eb eb 02 cd     读取最适温度   
eb eb 03 00 cd  设置最适温度
eb eb 04 cd     打开大棚
eb eb 05 cd     关闭大棚
eb eb 06 cd     消音报警
下位机:
eb eb 81 00 cd  上传温度值
eb eb 82 00 cd  最适温度返回
eb eb 83 cd     设置温度返回
eb eb 84 cd     打开大棚成功
eb eb 85 cd     关闭大棚成功
eb eb 86 cd     消音成功
用的是max485模块 52单片机   跪求大神

一周热门 更多>