通过网络进行串行通信 [英] Serial communication via web

查看:78
本文介绍了通过网络进行串行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!



有人能告诉我如何通过我自己的网页与串口设备通讯?



谢谢



我尝试过:



i dunno怎么办请帮帮我

Hi!

Can someone tell me how can i communicate with a serial device via my own web page?

Thanks

What I have tried:

i dunno how to do please help me

推荐答案

你可以 - 但不能在客户端PC上。出于安全原因,这是不允许的。想一想:您是否希望流氓网站只需访问他们的网站即可访问您的连接设备?我不会......



如果串行设备连接到服务器计算机,你可以做到这一点,但即便如此,它也不会像网站那样简单自然是一个多用户环境,串行设备是一般的单一用途。如果两个用户试图告诉它做不同的事情会发生什么?
You can - but not on the client PC. That's not allowed for security reasons. Think about it: would you like rogue websites to have access to your connected devices just by visiting their website? I wouldn't...

You can do it if the serial device is connected to the server computer, but even then it's not going to be simple as a website is naturally a multiuser environment, and serial devices are general single use. What is going to happen if two users try to tell it to do different things?


如果你的意思是通过网页(客户端)通过串口进行通信,只使用标准技术 - 你不能......

有一个选项可以使用Java(applet)或编写一些特定于浏览器/解决方案的插件......
If do you mean to communicate via serial port from your web page (client side), using only standard technologies - YOU CAN NOT...
There is an option to use Java (applet) or writing some browser/solution specific plugin...


这篇关于通过网络进行串行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆