如何使用 Firefox 中的 xpcom 从串行端口读取数据?

发布于 2024-09-15 13:56:13 字数 373 浏览 2 评论 0原文

我想使用 xpcom 将 Mozilla Firefox 连接到串行端口。最终结果应该是一个可以安装在各种环境(跨平台 Windows/Linux 和 Firefox 3.*)上的 xpi 插件。我应该从哪里开始?

我在这里找到了一个例子: http://forums .mozillazine.org/viewtopic.php?f=19&t=1083965&start=0 ,但我认为该代码只能在 Linux 上运行...我可以在 Windows 中做类似的事情吗?

I want to use xpcom to connect Mozilla Firefox to a serial port. The final result should be an xpi addon that can be installed on various environments (cross-platform Windows/Linux with Firefox 3.*). Where should I start?

I have found an example here: http://forums.mozillazine.org/viewtopic.php?f=19&t=1083965&start=0 , but I think that code will only work on Linux... Can I do something similar in Windows?

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

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

发布评论

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

评论(1

烟织青萝梦 2024-09-22 13:56:13

XPCOM 不适用于串行端口通信。据我所知,它是 MS COM 的任何接口。

请稍微研究一下您的问题。

XPCOM is not for serial port communication. From what I can see, it is any interface to MS COM.

Please research your questions a little.

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