检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:张晓鹏 Zhang Xiaopeng(Fuzhou Nafei Optoelectronics Technology Co.,Ltd.,Fuzhou 350001,China)
机构地区:[1]福州市纳飞光电科技有限公司,福州350001
出 处:《单片机与嵌入式系统应用》2023年第5期25-28,32,共5页Microcontrollers & Embedded Systems
摘 要:针对RS485总线不定数量的从站即插即用的难题,本文以光电模组检测需求为例,提出一种基于单片机设备唯一标识符的RS485总线即插即用的软件控制方法。该方法无需改动硬件电路即可实现RS485总线上的从站数量扫描、从站地址自动分配和从站热拔插检测等功能,并通过实验验证了该方法的有效性和灵活性,从面满足了使用者对从站任意拔插的需求。With regard to the plug-and-play problems of the uncertain number of slave stations on RS485 bus,taking the detection requirements of photoelectric modules as an example,a plug-and-play software control method of RS485 bus based on the unique identifier of single chip microcomputer equipment is proposed in the paper.Without changing the hardware circuit,through this method,functions including scanning the number of slave stations,automatically distributing the addresses of slave stations and hot plug detecting for slave stations in the RS485 buses can all be realized.In addition,the effectiveness and flexibility of this method can be proved by experimental data,which solves the problems of user’s demand for arbitrary plugging of the slave stations.
关 键 词:RS485 STM32G473 设备唯一标识符 即插即用 热拔插
分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.38