modem
modem copied to clipboard
Send and receive messages and make ussd queries using your GSM modems
SerialPort don't conatin any sp.SerialPort contructor (module.exports = SerialPort;) so this line: modem.port = new sp.SerialPort(device, options); should be replace with : modem.port = new sp(device, options);
hi, i just installed this and whenever i run this ``` var modem = require('modem').Modem(); modem.open("/dev/sg1", function(err){ if(err){ throw err; }else{ console.log("Modem is ready"); } }) ``` i get this...
Hello @emilsedgh first of all nice work. I have been testing this package and I have found one problem. Text is disappearing from the end of the message. In my...
on: modem.sms() give error : +CMS ERROR: 304 why???
Hi, gsm.js ``` ` function err(message) { console.log('Usage: node send_sms.js /path/to/device xxxxyyzz "Foo Bar"'); process.exit(); } var device = process.argv[2]; var receiver = process.argv[3]; var text = process.argv[4]; if(!device ||...
Modem HUAWEI E1715. SMS sends ok. ``` modem.open('COM5', function(){ modem.on('sms received', function(smsc, sender, time, text) { console.log('sms in'); console.log('sender:'+sender+' text:'+text); }); modem.getMessages(function(messages) { console.log(messages); }); }); setInterval(function(){}, 1000); ``` getMessages...
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...
License
Hi, I see you're not maintaining this package anymore. Can you add a license and maybe transfer ownership?
var device = '/dev/ttyUSB0'; var message = { text : 'Hello', receiver: '+91xxxx', encoding: '7bit' }; modem.open(device, function(){ console.log('OPEN!!'); }); /* - Send SMS */ modem.sms(message, function(err, res){ console.log('SMS', err,...
Hi everyone, excuse my English, I'm french, So I do use this library to send USSD from up to three different sim cards. So I have three gsm modems connected...