node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

iridium-sbd

Node.js library for sending and receiving Iridium SBD (Short Burst Data).

Created for using with RockBlock modems but should work with other Iridium 9602 modems.

Installation

$ npm install iridium-sbd

Usage

var iridium = require('iridium-sbd');
 
iridium.open({
  debug: 1, //turn debugging on 
  port: "/dev/ttyUSB0",
  flowControl: true //set to false to disable flowControl on the SBD for 3-wire UART setups  
});
 
iridium.on('initialized', function() {
  console.log(">> [SBD] IRIDIUM INITIALIZED");
 
  iridium.sendCompressedMessage("Hello world!", function(err,momsn){
    console.log("Message Sent!");
  });
  
});
 
iridium.on('ringalert', function() {
  console.log(">> [SBD] RING ALERT");
});
 
iridium.on('newmessage', function(message, queued) {
  console.log("[SBD] Received new message ", message);
});
 
iridium.on('debug',function(log){
  console.log('>>> '+log);
});
 
 

Credits