Hi list,
 
I have some problems using a Ericsson R320 as SMSC under AT2.
 
Under AT i can connect to phone and send messages, althought i can get the messages from the phone :-(
 
Under AT2 i get a CMS ERROR: 303 when trying to send the init-string. I have tryed speeds 4800, 9600, 19200 and used the default init string for AT2 ("AT+CNMI=1,2,0,0,0") and other used under AT ("AT+CNMI=3,2,0,0"). I think this could be the problem, but i show my configs and the log that i get in bearerbox  anyway :-) (attached).
 
anyone can confirm the R320 init-string ?? or give me other possible solution?
 
10nx in advance
/valter
 
 
---- kannel.conf ----
 
[....]
 
# SMSC CONNECTIONS
group = smsc
smsc = at2
modemtype = "ericsson"
device = /dev/ttyS1
speed =  19200
pin = 2193
 
include = "/opt/kannel/conf/modems.conf"
[....]
 
--- end kannel.conf
 
---- modems.conf -----
 
group = modems
id = "ERICR320"
name = "ERICR320"
detect-string = "R320"
detect-string2 = "cable"
init-string = "AT+CNMI=1,2,0,0,0"
#init-string = "AT+CNMI=3,2,0,0"
speed = 19200
#enable-hwhs = "AT+IFC=2,2"
#need-sleep = false
#no-pin = false
#no-smsc = false
#sendline-sleep = 100
#keepalive-cmd = "AT"
#message-storage = "SM"
---- end modems.conf ----
2002-04-01 23:02:51 [0] DEBUG: HTTP: Opening server at port 13000.
2002-04-01 23:02:51 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2002-04-01 23:02:51 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2002-04-01 23:02:51 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2002-04-01 23:02:51 [0] DEBUG: starting smsbox connection module
2002-04-01 23:02:51 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2002-04-01 23:02:51 [0] INFO: AT2[/dev/ttyS1]: configuration shows modemtype <ericsson>
2002-04-01 23:02:51 [0] DEBUG: AT2[/dev/ttyS1]: Reading modem definitions from 
<conf/kannel.conf>
2002-04-01 23:02:51 [0] DEBUG: Loading include file `/opt/kannel/conf/modems.conf' (on 
line 27 of file conf/kannel.conf).
2002-04-01 23:02:51 [0] DEBUG: AT2[/dev/ttyS1]: Found <1> modems in config
2002-04-01 23:02:51 [0] INFO: AT2[/dev/ttyS1]: modemtype not found, revert to 
autodetect
2002-04-01 23:02:51 [0] DEBUG: Started thread 5 (gw/smsc_at2.c:at2_device_thread)
2002-04-01 23:02:51 [5] DEBUG: AT2[/dev/ttyS1]: detecting modem type
2002-04-01 23:02:51 [5] INFO: AT2[/dev/ttyS1]: opening device
2002-04-01 23:02:51 [5] DEBUG: AT2[/dev/ttyS1]: device opened
2002-04-01 23:02:51 [5] INFO: AT2[/dev/ttyS1]: speed set to 9600
2002-04-01 23:02:51 [5] DEBUG: AT2[/dev/ttyS1]: --> ^M
2002-04-01 23:02:51 [0] DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_router)
2002-04-01 23:02:51 [0] INFO: MAIN: Start-up done, entering mainloop
2002-04-01 23:02:51 [0] DEBUG: AT2[/dev/ttyS1]: start called
2002-04-01 23:02:51 [6] DEBUG: sms_router: time to sleep
2002-04-01 23:02:51 [6] DEBUG: sms_router: list_len = 0
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: --> AT^M
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: --> AT&F^M
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: --> ATE0^M
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- ATE0
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: --> ATI^M
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- R320 cable modem
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:53 [5] DEBUG: Loading include file `/opt/kannel/conf/modems.conf' (on 
line 27 of file conf/kannel.conf).
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: found string <R320> plus <cable>, 
using modem definition <ERICR320>
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: --> AT+CSMS=?^M
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- +CSMS: (0)
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:53 [5] INFO: AT2[/dev/ttyS1]: closing device
2002-04-01 23:02:53 [5] INFO: AT2[/dev/ttyS1]: opening device
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: device opened
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: device opened
2002-04-01 23:02:53 [5] INFO: AT2[/dev/ttyS1]: init device
2002-04-01 23:02:53 [5] INFO: AT2[/dev/ttyS1]: speed set to 9600
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: --> AT^M
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: --> AT&F^M
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:53 [5] DEBUG: AT2[/dev/ttyS1]: --> ATE0^M
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- ATE0
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: --> AT+IFC=2,2^M
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: --> AT+CPIN?^M
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- +CPIN: READY
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: --> AT+CMGF=0^M
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: --> AT+CSMS=?^M
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- +CSMS: (0)
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- OK
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: --> AT+CNMI=1,2,0,0,0^M
2002-04-01 23:02:54 [5] DEBUG: AT2[/dev/ttyS1]: <-- +CMS ERROR: 303
2002-04-01 23:02:54 [5] ERROR: AT2[/dev/ttyS1]: CMS ERROR: +CMS ERROR: 303
2002-04-01 23:02:54 [5] ERROR: AT2[/dev/ttyS1]: Opening failed. Terminating
2002-04-01 23:02:54 [5] DEBUG: Thread 5 (gw/smsc_at2.c:at2_device_thread) terminates.

Reply via email to