node-serialport 是一个 Node.js 的包,用来对串口数据进行读写操作。基本示例代码:var SerialPort = require("serialport").SerialPort var serialPort = new SerialPort("/dev/tty-usbserial1", {   baudrate: 57600 }, false); // this is the openImmediately flag [default is true] serialPort.open(function (error) {   if ( error ) {     console.log('failed to open: ' error);   } else {     console.log('open');     serialPort.on('data', function(data) {       console.log('data received: '   data);     });     serialPort.write("ls\n", function(err, results) {       console.log('err '   err);       console.log('results '   results);     });   } });罗列所有串口:var serialPort = require("serialport"); serialPort.list(function (err, ports) {   ports.forEach(function(port) {     console.log(port.comName);     console.log(port.pnpId);     console.log(port.manufacturer);   }); });串口配置:baudRatedataBitsstopBitsparityrtsctsxonxoffxanyflowControlbufferSizeparserencodingdataCallbackdisconnectedCallbackplatformOptions - sets platform specific options, see below.目前已有很多项目在使用这个包进行串口处理:Johnny-Five - Firmata based Arduino Framework.Cylon.js - JavaScript Robotics, By Your Command.node-l8smartlight (source) A node library to control the L8 Smartlight via Bluetooth or USB portfirmata Talk natively to Arduino using the firmata protocol.tmpad source - a DIY midi pad using infrared, arduino, and nodejs. Videoduino - A higher level framework for working with Arduinos in node.js.Arduino Drinking Game Extravaganza - AKA "The Russian" a hexidecimal drinking game for geeks by Uxebu presented at JSConf EU 2011.Arduino controlling popcorn.js - Controlling a popcorn.js video with an Arduino kit.Robotic JavaScript - The first live presentation of the node-serialport code set as presented at JSConf EU 2010.devicestack - This module helps you to represent a device and its protocol.reflecta A communication protocol that combines Arduino Libraries and NodeJS into an integrated system.rc4pt-node - Control Popcorntime with an
2021-09-13 10:29:17 178KB 开源项目
1
地磅串口通信,实时读取地磅数据,优化了结束读取的时候会出现卡死的问题。该代码不会卡死
2021-09-10 13:56:22 890KB SerialPort 地磅读取数据 串口通信
1
源代码的节选,有编程的注释,利用SerialPort进行读取串口操作
2021-09-10 13:40:54 4KB vb.net SerialPort
1
串口通信,电子称数据读取。程序详细易懂,可以扩展到其他应用。 串口通信,电子称数据读取。程序详细易懂,可以扩展到其他应用。
2021-09-10 10:01:15 28KB C# SerialPort 电子称 c#接收电子秤
1
Unity 中适用于 Android、Linux、Mac OS 和 Windows 的强大的串行端口实用程序。 这是 Unity 的扩展插件,可为开发人员提供易于使用的强大计算机通信解决方案。
2021-09-09 18:06:17 3.34MB Unity SerialPort
1
SerialPort事件触发接收信息,实时传送获取信息
1
使用qt制作的串口工具源码
2021-09-08 17:02:28 78KB qt qt5 串口通信
1
含有获取串口列表的源代码和调用方式,适用于VC++ 和MFC开发,可以检查出虚拟串口资源,很强大
2021-09-07 17:16:14 6KB 串口 SerialPort List
1
非常全面的通讯例子其中功能包括了高低位、进制转换、界面换肤功能
2021-09-02 16:47:26 7.24MB c# serialport 串口
1
C#编写来电显示、自动应答和录音涉及的一些问题 以下内容涉及:Data Modem;Voice Modem;AT Command;Tapi; 1.来电显示 在C#中使用serialport类和Modem的Com进行通信来获得来电显示; 需要使用AT Command:"AT+VCID=1"; 代码文件: 来电显示.rar 2.录音和来电显示(Voice Modem) 在使用tapi时发现有这个问题,在第三个电话后tapi的事件不再起作用; 测试了一个国外程序高手整合的控件,自动应答没有问题,录音有两个问题: 不能录制前五秒; 录音长度要靠异常来控制; 代码不完整,没有提供关键代码(http://www.julmar.com/) 代码文件: 3.电话接听 如果你的Modem 不是Voice Modem 是不能进行接打的; 很多Voice Modem 中的Sound是half-duplex (半双工),直接使用Tapi接听电话时能听到对方的声音,但是对方会听不到自己的声音,但是 vc编写的程序就没有这个问题. 代码文件:phone.rar(vc编写的,关键代码文件作者没有不提供) 4.能直接使用的软件 国人程序员用delphi编写的程序,来电、自动应答和录音都好用. 代码文件:(没有源代码,需要的和请和此程序作者联系...)
2021-08-28 15:13:13 8.21MB C# serialport ModemCommand
1