Operating system name and version: debian
Version of smsd: 3.1.11
Smsd installed from: sources
Name and model of a modem / phone: Huawei E169
Interface: ttyUSB0

Hi

i want to send sms from nagios.
First if i attach the stick to usb the usb_modeswitch attaches three devices to ttyUSB0, ttyUSB1 and ttyUSB2.
[]
Jul 13 11:56:08 nagios kernel: [ 1415.605422] option 2-3:1.0: GSM modem (1-port) converter detected
Jul 13 11:56:08 nagios kernel: [ 1415.605581] usb 2-3: GSM modem (1-port) converter now attached to ttyUSB0...
[]
After sending one sms the devices where disconnected
[]
Jul 13 11:43:34 nagios nagios: HOST NOTIFICATION: sms_edgar;huesx2;CUSTOM (UP);notify-host-by-sms;PING OK - Packet
loss = 0%, RTA = 0.19 ms;giese@NORKA.LOCAL;test
Jul 13 11:43:47 nagios kernel: [ 675.352232] hub 2-0:1.0: port 3 disabled by hub (EMI?), re-enabling...
Jul 13 11:43:47 nagios kernel: [ 675.352365] usb 2-3: USB disconnect, address 2
Jul 13 11:43:47 nagios kernel: [ 675.352535] option: option_instat_callback: error -108
Jul 13 11:43:47 nagios kernel: [ 675.352853] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from
ttyUSB0
[]
and then reconnect to ttyUSB1
[]
Jul 13 11:43:48 nagios kernel: [ 675.868022] usb 2-3: new high speed USB device using ehci_hcd and address 4
Jul 13 11:43:48 nagios kernel: [ 676.002784] usb 2-3: New USB device found, idVendor=12d1, idProduct=1001
Jul 13 11:43:48 nagios kernel: [ 676.002790] usb 2-3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Jul 13 11:43:48 nagios kernel: [ 676.002795] usb 2-3: Product: HUAWEI Mobile
Jul 13 11:43:48 nagios kernel: [ 676.002798] usb 2-3: Manufacturer: HUAWEI Technology
Jul 13 11:43:48 nagios kernel: [ 676.002913] usb 2-3: configuration #1 chosen from 1 choice
Jul 13 11:43:48 nagios kernel: [ 676.004963] option 2-3:1.0: GSM modem (1-port) converter detected
Jul 13 11:43:48 nagios kernel: [ 676.005180] usb 2-3: GSM modem (1-port) converter now attached to ttyUSB1
[]

looking in the smsd.log shows this
[]
2012-07-13 11:43:42,5, smsd: Moved file /var/spool/sms/outgoing/send_f0WWPq to /var/spool/sms/checked
2012-07-13 11:43:42,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/send_f0WWPq
2012-07-13 11:43:42,6, GSM1: Sending SMS from to 4917xxxxxxxxxxx
2012-07-13 11:43:42,6, GSM1: Checking if modem is ready
2012-07-13 11:43:43,7, GSM1: -> AT
2012-07-13 11:43:43,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:43,7, GSM1: <- OK
2012-07-13 11:43:43,6, GSM1: Pre-initializing modem
2012-07-13 11:43:43,7, GSM1: -> ATE0+CMEE=1
2012-07-13 11:43:43,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:43,7, GSM1: <- OK
2012-07-13 11:43:43,6, GSM1: Checking if modem needs PIN
2012-07-13 11:43:44,7, GSM1: -> AT+CPIN?
2012-07-13 11:43:44,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:44,7, GSM1: <- +CPIN: READY OK
2012-07-13 11:43:44,6, GSM1: Initializing modem
2012-07-13 11:43:44,7, GSM1: -> AT^CURC=0
2012-07-13 11:43:44,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:44,7, GSM1: <- OK
2012-07-13 11:43:45,7, GSM1: -> AT+CSQ
2012-07-13 11:43:45,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:45,7, GSM1: <- +CSQ: 26,99 OK
2012-07-13 11:43:45,6, GSM1: Signal Strength Indicator: (26,99) -61 dBm, Bit Error Rate: not known or not detectable
2012-07-13 11:43:45,6, GSM1: Checking if Modem is registered to the network
2012-07-13 11:43:45,7, GSM1: -> AT+CREG?
2012-07-13 11:43:45,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:45,7, GSM1: <- +CREG: 0,1 OK
2012-07-13 11:43:45,6, GSM1: Modem is registered to the network
2012-07-13 11:43:45,6, GSM1: Selecting PDU mode
2012-07-13 11:43:46,7, GSM1: -> AT+CMGF=0
2012-07-13 11:43:46,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:46,7, GSM1: <- OK
2012-07-13 11:43:46,6, GSM1: Changing SMSC
2012-07-13 11:43:46,7, GSM1: -> AT+CSCA="+491710760000"
2012-07-13 11:43:46,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:47,7, GSM1: <- OK
2012-07-13 11:43:47,7, GSM1: -> AT+CMGS=41
2012-07-13 11:43:47,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:43:47,7, GSM1: <- >
2012-07-13 11:43:47,7, GSM1: -> 0011000C919471907191880000FF1EC8F79C0E425641C529162403A5E7A02A14041080926EF35B071200^Z
2012-07-13 11:43:47,7, GSM1: Command is sent, waiting for the answer
2012-07-13 11:44:47,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 1.
2012-07-13 11:44:47,7, GSM1: <-
2012-07-13 11:44:47,3, GSM1: The modem did not answer (expected OK).
2012-07-13 11:44:47,5, GSM1: Waiting 10 sec. before retrying
2012-07-13 11:44:57,6, GSM1: Checking if modem is ready
2012-07-13 11:44:58,7, GSM1: -> AT
2012-07-13 11:44:58,3, GSM1: write_to_modem: error 5: Input/output error
2012-07-13 11:45:08,7, GSM1: -> ^Z
...
2012-07-13 11:46:29,3, GSM1: write_to_modem: error 5: Input/output error
2012-07-13 11:46:40,3, GSM1: Couldn't open serial port /dev/ttyUSB0, error: No such file or directory, waiting 30 sec.
2012-07-13 11:47:40,3, GSM1: Cannot open serial port /dev/ttyUSB0, error: No such file or directory
2012-07-13 11:47:40,2, GSM1: Modem handler 0 terminated. PID: 6486, was started 12-07-13 11:42:21.

[]

Then it ends, no sms where send till i reconnect the stick and restart the smsd.

My smsd.conf looks like
[]
[GSM1]
init = AT^CURC=0
device = /dev/ttyUSB0
incoming = yes
pin = 6214
#signal_quality_ber_ignore = yes
#smsc=491710760000
[]

Please help...

With this sim-card, another modem (siemens-handy) and another smsd-version it works.