基于Android的物联型异步串行通信系统设计  

Design of IOT Asynchronous Serial Communication System Based on Android

在线阅读下载全文

作  者:郝纯刚 安康[1] 黄文华 

机构地区:[1]杭州师范大学钱江学院,浙江杭州310036

出  处:《大众科技》2021年第4期16-19,共4页Popular Science & Technology

基  金:浙江省自然科学基金一般项目(LY19F020022);2020年杭州师范大学钱江学院科研成果进课堂课程改革项目;2021年杭州师范大学钱江学院学生科研项目。

摘  要:文章将单片机与安卓技术融合开发符合实验要求的物联型异步串行通信系统,安卓手机APP开发采用XML语言对用户控制界面UI设计,JAVA语言对TCP Socket通信数据流编程控制,单片机发送AT指令启动WiFi模块与手机连网。上位机APP通过触发按钮利用TCP Socket发送数据,通过WiFi组网利用异步串行通信将数据发送给单片机,单片机将接收到的数据利用异步串行通信发送给PC机接收显示。实验表明:上位机APP通过控件按钮发送"Q"或"Z"字符利用物联型异步串行通信系统,PC机接收APP端发送的数据并实时显示,实现系统数据透传。This paper combines the single chip computer and Android technology to develop the Internet asynchronous serial communication system which meets the experimental requirements.The Android mobile app uses XML language to design the user control interface UI,Java language programming and control the TCP socket communication data flow,and the MCU sends at command to start WiFi module and the mobile phone network.The upper computer app sends data by using TCP socket through trigger button,sends data to MCU through WiFi network by asynchronous serial communication,and MCU sends the received data to PC for receiving and displaying by asynchronous serial communication.The experiment shows that the upper app sends"Q"or"Z"characters by control buttons,and the PC receives the data sent by app and displays it in real time,so as to realize the transmission of system data.

关 键 词:物联型 异步串行通信 安卓APP 单片机 

分 类 号:TP316[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象