2019-07-15 19:41发布
依然落叶飘零 发表于 2014-5-17 17:57 只要是看你程序怎么写。
愤怒的企鹅 发表于 2014-5-17 15:30 什么单片机,网上应该有很多串口通信的例程呀!怎么不会呢
最多设置5个标签!
大神帮我写一下呗
通信协议要自己设定的 本来对串口就不太熟悉 大神帮帮忙呗
上位机:
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单片机 跪求大神
一周热门 更多>