SERIALITY()插件安装在firefox或chrome上

SERIALITY() plugin installation on firefox or chrome

本文关键字:firefox chrome 安装 插件 SERIALITY      更新时间:2023-09-26

请帮助我了解如何安装串行插件(www.zambetti.com/projects/serializy/‎)在Chrome或Firefox中。

我想从网页客户端的COM端口读取。

看看谷歌代码网站,这个网站包含可以用来安装Seriality.plugin文件的DMG文件。

https://code.google.com/p/seriality/

您还可以在网站上看到示例源代码,其中显示了使用插件的javascript,下面是网站上显示的一个片段,当加载此HTML文件时,该片段以9600的波特率将"Hello World"打印到系统上的第一个端口。

<html>
<head>
  <script type="text/javascript">  
    function setup()
    {
      var serial = (document.getElementById("seriality")).Seriality();
      serial.begin(serial.ports[0], 9600);
      serial.write("Hello World");
    }
  </script>
</head>
<body onload="setup();">
  <object type="application/Seriality" id="seriality" width="0" height="0"></object>
</body>
</html>