摘要
为解决二维码扫描器占用电脑存储,造成难以收集和查询数据及浪费资源的问题,提出一种基于物联网使多个二维码扫描器通过局域网与服务器连接的方法。该方法利用ATMEGA16A单片机对ESP8266进行模式配置,使ESP8266同时连接到局域网及以visual studio 2008为平台搭建的服务器上,进入透传模式,将本地异步串口通信转换成基于TCP/UDP协议的网络通信,实现将多台二维码扫描器扫描所得到的信息通过ESP8266远程传输到服务器,并记录到后台的Access数据库中。
QR code scanner in the store occupies disk space,which is a waste of resources and makes it difficult to collect and query data.In order to solve such problems,a method is proposed based on the Internet of Things to con-nect multiple QR code scanners to the server through the local area network.ATMEGA16A MCU is used to configure the ESP8266 mode,so that the ESP8266 can be connected to the LAN and the server built with the visual studio 2008 as the platform and enter the transparent transmission mode(i.e.convert the local asynchronous serial communication to the network communication based on TCP/UDP protocol),which makes it possible for the information obtained by scan-ning multiple QR code scanners to be remotely transmitted to the server through the ESP8266,and recorded to the Ac-cess database in the background.
作者
余佳琦
杨丽
杨岭玉
段海龙
YU Jia-qi;YANG Li;YANG Ling-yu;DUAN Hai-long(School of Automation and Electrical Engineering,Tianjin University of Technology and Education,Tianjin 300222,China;Tianjin Key Laboratory of Information Sensing and Intelligent Control,Tianjin University of Technology and Education,Tianjin 300222,China)
出处
《天津职业技术师范大学学报》
2019年第4期13-16,共4页
Journal of Tianjin University of Technology and Education
基金
天津职业技术师范大学科研发展基金资助项目(KJ1803)