modem
modem copied to clipboard
windows can not open port
hi
modem.open('COM6', function(){
say
E:\node\ussd\node_modules\modem\lib\modem.js:82
modem.port = new sp.SerialPort(device, {
^
TypeError: sp.SerialPort is not a constructor
i use windows 10 and this is my COMs
PS E:\node\ussd\node_modules\serialport\bin> node .\list.js
COM6 USB\VID_2077&PID_A000&MI_00\6&F9B7265&1&0000 W-Card
COM4 USB\VID_2077&PID_A000&MI_01\6&F9B7265&1&0001 W-Card
Clone this one https://github.com/ebundala/modem
modem/lib/modem.js:82
Replace modem.port = new sp.SerialPort(device, options); to modem.port = new sp(device, options);