SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Fri Jun 14, 2024 19:13
SMSTools3 Community » Help and support Bottom

I cant get my Alcatel X230D Dongle working

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Dec 2014
Location: Hampshire, United Kingdom
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


Member
Registered:
Jul 2013
Location: United States of America
On my system(s) I identify the ports by running this command:



If your USB dongle is connected you should see something like:



If so, try using /dev/ttyUSB0 as device in smsd.conf
With my Huawei dongles I get these 3 interfaces when I connect one dongle.

Member
Registered:
Dec 2014
Location: Hampshire, United Kingdom
Topic owner
thanks dude , I have done this and corrected the settings but still no joy :-(

Member
Registered:
Jul 2013
Location: United States of America
To identify the correct port you can also try a command like this:

socat - /dev/ttyUSB0
or
socat - /dev/ttyUSB1
socat - /dev/ttyUSB2

and after entering that mode, you can type commands, directly type "ATI" and see what you get, if it is the correct GSM interface then you should see the IMEI number and maybe a bit more text. If it is the wrong interface (like the storage of that dongle) then you might see more random text that updates around once a second and you might notice text "storage" on screen.

To exit that mde (that socat command) try CTRL+C;
Maybe others can correct me if I am wrong, I am not an expert :)

Member
Registered:
Dec 2014
Location: Hampshire, United Kingdom
Topic owner
Thanks for your help guys. I ran out of time on this and added ido2db to icinga which writes the alerts to a db and my firm already has a bit of code which picks critical alerts out of a db and uses www.clockworksms.com to send sms messages.

I may revisit this one day but

thanks again

Paul

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.