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.
$ npm install iridium-sbd
const createIridium = require('iridium-sbd');
const iridium = createIridium();
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("Iridium initialized");
iridium.sendCompressedMessage("Hello world!", function(err,momsn){
console.log("Message Sent!");
});
});
iridium.on('ringalert', function() {
console.log("New incoming message event!");
iridium.mailboxCheck();
});
iridium.on('newmessage', function(message, queued) {
console.log("Received new message ", message);
});
iridium.on('debug',function(log){
console.log('>>> '+log);
});
- Razvan Dragomirescu's original Iridium SDB node.js library. http://www.veri.fi/iridiumsbd.tar.gz
- Rock Seven - RockBlock (Iridium 9602). https://www.rock7.com/