Skip to content

Instantly share code, notes, and snippets.

@tomysmile
Last active January 14, 2024 03:24
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save tomysmile/49ed4071898e14e368aa to your computer and use it in GitHub Desktop.
Save tomysmile/49ed4071898e14e368aa 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