基于WebSocket服务实现Web应用访问本地串口设备  被引量:6

Web Application Accessing Local Serial Devices Based on WebSocket Service

在线阅读下载全文

作  者:钱鑫博 QIAN Xinbo(The 54th Research Institute of CETC,Shijiazhuang 050081,China)

机构地区:[1]中国电子科技集团公司第五十四研究所,河北石家庄050081

出  处:《计算机与网络》2020年第14期62-65,共4页Computer & Network

摘  要:浏览器里的Web应用和计算机的串口硬件进行通信时,需要针对不同的浏览器开发不同的插件。采用HTML5内置的WebSocket技术和QT开发框架,通过WebSocket协议连接本地服务,并通过本地服务绑定串口完成全双工通信的方案,实现了跨浏览器的Web应用与客户端计算机串口通信的技术,解决了为不同浏览器产品及版本开发多种插件的问题。经过测试验证,达到了预期目标。In the communication of Web applications in browsers with the computer’s serial hardware,it is required to develop the different plug-ins in different browsers.The full-duplex communication scheme is implemented by using WebSocket technology provided by HTML5 and QT development framework,connecting local service with WebSocket protocol and bounding the serial device with local service.The across-browser communication is realized between Web application and computer serial communication,which solves the problem of developing different plug-ins for different browser products and versions.The test results show that it achieves the expected goal.

关 键 词:WebSocket HTML5技术 串口通信 

分 类 号:TP393[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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