spn

sms-pdu-node

a node module for conversion of a text message into PDU, ready for sending with a 3g modem!

Showing:

Popularity

Downloads/wk

7

GitHub Stars

8

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

sms-pdu-node

This tool is very useful for conversion of a text into a PDU, ready for sending an SMS through a 3g modem.

Thanks to..

Before all, I want to thank Swen-Peter Ekkebus and Andrew Alexander for the initial work they published on this web site.

I've cleaned and refactored the code, to be able to work into a nodejs application. I'll work on bug fixes and improvements in future releases.

How to use.

You should be able to run node test.js and view a working example.

Example

npm install sms-pdu-node
var pdu = require('sms-pdu-node');

console.log(pdu('ciao', '393420011223')); // defaults to 8 bit

console.log(pdu('ciao', '393420011223', null. 7)); // 7 bit!

How to send a PDU message

screen /dev/ttyUSB0 9600
AT+CMGS=XX   # XX is the lenght of the PDU message we are sending. Take output obtained from this module!
> PASTE PDU output and press ^Z

This should output something like this:

+CMGS: 16

OK

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial