Skip to content

Instantly share code, notes, and snippets.

@tahder
Forked from tomysmile/gammu-install-osx.md
Created July 9, 2019 11:23
Show Gist options
  • Select an option

  • Save tahder/066e08fcb20621e474503478ba246ed1 to your computer and use it in GitHub Desktop.

Select an option

Save tahder/066e08fcb20621e474503478ba246ed1 to your computer and use it in GitHub Desktop.
Gammu: Install on OSX 10.11 with Wavecom Modem M1306B

Configuring Gammu for Mac OSX 10.11

Requirements

Step by step:

  • Type below command :
$ brew update
$ brew install cmake
$ brew install gammu

after success and no error happen, connect your modem now, and type this command:

$ ls -la /dev
  • find Modem TTY for your modem, or like mine with this command
$ ls -la /dev | grep tty.usb
crw-rw-rw-   1 root       wheel      36,   6 Nov 18 19:51 tty.usbserial
  • The Modem TTY is tty.usbserial you will need this, so remember or copy it on text editor for next step

  • Copy sample configuration:

$ cp /usr/local/share/doc/gammu/examples/config/gammurc ~/.gammurc
  • Modify the configuration, check mine:
# ~/.gammurc

[gammu]
device = /dev/tty.usbserial
connection = at115200

[smsd]
Service = files
LogFile = syslog
InboxPath = /var/spool/sms/inbox/
OutboxPath = /var/spool/sms/outbox/

Sending SMS

  • Confirm your configuration by typing:
$ gammu --identify
  • Finally, try to send SMS:
$ gammu sendsms TEXT [telephone-number] -text "[message]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment