Operating system name and version[centos - Linux version 2.6.32-431.17.1.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Wed May 7 23:32:49 UTC 2014
]:
Version of smsd[smstools.x86_64 3.1.15-3.el6 ]:
Smsd installed from[yum install smstools ]: sources / package repository / from elsewhere...
Name and model of a modem / phone[O2 X230D Dongle]:
Interface[USB]: serial / USB / some adapter...
I cant seem to get my Alcatel X230D Dongle working
This is the first time I have tried this.
I want to send SMS alert messages from my icinga server and have a Alcatel X230D Dongle .
I found this http://www.chriscowley.me.uk/blog/2010/05/04/sms-from-icinga-or-nagios/ which suggested I use smsd
which I installed and set up my cron job and i can see files being moved to the /var/spool/sms/outgoing/ directory .
The next thing was to work out what my device setting should be in my /etc/smsd.conf file, something like device = /dev/ttyUSB0
So I plugged my dongle in and did a lsusb
[root@COAL ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 002 Device 005: ID 1bbb:f017 T & A Mobile Phones Alcatel One Touch L100V / Telekom Speedstick LTE II
so I'm expecting to find a bit which says ttyUSB0 or something similar, but when I dongle
[root@COAL local]# dmesg | tail -20
usb 2-1.5.1: USB disconnect, device number 5
usb 2-1.5.1: new high speed USB device number 11 using ehci_hcd
usb 2-1.5.1: New USB device found, idVendor=1bbb, idProduct=f017
usb 2-1.5.1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
usb 2-1.5.1: Product: HSPA Data Card
usb 2-1.5.1: Manufacturer: USBModem
usb 2-1.5.1: SerialNumber: 1234567890ABCDEF
usb 2-1.5.1: configuration #1 chosen from 1 choice
scsi13 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 13:0:0:0: Direct-Access ALCATEL Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 13:0:0:1: CD-ROM ALCATEL Mass Storage 2.31 PQ: 0 ANSI: 2
sd 13:0:0:0: Attached scsi generic sg1 type 0
sd 13:0:0:0: [sdb] Attached SCSI removable disk
sr0: scsi-1 drive
sr 13:0:0:1: Attached scsi CD-ROM sr0
sr 13:0:0:1: Attached scsi generic sg2 type 5
cdrom: This disc doesn't have any tracks I recognize!
no such info.
Then I read that I had to change the mode of my dongle
(http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=3&t=1411)
and downloaded usb_modeswitch and set it up as best I can work it out
I added this to the correct file
########################################################
# Alcatel X230D
#
# Contributor: Javier Llorente
DefaultVendor= 0x1bbb
DefaultProduct=0xf017
TargetVendor= 0x1bbb
TargetProduct= 0x0017
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
and ran the command :
usb_modeswitch -W -v 0x1bbb -p 0xf017 -V 0x1bbb -P 0x0017 -M 55534243123456788000000080000606f50402527000000000000000000000
and then got
[root@COAL local]# dmesg | tail -20
sr0: scsi-1 drive
sr 11:0:0:1: Attached scsi CD-ROM sr0
sr 11:0:0:1: Attached scsi generic sg2 type 5
sd 11:0:0:0: [sdb] Attached SCSI removable disk
cdrom: This disc doesn't have any tracks I recognize!
usb 2-1.5.1: USB disconnect, device number 5
usb 2-1.5.1: new high speed USB device number 10 using ehci_hcd
usb 2-1.5.1: New USB device found, idVendor=1bbb, idProduct=0017
usb 2-1.5.1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
usb 2-1.5.1: Product: HSPA Data Card
usb 2-1.5.1: Manufacturer: USBModem
usb 2-1.5.1: SerialNumber: 1234567890ABCDEF
usb 2-1.5.1: configuration #1 chosen from 1 choice
scsi12 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 12:0:0:0: Direct-Access ALCATEL Mass Storage 2.31 PQ: 0 ANSI: 2
sd 12:0:0:0: Attached scsi generic sg1 type 0
sd 12:0:0:0: [sdb] Attached SCSI removable disk
[root@COAL local]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 002 Device 05: ID 1bbb:0017 T & A Mobile Phones
so the device changed to 0017 , but I still do not see something like ttyUSB0 that all the guides I find tell me to use .
and still sms not working
I did change the device = /dev/bus/usb/002/005
in the /etc/smsd.conf file but this made no difference .
I tried loading and using minicom to see if that can help but it just sits there saying
CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.3 | VT102 | Offline
and then
Device /dev/bus/usb/002/005 lock failed: Operation not permitted.
Any help will be really appreciated and I will eat some chocolate on your behalf
thanks