<small id='lXGKG'></small><noframes id='lXGKG'>

      1. <tfoot id='lXGKG'></tfoot>
        <i id='lXGKG'><tr id='lXGKG'><dt id='lXGKG'><q id='lXGKG'><span id='lXGKG'><b id='lXGKG'><form id='lXGKG'><ins id='lXGKG'></ins><ul id='lXGKG'></ul><sub id='lXGKG'></sub></form><legend id='lXGKG'></legend><bdo id='lXGKG'><pre id='lXGKG'><center id='lXGKG'></center></pre></bdo></b><th id='lXGKG'></th></span></q></dt></tr></i><div id='lXGKG'><tfoot id='lXGKG'></tfoot><dl id='lXGKG'><fieldset id='lXGKG'></fieldset></dl></div>

        <legend id='lXGKG'><style id='lXGKG'><dir id='lXGKG'><q id='lXGKG'></q></dir></style></legend>
          <bdo id='lXGKG'></bdo><ul id='lXGKG'></ul>

        来自 JavaScript 的串行通信?

        Serial communication from JavaScript?(来自 JavaScript 的串行通信?)

            <bdo id='znaWQ'></bdo><ul id='znaWQ'></ul>
              <tfoot id='znaWQ'></tfoot>
              <i id='znaWQ'><tr id='znaWQ'><dt id='znaWQ'><q id='znaWQ'><span id='znaWQ'><b id='znaWQ'><form id='znaWQ'><ins id='znaWQ'></ins><ul id='znaWQ'></ul><sub id='znaWQ'></sub></form><legend id='znaWQ'></legend><bdo id='znaWQ'><pre id='znaWQ'><center id='znaWQ'></center></pre></bdo></b><th id='znaWQ'></th></span></q></dt></tr></i><div id='znaWQ'><tfoot id='znaWQ'></tfoot><dl id='znaWQ'><fieldset id='znaWQ'></fieldset></dl></div>
            • <legend id='znaWQ'><style id='znaWQ'><dir id='znaWQ'><q id='znaWQ'></q></dir></style></legend>
                <tbody id='znaWQ'></tbody>

                • <small id='znaWQ'></small><noframes id='znaWQ'>

                • 本文介绍了来自 JavaScript 的串行通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以通过 JavaScript 通过机器的串行端口进行通信?

                  Is it possible to communicate over a machine's serial port through JavaScript?

                  我必须编写一个短程序,通过具有 GUI 且跨平台兼容的串行端口向微控制器发送数据,我真的不想使用 Java 的 Swing.

                  I have to write a short program that sends data to a microcontroller over the serial port that has a GUI and is cross-platform compatible, and I really don't want to use Java's Swing.

                  推荐答案

                  JavaScript 本身没有任何内置功能可以让您访问串行端口.但是,各种 JavaScript 引擎(v8、rhino 等)允许您编写自己的自定义原生对象.

                  JavaScript itself doesn't have any built in functionality to allow you to access the serial port. However, various JavaScript engines (v8, rhino, etc) allow you to write your own custom native objects.

                  您可能想查看 node.js,这是一个用于 v8 的 JavaScript 库,专注于编写服务器端代码(而不是 Web 浏览器客户端代码).似乎有人已经为此编写了一个串口包:

                  You might want to check out node.js, which is a JavaScript library for v8 that's focused on writing server-side code (rather than web browser client code). It seems that someone's already written a serialport package for that:

                  https://github.com/voodootikigod/node-serialport

                  这篇关于来自 JavaScript 的串行通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                  Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                  SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                  Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)
                  Azure Functions - Import Custom Node Module(Azure Functions - 导入自定义节点模块)

                  <i id='OzgRL'><tr id='OzgRL'><dt id='OzgRL'><q id='OzgRL'><span id='OzgRL'><b id='OzgRL'><form id='OzgRL'><ins id='OzgRL'></ins><ul id='OzgRL'></ul><sub id='OzgRL'></sub></form><legend id='OzgRL'></legend><bdo id='OzgRL'><pre id='OzgRL'><center id='OzgRL'></center></pre></bdo></b><th id='OzgRL'></th></span></q></dt></tr></i><div id='OzgRL'><tfoot id='OzgRL'></tfoot><dl id='OzgRL'><fieldset id='OzgRL'></fieldset></dl></div>
                    <tbody id='OzgRL'></tbody>
                  • <legend id='OzgRL'><style id='OzgRL'><dir id='OzgRL'><q id='OzgRL'></q></dir></style></legend>

                      • <bdo id='OzgRL'></bdo><ul id='OzgRL'></ul>
                          <tfoot id='OzgRL'></tfoot>

                          <small id='OzgRL'></small><noframes id='OzgRL'>