Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows can not open port #40

Open
parsibox opened this issue May 7, 2018 · 2 comments
Open

windows can not open port #40

parsibox opened this issue May 7, 2018 · 2 comments

Comments

@parsibox
Copy link

parsibox commented May 7, 2018

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
@sonyshovo
Copy link

Clone this one https://github.com/ebundala/modem

@websharik
Copy link

modem/lib/modem.js:82
Replace modem.port = new sp.SerialPort(device, options); to modem.port = new sp(device, options);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants