configuration issues with Siemens MC35i
Hi all I've tried searching the archives and found lots of useful info but I'm not having success. I'm running 1.4.0 on Debian Here's part of my kannel.conf: group = core admin-port = 13000 admin-password = blah admin-allow-ip = 127.0.0.1 log-file = /tmp/kannel.log log-level = 1 access-log = access.log # Smsbox related smsbox-port = 13001 box-allow-ip = 127.0.0.1 store-file = kannel.store sms-incoming-queue-limit = 0 # Wapbox related udp-deny-ip = *.*.*.* include = /etc/kannel/modems.conf # SMSC GSM group = smsc smsc = at nokiaphone | ericsson modemtype = siemens_mc35i device = /dev/ttyUSB0 #pin = 2345 validityperiod = 167 ...and here's my modems.conf: group = modems id = siemens_mc35i name = Siemens MC35i detect-string = SIEMENS detect-string2 = MC35i init-string = AT+CNMI=1,2,0,1,1 init-string = AT+CSMS=1 speed = 115200 enable-hwhs = AT\\Q3 need-sleep = true I can communicate with the modem fine using minicom, with hw flowcontrol off, and speed set to 115200. When I fire up bearerbox, this is what I get: #/usr/sbin/bearerbox -v 1 /etc/kannel/kannel.conf INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 WARNING: DLR: using default 'internal' for storage type. INFO: DLR using storage type: internal INFO: Added logfile `/tmp/kannel.log' with level `1'. INFO: Started access logfile `access.log'. INFO: HTTP: Opening server at port 13000. INFO: BOXC: 'smsbox-max-pending' not set, using default (100). INFO: DLR rerouting for smsc id (null) disabled. INFO: AT2[/dev/ttyUSB0]: configuration shows modemtype siemens_mc35i INFO: AT2[/dev/ttyUSB0]: read modem definition for Siemens MC35i INFO: INFO: Kannel bearerbox II version 1.4.0 starting INFO: Loading store file `kannel.store' INFO: Store-file size 1556, starting to unpack INFO: Retrieved 4 messages, non-acknowledged messages: 4 INFO: MAIN: Start-up done, entering mainloop INFO: AT2[/dev/ttyUSB0]: trying to use speed 115200 from modem definition/usr/sbin/bearerbox -v 1 /etc/kannel/kannel.conf 2008-02-07 12:34:48 [6364] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2008-02-07 12:34:48 [6364] [0] WARNING: DLR: using default 'internal' for storage type. 2008-02-07 12:34:48 [6364] [0] INFO: DLR using storage type: internal 2008-02-07 12:34:48 [6364] [0] INFO: Added logfile `/tmp/kannel.log' with level `1'. 2008-02-07 12:34:48 [6364] [0] INFO: Started access logfile `access.log'. 2008-02-07 12:34:48 [6364] [0] INFO: HTTP: Opening server at port 13000. 2008-02-07 12:34:48 [6364] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2008-02-07 12:34:48 [6364] [0] INFO: DLR rerouting for smsc id (null) disabled. 2008-02-07 12:34:48 [6364] [0] INFO: AT2[/dev/ttyUSB0]: configuration shows modemtype siemens_mc35i 2008-02-07 12:34:48 [6364] [0] INFO: AT2[/dev/ttyUSB0]: read modem definition for Siemens MC35i 2008-02-07 12:34:48 [6364] [0] INFO: 2008-02-07 12:34:48 [6364] [0] INFO: Kannel bearerbox II version 1.4.0 starting 2008-02-07 12:34:48 [6364] [0] INFO: Loading store file `kannel.store' 2008-02-07 12:34:48 [6364] [0] INFO: Store-file size 1556, starting to unpack 2008-02-07 12:34:48 [6364] [0] INFO: Retrieved 4 messages, non-acknowledged messages: 4 2008-02-07 12:34:48 [6364] [0] INFO: MAIN: Start-up done, entering mainloop 2008-02-07 12:34:48 [6364] [7] INFO: AT2[/dev/ttyUSB0]: trying to use speed 115200 from modem definition 2008-02-07 12:34:48 [6364] [7] INFO: AT2[/dev/ttyUSB0]: opening device 2008-02-07 12:34:49 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200 2008-02-07 12:35:03 [6364] [7] INFO: AT2[/dev/ttyUSB0]: closing device 2008-02-07 12:35:03 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed in modem definition don't work, will autodetect 2008-02-07 12:35:03 [6364] [7] INFO: AT2[/dev/ttyUSB0]: opening device 2008-02-07 12:35:04 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200 2008-02-07 12:35:18 [6364] [7] INFO: AT2[/dev/ttyUSB0]: closing device 2008-02-07 12:35:18 [6364] [7] INFO: AT2[/dev/ttyUSB0]: opening device 2008-02-07 12:35:19 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 57600 AT2[/dev/ttyUSB0]: opening device INFO: AT2[/dev/ttyUSB0]: speed set to 115200 INFO: AT2[/dev/ttyUSB0]: closing device AT2[/dev/ttyUSB0]: speed in modem definition don't work, will autodetect AT2[/dev/ttyUSB0]: opening device AT2[/dev/ttyUSB0]: speed set to 115200 INFO: AT2[/dev/ttyUSB0]: closing device INFO: AT2[/dev/ttyUSB0]: opening device INFO: AT2[/dev/ttyUSB0]: speed set to 57600 [...] the last few lines keep repeating, with decreasing speeds to 9600, then it starts again at 115200. I'm tearing my hair out here - can someone point out what is obviously a glaring error in my config's above? Many thanks in anticipation Peter Salvage
Re: configuration issues with Siemens MC35i
Hi Tommi My notebook doesn't have a serial port so I'm using a USB to Serial port converter. Regards, Peter Tommi Linna wrote: I think you are not connecting to modem using USB, are you? The modem doesn't have USB port as far as I know. My modem is connected throught serial cable and that information should be used in Debian also. Try setting device = /dev/ttyUSB0 to device = /dev/ttyS0. BTW, I'm having problems with Siemens modem. For some reason it seems to freeze computer totally occasionally (couple of times a week). Any body with Siemens MC35i had similar issues? BR, Tommi Peter Salvage kirjoitti: Hi all I've tried searching the archives and found lots of useful info but I'm not having success. I'm running 1.4.0 on Debian Here's part of my kannel.conf: group = core admin-port = 13000 admin-password = blah admin-allow-ip = 127.0.0.1 log-file = /tmp/kannel.log log-level = 1 access-log = access.log # Smsbox related smsbox-port = 13001 box-allow-ip = 127.0.0.1 store-file = kannel.store sms-incoming-queue-limit = 0 # Wapbox related udp-deny-ip = *.*.*.* include = /etc/kannel/modems.conf # SMSC GSM group = smsc smsc = at nokiaphone | ericsson modemtype = siemens_mc35i device = /dev/ttyUSB0 #pin = 2345 validityperiod = 167 ...and here's my modems.conf: group = modems id = siemens_mc35i name = Siemens MC35i detect-string = SIEMENS detect-string2 = MC35i init-string = AT+CNMI=1,2,0,1,1 init-string = AT+CSMS=1 speed = 115200 enable-hwhs = AT\\Q3 need-sleep = true I can communicate with the modem fine using minicom, with hw flowcontrol off, and speed set to 115200. When I fire up bearerbox, this is what I get: #/usr/sbin/bearerbox -v 1 /etc/kannel/kannel.conf INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 WARNING: DLR: using default 'internal' for storage type. INFO: DLR using storage type: internal INFO: Added logfile `/tmp/kannel.log' with level `1'. INFO: Started access logfile `access.log'. INFO: HTTP: Opening server at port 13000. INFO: BOXC: 'smsbox-max-pending' not set, using default (100). INFO: DLR rerouting for smsc id (null) disabled. INFO: AT2[/dev/ttyUSB0]: configuration shows modemtype siemens_mc35i INFO: AT2[/dev/ttyUSB0]: read modem definition for Siemens MC35i INFO: INFO: Kannel bearerbox II version 1.4.0 starting INFO: Loading store file `kannel.store' INFO: Store-file size 1556, starting to unpack INFO: Retrieved 4 messages, non-acknowledged messages: 4 INFO: MAIN: Start-up done, entering mainloop INFO: AT2[/dev/ttyUSB0]: trying to use speed 115200 from modem definition/usr/sbin/bearerbox -v 1 /etc/kannel/kannel.conf 2008-02-07 12:34:48 [6364] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2008-02-07 12:34:48 [6364] [0] WARNING: DLR: using default 'internal' for storage type. 2008-02-07 12:34:48 [6364] [0] INFO: DLR using storage type: internal 2008-02-07 12:34:48 [6364] [0] INFO: Added logfile `/tmp/kannel.log' with level `1'. 2008-02-07 12:34:48 [6364] [0] INFO: Started access logfile `access.log'. 2008-02-07 12:34:48 [6364] [0] INFO: HTTP: Opening server at port 13000. 2008-02-07 12:34:48 [6364] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2008-02-07 12:34:48 [6364] [0] INFO: DLR rerouting for smsc id (null) disabled. 2008-02-07 12:34:48 [6364] [0] INFO: AT2[/dev/ttyUSB0]: configuration shows modemtype siemens_mc35i 2008-02-07 12:34:48 [6364] [0] INFO: AT2[/dev/ttyUSB0]: read modem definition for Siemens MC35i 2008-02-07 12:34:48 [6364] [0] INFO: 2008-02-07 12:34:48 [6364] [0] INFO: Kannel bearerbox II version 1.4.0 starting 2008-02-07 12:34:48 [6364] [0] INFO: Loading store file `kannel.store' 2008-02-07 12:34:48 [6364] [0] INFO: Store-file size 1556, starting to unpack 2008-02-07 12:34:48 [6364] [0] INFO: Retrieved 4 messages, non-acknowledged messages: 4 2008-02-07 12:34:48 [6364] [0] INFO: MAIN: Start-up done, entering mainloop 2008-02-07 12:34:48 [6364] [7] INFO: AT2[/dev/ttyUSB0]: trying to use speed 115200 from modem definition 2008-02-07 12:34:48 [6364] [7] INFO: AT2[/dev/ttyUSB0]: opening device 2008-02-07 12:34:49 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200 2008-02-07 12:35:03 [6364] [7] INFO: AT2[/dev/ttyUSB0]: closing device 2008-02-07 12:35:03 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed in modem definition don't work, will autodetect 2008-02-07 12:35:03 [6364] [7] INFO: AT2[/dev/ttyUSB0]: opening device 2008-02-07 12:35:04 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200 2008-02-07 12:35:18 [6364] [7] INFO: AT2[/dev/ttyUSB0]: closing device 2008-02-07 12:35:18 [6364] [7] INFO: AT2[/dev/ttyUSB0]: opening device 2008-02-07 12:35:19 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 57600 AT2[/dev/ttyUSB0]: opening device INFO: AT2[/dev/ttyUSB0]: speed set to 115200 INFO: AT2[/dev/ttyUSB0]: closing device AT2[/dev/ttyUSB0]: speed in modem definition don't work, will autodetect AT2[/dev/ttyUSB0]:
Re: configuration issues with Siemens MC35i
My modem config . # SIEMENS MODEM SETUP group = modems id = SIEMENS MC35i name = siemens_ mc35i detect-string = SIEMENS detect-string2 = MC35i init-string = AT+CNMI=1,2,0,1,1 enable-hwhs = AT\\Q3 need-sleep = true and my smsc .. # SMSC CONNECTIONS group = smsc smsc = at modemtype = auto device = /dev/ttyS0 speed = 9600 that works like magic 4 me --- Peter Salvage [EMAIL PROTECTED] wrote: Hi Tommi My notebook doesn't have a serial port so I'm using a USB to Serial port converter. Regards, Peter Tommi Linna wrote: I think you are not connecting to modem using USB, are you? The modem doesn't have USB port as far as I know. My modem is connected throught serial cable and that information should be used in Debian also. Try setting device = /dev/ttyUSB0 to device = /dev/ttyS0. BTW, I'm having problems with Siemens modem. For some reason it seems to freeze computer totally occasionally (couple of times a week). Any body with Siemens MC35i had similar issues? BR, Tommi Peter Salvage kirjoitti: Hi all I've tried searching the archives and found lots of useful info but I'm not having success. I'm running 1.4.0 on Debian Here's part of my kannel.conf: group = core admin-port = 13000 admin-password = blah admin-allow-ip = 127.0.0.1 log-file = /tmp/kannel.log log-level = 1 access-log = access.log # Smsbox related smsbox-port = 13001 box-allow-ip = 127.0.0.1 store-file = kannel.store sms-incoming-queue-limit = 0 # Wapbox related udp-deny-ip = *.*.*.* include = /etc/kannel/modems.conf # SMSC GSM group = smsc smsc = at nokiaphone | ericsson modemtype = siemens_mc35i device = /dev/ttyUSB0 #pin = 2345 validityperiod = 167 ...and here's my modems.conf: group = modems id = siemens_mc35i name = Siemens MC35i detect-string = SIEMENS detect-string2 = MC35i init-string = AT+CNMI=1,2,0,1,1 init-string = AT+CSMS=1 speed = 115200 enable-hwhs = AT\\Q3 need-sleep = true I can communicate with the modem fine using minicom, with hw flowcontrol off, and speed set to 115200. When I fire up bearerbox, this is what I get: #/usr/sbin/bearerbox -v 1 /etc/kannel/kannel.conf INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 WARNING: DLR: using default 'internal' for storage type. INFO: DLR using storage type: internal INFO: Added logfile `/tmp/kannel.log' with level `1'. INFO: Started access logfile `access.log'. INFO: HTTP: Opening server at port 13000. INFO: BOXC: 'smsbox-max-pending' not set, using default (100). INFO: DLR rerouting for smsc id (null) disabled. INFO: AT2[/dev/ttyUSB0]: configuration shows modemtype siemens_mc35i INFO: AT2[/dev/ttyUSB0]: read modem definition for Siemens MC35i INFO: INFO: Kannel bearerbox II version 1.4.0 starting INFO: Loading store file `kannel.store' INFO: Store-file size 1556, starting to unpack INFO: Retrieved 4 messages, non-acknowledged messages: 4 INFO: MAIN: Start-up done, entering mainloop INFO: AT2[/dev/ttyUSB0]: trying to use speed 115200 from modem definition/usr/sbin/bearerbox -v 1 /etc/kannel/kannel.conf 2008-02-07 12:34:48 [6364] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2008-02-07 12:34:48 [6364] [0] WARNING: DLR: using default 'internal' for storage type. 2008-02-07 12:34:48 [6364] [0] INFO: DLR using storage type: internal 2008-02-07 12:34:48 [6364] [0] INFO: Added logfile `/tmp/kannel.log' with level `1'. 2008-02-07 12:34:48 [6364] [0] INFO: Started access logfile `access.log'. 2008-02-07 12:34:48 [6364] [0] INFO: HTTP: Opening server at port 13000. 2008-02-07 12:34:48 [6364] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2008-02-07 12:34:48 [6364] [0] INFO: DLR rerouting for smsc id (null) disabled. 2008-02-07 12:34:48 [6364] [0] INFO: AT2[/dev/ttyUSB0]: configuration shows modemtype siemens_mc35i 2008-02-07 12:34:48 [6364] [0] INFO: AT2[/dev/ttyUSB0]: read modem definition for Siemens MC35i 2008-02-07 12:34:48 [6364] [0] INFO: 2008-02-07 12:34:48 [6364] [0] INFO: Kannel bearerbox II version 1.4.0 starting 2008-02-07 12:34:48 [6364] [0] INFO: Loading store file `kannel.store' 2008-02-07 12:34:48 [6364] [0] INFO: Store-file size 1556, starting to unpack 2008-02-07 12:34:48 [6364] [0] INFO: Retrieved 4 messages, non-acknowledged messages: 4 2008-02-07 12:34:48 [6364] [0] INFO: MAIN: Start-up done, entering mainloop 2008-02-07 12:34:48 [6364] [7] INFO: AT2[/dev/ttyUSB0]: trying to use speed 115200 from modem definition 2008-02-07 12:34:48 [6364] [7] INFO: AT2[/dev/ttyUSB0]: opening device 2008-02-07 12:34:49 [6364] [7] INFO: AT2[/dev/ttyUSB0]: speed set to 115200 2008-02-07 12:35:03 [6364] [7] INFO: AT2[/dev/ttyUSB0]: closing device 2008-02-07 12:35:03 [6364] [7] INFO:
Re: configuration issues with Siemens MC35i
Had a lot of problems setting up a plane MC35 for data/PPP sessions on a real commport. Found we needed the following AT commands setting: ATS18 #Extended error reporting. AT+IPR=0#Autobauding on the PC interface AT\Q3 #Hardware flow control AT+CBST=0,0,1 #Autobauding on the Air interface ATD*99***1# #Dial command We had a lot of PPP authentication OK reports, but it would immediatly fall out. The only dial string that worked was the *99***1# all the others fell out. Suspect that the crucial AT cammands are the CBST and the AT\Q3. Hope this helps. Leo +32 495 503814 In a study, scientists report that drinking beer can be good for your liver. I'm sorry, did I say 'scientists'? I meant Irish people. Message: 1 Date: Thu, 07 Feb 2008 13:19:06 +0200 From: Peter Salvage [EMAIL PROTECTED] Subject: To: users@kannel.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi all I've tried searching the archives and found lots of useful info but I'm not having success. I'm running 1.4.0 on Debian Here's part of my kannel.conf: - This email message was delivered by Psand.net
Re: configuration issues with Siemens MC35i - SOLVED!
Hi all Got it working...my config was fine. The problem was the USB to serial converter; it didn't do HW flow control. The clue was that I couldn't attach to the MC35i using Minicom with HW flow control on, only off. However it appears that Kannel expects HW flow control(?) so I jimmied together a serial cable with pins 1,4 and 6 shorted together, and it worked. Now to play :-) Thanks for all the suggestions and advice, guys! Regards, Peter Leo McManus wrote: Had a lot of problems setting up a plane MC35 for data/PPP sessions on a real commport. Found we needed the following AT commands setting: ATS18 #Extended error reporting. AT+IPR=0#Autobauding on the PC interface AT\Q3 #Hardware flow control AT+CBST=0,0,1 #Autobauding on the Air interface ATD*99***1# #Dial command We had a lot of PPP authentication OK reports, but it would immediatly fall out. The only dial string that worked was the *99***1# all the others fell out. Suspect that the crucial AT cammands are the CBST and the AT\Q3. Hope this helps. Leo +32 495 503814 In a study, scientists report that drinking beer can be good for your liver. I'm sorry, did I say 'scientists'? I meant Irish people. Message: 1 Date: Thu, 07 Feb 2008 13:19:06 +0200 From: Peter Salvage [EMAIL PROTECTED] Subject: To: users@kannel.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi all I've tried searching the archives and found lots of useful info but I'm not having success. I'm running 1.4.0 on Debian Here's part of my kannel.conf: - This email message was delivered by Psand.net