1. apt-get install gammu
2. Detecting mobile
Unplug the mobile from usb and run 'lsusb'. You would get something like this
Bus 002 Device 006: ID 413c:8162 Dell Computer Corp.
Bus 002 Device 005: ID 413c:8161 Dell Computer Corp.
Bus 002 Device 004: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 002 Device 003: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
3. Plugin the mobile on USB and run again 'lsusb'
Bus 002 Device 006: ID 413c:8162 Dell Computer Corp.
Bus 002 Device 005: ID 413c:8161 Dell Computer Corp.
Bus 002 Device 004: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 002 Device 003: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 024: ID 0fce:d053 Sony Ericsson Mobile Communications AB
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Load the driver
>modprobe usbserial vendor=0x0fce product=0xd053
>dmesg
[ 4670.288435] usb 1-1.2: new full speed USB device using ehci_hcd and address 24
[ 4670.389320] cdc_acm 1-1.2:1.1: ttyACM0: USB ACM device
[ 4670.391582] cdc_acm 1-1.2:1.3: ttyACM1: USB ACM device
[ 4670.395248] cdc_wdm 1-1.2:1.7: cdc-wdm0: USB WDM device
ttyACM0 would be the connected port
4. Configure gammu
>gammu-config
Port : /dev/ACM0
Connection : at19200
LogFile : gammulog
Save it
5. Check it
>gammu --identify
You should get som
Device : /dev/ttyACM0
Manufacturer : Sony Ericsson
Model : W300i/W300c (AAF-1052031-BV)
Firmware : xxxxxxxxx
IMEI : xxxxxxxxxx
Product code : xxxxxxxxxxxx
SIM IMSI : xxxxxxxxxx
6. Send your first message
>gammu sendsms TEXT 9995960189 -text "Thanks Biju"
If you want break, press Ctrl+C...
Sending SMS 1/1....waiting for network answer..OK, message reference=0
Enjoy!!!
Installing and Configuring GAMMU on Ubuntu
Posted by
Biju
at
12:27 PM
Labels: gammu on ubuntu
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment