摘要
设计了基于ENC28J60芯片的STM32电源控制节点和C/S客户端相结合的远程机房电源控制系统。在简要介绍ENC28J60和STM32芯片基础上,重点阐述了电源控制节点以太网接口设计,包括ENC28J60的外围硬件电路设计和上层通信软件的设计,用STM32的SPI引脚接口和ENC28J60相连,通过微指令编程实现对ENC28J60的控制逻辑,网络层、传输层采用嵌入式μIP协议;C/S客户端以C#语言调用socket API接口,编制操作界面。实验证明网络通信稳定可靠,实现了机房远程电源通断的控制。
The power control node of STM32 based on ENC28J60 and C/S client is designed for remote power supply control system for computer room. Following a brief introduction of ENC28J60 and STM32, the design of Ethernet interface for power control node is expatiated, including the design of the peripheral circuit of ENC28J60, the design of the upper communication software, using the SPI port of STM32 connect with ENC28J60, using microinstruction programming to realize the control logic of ENC28J60. The net layer and transport layer use embedded μIP protocol. C/S client call socket API interface using C#language, design user interface. The stability of communication is verified by experiment, and the control of remote power supply on and off for computer room is realized.
出处
《电子设计工程》
2015年第4期40-43,共4页
Electronic Design Engineering