socket.io-serailportを用いれば、あなたは容易にCV-Iコマンドをあなたのリグに送ることができます。
var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); var SerialPort = require('serialport'); var serial = new SerialPort('/dev/ttyUSB0',{ baudrate:19200 }); //send CW message, "CQ de JH1OOD" const buf1 = new Buffer('fefe80e0174351204445204a48314f4f44fd', 'hex'); http.listen(3000,function(){ console.log('now listening to the port 3000..'); }); serial.on('open',function(){ console.log('serial port /dev/ttyUSB0 is opened.'); serial.write(buf1); }); serial.on('data',function(data){ console.log(data); });