Git Product home page Git Product logo

sim900's Introduction

SIM900 Go's package

This package uses a serialport to communicate with the SIM900 GSM Modem.

How to install

  • You'll need Golang v1.3+
  • SIM900 Package uses the serial package in order to communicate with the modem via AT commands, you will need to install both SIM900 and serial packages.
go get github.com/argandas/serial  # installs the serial package
go get github.com/argandas/sim900  # installs the SIM900 package

How to use

  • You'll need an available serial port, SIM900 boards usually works with 5V TTL signals so you can get a USB-to-Serial TTL converter, I recommend you to use the FTDI Cable for this, but you can use any USB-to-Serial adapters there are plenty of them. SIM900: FTDI Cable

  • Connect carefuly your serialport to your SIM900 board. SIM900: Connection diagram

Example code

package main
import "github.com/argandas/sim900"

func main() {
	gsm := sim900.New()
	err := gsm.Setup("COM1", 9600)
	if err != nil {
		panic(err)
	}
	defer gsm.Teardown()
	phoneNumber := "XXXXXXXXXX" // The number to send the SMS
	gsm.SendSMS(phoneNumber, "Hello World!")
}

Reference

  • List of available SIM900 commands can be found here.
  • For more information about available SIM900 methods please check godoc for this package.

Go explore!

License

SIM900 package is MIT-Licensed

sim900's People

Contributors

argandas avatar

Watchers

 avatar

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.