浏览器插件 | COM 端口通信技术

发布于 2024-09-28 22:17:20 字数 331 浏览 2 评论 0原文

我正在寻求开发一个专门的浏览器插件,它将与本地COM端口连接(主要是读取输入)。

我认为这可以通过 ActiveX 技术轻松实现,但希望确保 Firefox/Safari/Chrome 浏览器(更不用说 Linux 和 Mac OS)不会落后。

哪些技术可以作为替代方案?

具体来说,是否有一种开放标准技术可以在所有浏览器中使用(有点像“标准浏览器插件技术”),并且可以通过 COM 进行通信?

Java 可以用于通过所有操作系统与 COM 端口进行通信吗? (即使是这样,我也只会将其作为最后的手段,因此要求更多参考)

非常感谢!

I am looking to develop a specialized browser plugin that will interface with the local COM port (mainly read input).

I assume this can be easily achieved with ActiveX technology, but want to make sure Firefox/Safari/Chrome browsers (let alone, Linux & Mac OS) don't get left behind.

Which technologies are available that can serve as an alternative?

In specific - is there an open standard technology which can be used across all browsers (kind of like a "standard browser plugin technology") that can communicate over COM?

Can Java be used to communicate with the COM port through all OS's? (even if so, I would only use it as a last resort, hence asking for more references)

Thanks a bunch!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

坚持沉默 2024-10-05 22:17:20

最接近“标准浏览器插件技术”的是 FireBreathQtBrowserPlugin,它为您提供了 ActiveX 上的抽象层& NPAPI。

不过,您仍然必须为每个操作系统实现 COM 通信代码,或者找到一个跨平台库来执行此操作。

The closest you'll get to "standard browser plugin technology" are FireBreath and QtBrowserPlugin, which give you an abstraction layer over ActiveX & NPAPI.

You'd still have to implement the COM communication code for every OS though or find a cross-platform library to do that.

梦幻的心爱 2024-10-05 22:17:20

回复:java:不幸的是 Sun 放弃了对 Java 通信库的支持。 (嘘!)但是有免费的 rxtx 库和付费的 serialio 库。我使用过 rxtx,它在标准的东西上工作得很好(阻止数据的读/写,以及 rts/cts 位),但是我遇到了 USB 虚拟通信端口消失的问题 - 在这种情况下 rxtx 崩溃了。

re: java: Unfortunately Sun dropped support for the Java comm libraries. (boo!) But there is the free rxtx library, and the paid serialio library. I've used rxtx and it works well w/ standard stuff (blocking read/write of data, and rts/cts bits) but i've had problems with USB virtual comm ports that disappear -- rxtx crashes in this case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文