Git Product home page Git Product logo

sms-pdu-node's Introduction

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

sms-pdu-node's People

Contributors

brugnara avatar

Stargazers

Randolph Ledesma avatar Alex Hodson avatar James Sconfitto avatar Jeff Le avatar Abdelhadi Matarib avatar John-Henry Liberty avatar Jose Andradez avatar

Watchers

James Cloos avatar Andrew Alexander avatar  avatar Jose Andradez avatar

sms-pdu-node's Issues

text to PDU works great, what about PDU to text?

hi, it works really great for sending converting text to PDU but what about the other way around?
I want to convert the PDU received into text. do you know an effective module I can use for that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.