Coder Social home page Coder Social logo

smsgateway's Introduction

SMSGateway

Building Java Dekstop App for SMS gateway using GSM modem

Getting Started

These app send bulk SMS using GSM Modem (tested using Wavecom and Syscom MP8P) in this project there is 3 main class:

  • SMSPanel (the Main Interface)
  • SMSSender (class that contain methods for send SMS)
  • SMSCommand (class that contain AT-COMMANDs for send command to modem)

Code

this app built using RXTXcomm lib to connect java app with GSM Modem (lib included in project). first, it will identified all communication port, then open selected port the serial port will receive command (AT COMMAND) via OutputStream and InputStream

get all communication port using this code

portList = CommPortIdentifier.getPortIdentifiers();

set modem baud rate, databits, stopbits, and parity using this code

serialPort.setSerialPortParams(115200,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);

to send single SMS, use this simple raw AT COMMAND

AT
AT+CMGF=1
AT+CMGS="+31638740161" //replace with recipient number

if you using netbeans, chang run setting by right click on project -> properties -> Run. in VM Options add this -Djava.library.path=/usr/lib/jni then click OK

if you can't detect port then the port might be not granted permission, use this command in terminal

sudo chmod 666 /dev/ttyUSB0

or change /dev/ttyUSB0 with your connected port

Useful Tutorial

Built With

  • IDE - Netbeans 8.2
  • Operating System - Ubuntu

Authors

  • Marchellin Antonia

Screenshot

  • panel to send sms


* panel to check inbox


* panel to check outbox


smsgateway's People

Contributors

marchellinantonia avatar

Stargazers

Bruno Santiago avatar  avatar  avatar

Watchers

 avatar

Forkers

kite29 gav22

smsgateway's Issues

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.