Showing posts with label install. Show all posts
Showing posts with label install. Show all posts

Saturday, June 21, 2014

Step by step to easy install gammu on Mac OS X 10.9 Mavericks

Right now, I'm trying to create a SMS Gateway for my friend, who need it for his business. And as usual, I write here is just for a reminder, if sometime I need it again, I can find it easily, so this is how to installing gammu on Mac OS X 10.9 Mavericks.

First of all, you must install your modem driver, I'm using Huawei E 173 here, the driver can be download from huawei website

be sure to install MobilePartner.app and your modem can send sms or make a phone call, that's how we know that our modem is working perfectly.

and the important ingredient is installing CMake before installing gammu, because gammu is build using cmake

gammu is available on Homebrew packages, so you can install it on last version, right now is 1.33.0
Homebrew is already on Mavericks, so you don't need to install it again.

1. disconnect modem
2. open terminal and type this command to install Cmake

$ brew install cmake

3. after it finish, now type this command to install gammu

$ brew install gammu

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

$ ls -la /dev

5. find Modem TTY for your modem, or like mine with this command

$ ls -la /dev | grep HUAWEI

crw-rw-rw-   1 root        wheel      18,  19 Jun 22 01:40 cu.HUAWEIMobile-Diag
crw-rw-rw-   1 root        wheel      18,  17 Jun 22 01:40 cu.HUAWEIMobile-Modem
crw-rw-rw-   1 root        wheel      18,  21 Jun 22 01:40 cu.HUAWEIMobile-Pcui
crw-rw-rw-   1 root        wheel      18,  18 Jun 22 01:40 tty.HUAWEIMobile-Diag
crw-rw-rw-   1 root        wheel      18,  16 Jun 22 01:40 tty.HUAWEIMobile-Modem

crw-rw-rw-   1 root        wheel      18,  20 Jun 22 01:40 tty.HUAWEIMobile-Pcui

6. my Modem TTY is tty.HUAWEIMobile-Modem
you will need this, so remember or copy it on text editor for next step

7. create gammu configuration file

$ touch ~/.gammurc
$ vi ~/.gammurc

8. type A to insert, and type configuration like this

[gammu]
device = /dev/tty.HUAWEIMobile-Modem
connection = at115200

9. change device value to your Modem TTY, and type Esc then :wq to save and quit from vi editor
or you can use nano command instead vi like me :D

10. make sure your configuration is fine

$ cat ~/.gammurc

11. lastly type this command for check that your gammu is ready to fight :)

$ gammu --identify

if you have some info like this, then you can start building your own SMS Gateway Application

Device               : /dev/tty.HUAWEIMobile-Modem
Manufacturer         : Huawei
Model                : E173 (E173)
Firmware             : 11.126.25.00.76
IMEI                 : 8xxxxxxxxxxxxxx6
SIM IMSI             : 5xxxxxxxxxxxxxx3

if you got an error, just comment here, maybe I can help you

thanks for reading