Hi,
I experience some errors when I try to run my modems. I use Siemens
MC35i (connected via USB and USB2Serial converters).
In my kannel.conf I use the following definitions that I gathered from
here: http://www.mail-archive.com/[email protected]/msg00929.html
#######snip#
group = modems
id = siemens_mc35
name = "Siemens MC35"
detect-string = "SIEMENS"
detect-string2 = "MC35"
init-string = "AT+CNMI=1,2,0,0,1"
speed = 57600
enable-hwhs = "AT\\Q3"
need-sleep = true # uncomment this line if needed
#######/snip#
Well, the device seems to be properly opened and smsbox connects. In the
moment I try to send a SMS using http-sendsms, bearerbox throws errors:
#######snip#
2006-02-16 18:53:10 [7596] [6] ERROR: AT2[GSM2]: Error occurs: ERROR
(error number not known to us. ask google and add it.)
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: send command status: -1
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CMGS=26^M
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- >
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: send command status: 1
#######/snip#
Also, the modems sometimes sends SMS without errors, sometimes in cannot
even be opened properly. But I think it cannot be that much in the
config - but it is not very reliable.
In the link above there was additionally written:
"It's quite the same for TC35 (I don't know if need_sleep needs to be
true or
can be set to false). Notice that the "AT+CNMI=1,2,0,0,1" string works
surely in phase2+ compatible mode (e.g., the "AT+CSMS=1" string is sent to
the modem by kannel). I don't know whether it works in phase2 mode (e.g.,
"AT+CSMS=0"). Up to you to try.
Cheers,
Pierluigi."
But I don't know what this means (on which parameter I can tune). I
tried this with kannel 1.2.0, 1.2.1 and 1.4.0 on Ubuntu 5.10 Hoary.
Can someone point me to the right direction?
Greetz,
Lars-Hendrik
PS: Here a full snippet from the bearerbox.log:
#######snip#
2006-02-16 18:50:43 [7596] [0] INFO: SSL not supported, no SSL
initialization done.
2006-02-16 18:50:43 [7596] [0] INFO: HTTP: Opening server at port 13010.
2006-02-16 18:50:43 [7596] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2006-02-16 18:50:43 [7596] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2006-02-16 18:50:43 [7596] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2006-02-16 18:50:43 [7596] [0] DEBUG: starting smsbox connection module
2006-02-16 18:50:43 [7596] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2006-02-16 18:50:43 [7596] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
2006-02-16 18:50:43 [7596] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
2006-02-16 18:50:43 [7596] [0] INFO: DLR rerouting for smsc id <GSM2>
disabled.
2006-02-16 18:50:43 [7596] [0] INFO: AT2[GSM2]: configuration shows
modemtype <siemens_mc35>
2006-02-16 18:50:43 [7596] [0] DEBUG: AT2[GSM2]: Reading modem
definitions from </home/www/spotnik/conf/modems/gsm2.conf>
2006-02-16 18:50:43 [7596] [0] DEBUG: AT2[GSM2]: Found <1> modems in config
2006-02-16 18:50:43 [7596] [0] INFO: AT2[GSM2]: read modem definition
for <Siemens MC35>
2006-02-16 18:50:43 [7596] [0] DEBUG: Started thread 6
(gw/smsc/smsc_at.c:at2_device_thread)
2006-02-16 18:50:43 [7596] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2006-02-16 18:50:43 [7596] [0] INFO:
----------------------------------------
2006-02-16 18:50:43 [7596] [0] INFO: Kannel bearerbox II version 1.4.0
starting
2006-02-16 18:50:43 [7596] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 7596.
2006-02-16 18:50:43 [7596] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps to pid 7596.
2006-02-16 18:50:43 [7596] [3] DEBUG: Thread 3
(gw/bb_http.c:httpadmin_run) maps to pid 7596.
2006-02-16 18:50:43 [7596] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 7596.
2006-02-16 18:50:43 [7596] [5] DEBUG: Thread 5
(gw/bb_boxc.c:smsboxc_run) maps to pid 7596.
2006-02-16 18:50:43 [7596] [7] DEBUG: Thread 7
(gw/bb_smscconn.c:sms_router) maps to pid 7596.
2006-02-16 18:50:43 [7596] [7] DEBUG: sms_router: time to sleep
2006-02-16 18:50:43 [7596] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 7596.
2006-02-16 18:50:43 [7596] [6] INFO: AT2[GSM2]: trying to use speed
<57600> from modem definition
2006-02-16 18:50:43 [7596] [6] INFO: AT2[GSM2]: opening device
2006-02-16 18:50:43 [7596] [0] INFO: MAIN: Start-up done, entering mainloop
2006-02-16 18:50:43 [7596] [0] DEBUG: AT2[GSM2]: start called
2006-02-16 18:50:43 [7596] [7] DEBUG: sms_router: list_len = 0
2006-02-16 18:50:43 [7596] [6] DEBUG: AT2[GSM2]: device opened
2006-02-16 18:50:43 [7596] [6] DEBUG: AT2[GSM2]: device opened
2006-02-16 18:50:43 [7596] [6] INFO: AT2[GSM2]: speed set to 57600
2006-02-16 18:50:43 [7596] [6] DEBUG: AT2[GSM2]: --> ^M
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: --> AT^M
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:45 [7596] [6] INFO: AT2[GSM2]: closing device
2006-02-16 18:50:45 [7596] [6] INFO: AT2[GSM2]: speed is 57600
2006-02-16 18:50:45 [7596] [6] INFO: AT2[GSM2]: opening device
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: device opened
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: device opened
2006-02-16 18:50:45 [7596] [6] INFO: AT2[GSM2]: init device
2006-02-16 18:50:45 [7596] [6] INFO: AT2[GSM2]: speed set to 57600
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: --> ATZ^M
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: --> AT^M
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- AT
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: --> AT&F^M
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- AT&F
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: --> ATE0^M
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- ATE0
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: --> AT\Q3^M
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CPIN?^M
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- +CPIN: READY
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:45 [7596] [6] DEBUG: AT2[GSM2]: -->
AT+CSCA="+491760000443"^M
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CMGF=0^M
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CSMS=?^M
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: <-- +CSMS: (0,1)
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:46 [7596] [6] INFO: AT2[GSM2]: Phase 2+ is supported
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CSMS=1^M
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: <-- +CSMS: 1,1,1
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CNMI=1,2,0,0,1^M
2006-02-16 18:50:46 [7596] [6] DEBUG: AT2[GSM2]: <-- OK
2006-02-16 18:50:46 [7596] [6] INFO: AT2[GSM2]: AT SMSC successfully opened.
2006-02-16 18:50:58 [7596] [5] DEBUG: Started thread 8
(gw/bb_boxc.c:function)
2006-02-16 18:50:58 [7596] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function)
maps to pid 7596.
2006-02-16 18:50:58 [7596] [8] INFO: Client connected from <127.0.0.1>
2006-02-16 18:50:58 [7596] [8] DEBUG: Started thread 9
(gw/bb_boxc.c:boxc_sender)
2006-02-16 18:50:58 [7596] [9] DEBUG: Thread 9
(gw/bb_boxc.c:boxc_sender) maps to pid 7596.
2006-02-16 18:50:59 [7596] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2006-02-16 18:50:59 [7596] [3] DEBUG: HTTP: Destroying HTTPClient area
0x81909b0.
2006-02-16 18:50:59 [7596] [3] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2006-02-16 18:53:09 [7596] [8] DEBUG: boxc_receiver: sms received
2006-02-16 18:53:09 [7596] [8] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: TP-Validity-Period:
24.0 hours
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CMGS=26^M
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- >
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: send command status: 1
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: -->
0011000C819461822787660000A70DF4F29C0EB2A7C3A0F3BC2D03
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: --> ^Z
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- >
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- ERROR
2006-02-16 18:53:10 [7596] [6] ERROR: AT2[GSM2]: Error occurs: ERROR
(error number not known to us. ask google and add it.)
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: send command status: -1
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CMGS=26^M
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- >
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: send command status: 1
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: -->
0011000C819461822787660000A70DF4F29C0EB2A7C3A0F3BC2D03
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: --> ^Z
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- >
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- ERROR
2006-02-16 18:53:10 [7596] [6] ERROR: AT2[GSM2]: Error occurs: ERROR
(error number not known to us. ask google and add it.)
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: send command status: -1
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: --> AT+CMGS=26^M
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- >
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: send command status: 1
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: -->
0011000C819461822787660000A70DF4F29C0EB2A7C3A0F3BC2D03
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: --> ^Z
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- >
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: <-- ERROR
2006-02-16 18:53:10 [7596] [6] ERROR: AT2[GSM2]: Error occurs: ERROR
(error number not known to us. ask google and add it.)
2006-02-16 18:53:10 [7596] [6] DEBUG: AT2[GSM2]: send command status: -1
#######/snip#
--
**********************************************
terrestris Till Adams & Hinrich Paulsen GbR
Lars-Hendrik Schneider
Diplom-Geograph
Siemensstr. 8
D-53121 Bonn
Telefon: +49 (0)228 - 962 899 51
Fax: +49 (0)228 - 962 899 57
E-Mail: [EMAIL PROTECTED]
Internet: http://www.terrestris.de
**********************************************