摘要
本文研究并设计了一种基于51单片机和4G模块的办公人员在位系统,本系统主要分为两个部分:下位机和上位机。下位机由单片机、按键、LED显示屏、压力传感器、串口转换器以及4G模块组成;上位机由云服务器、数据库、以及公众号组成。在下位机上,本系统通过设定好按键数据并经单片机处理后同时送给LED显示屏和串口转换器,LED屏显示按键状态,串口转换器将TTL数据转换成RS485数据传输给4G模块,4G模块通过HTTP协议将16进制消息传送到上位机。在上位机上,云服务器读取数据并编码存储入数据库。当用户在指定微信公众号发送工号数据时,云服务器端会返回相应人员在位状态。该在位系统具有成本低,适用性强和实用性好的特点,具有较大研究与应用价值。
In this paper, an office staff in place system based on 51 single chip microcomputer and 4G module is studied and designed. The system is mainly divided into two parts: the lower computer and the upper computer. The lower computer is composed of single chip microcomputer, keystroke, LED display screen, pressure sensor, serial port converter and 4G module. The upper computer is composed of cloud server, database and public number. On the lower computer, the system sets the key data and sends it to the LED display and serial converter through the MCU. The LED screen displays the button status. The serial converter converts the TTL data into RS485 data and trans-mits it to the 4G module. 4G module transmits the hex message to the host computer via the HTTP protocol. On the host computer, the cloud server reads the data and encodes it into the database. When the user sends the job number data to the WeChat public account, the cloud server will re-turn the corresponding personnel in the in-position state. Due to its low cost, good applicability and practicability, the system has certain research value and application value.
出处
《传感器技术与应用》
2019年第4期142-149,共8页
Journal of Sensor Technology and Application