your modem is not accepting hardware handshake command AT+IFC=2,2 . Either
AT+IFC  is not the command for your modem or the parameters 2,2 are not
supported by your modem. Check your modem AT manual for the right
command/parameters and use enable-hwhs=XXXXXX in your modem config to
overwrite default AT+IFC=2,2 handshake command



On Fri, Jun 6, 2008 at 1:15 AM, Benmute <[EMAIL PROTECTED]> wrote:

>   Hi List,
>
> I have been trying to receive sms using kannel but I have not succeeded
> yet. Previously I was using Nokia N70 but since it doesnt support AT+CNMI
> command I was unable to receive SMS.  Now am configuring Kannel using LG
> B2000. I have a serial data cable and I have a USB to serial converter that
> am using to connect the phone to my linux box. Thee problem is Kannel is not
> able to connect to the modem despite doing everything right.
> Any assistance will be welcome.
> Here are my kannel.conf, kannel.log and smsbox.log files:
>
> kannel.conf
>
> # CORE
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> status-password = bar
> admin-deny-ip = ""
> admin-allow-ip = "127.0.0.1"
> log-file = "/var/log/kannel/kannel.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> white-list-regex = ^((07[0-9]+)|(254[0-9]+))
> #unified-prefix = "00358,0"
> access-log = "/var/log/kannel/access.log"
> store-file = "/var/log/kannel/kannel.store"
> #ssl-certkey-file = "mycertandprivkeyfile.pem"
> dlr-storage = internal
>
> # SMSC CONNECTIONS
>
> #LGB2000
> group = smsc
> smsc = at
> smsc-id = lg
> modemtype = lgb
> device = /dev/ttyUSB0
> my-number = 2511111114
> connect-allow-ip = "localhost"
> log-level = 0
> speed = 115200
>
> # MODEMS
>
> group = modems
> id = lgb
> name = "LG Mobile"
> detect-string = "TTP Communications Ltd"
> init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
> #init-string = "AT+CNMI=2,1,0,0,0"
> #keepalive-cmd = "AT+CBC;+CSQ"
> need-sleep = true
>
> # SMSBOX SETUP
>
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> global-sender = 2511111114
> sendsms-chars = "0123456789 +-"
> log-file = "/var/log/kannel/smsbox.log"
> log-level = 0
> access-log = "/var/log/kannel/access.log"
> white-list-regex = ^((07[0-9]+)|(254[0-9]+))
>
> # SEND-SMS USERS
>
> group = sendsms-user
> username = tester
> password = bar
> #user-deny-ip = ""
> #user-allow-ip = ""
>
> # SERVICES
>
> group = sms-service
> keyword = nop
> text = "You asked nothing and I did it!"
>
> group = sms-service
> keyword = www
> get-url = "http://%S";
> max-messages = 0
> catch-all = yes
>
> # there should be default always
>
> group = sms-service
> keyword = default
> text = "No service specified"
>
>
>
> group = mysql-connection
> id = mydlr
> host = localhost
> username = root
> password = ""
> database = kannel
> # max count of connections that will be opened for dbpool
> # default is 1
> max-connections = 1
>
> group = dlr-db
> id = mydlr
> table = dlr
> field-smsc = smsc
> field-timestamp = ts
> field-destination = destination
> field-source = source
> field-service = service
> field-url = url
> field-mask = mask
> field-status = status
> field-boxc-id = boxc
>
>
> Kannel.log
> 2008-06-02 20:53:58 [4329] [6] ERROR: AT2[lg]: Opening failed. Terminating
> 2008-06-02 20:53:58 [4329] [6] INFO: AT2[lg]: closing device
> 2008-06-02 20:53:58 [4329] [6] INFO: AT2[lg]: opening device
> 2008-06-02 20:53:58 [4329] [6] DEBUG: AT2[lg]: device opened
> 2008-06-02 20:53:59 [4329] [6] DEBUG: AT2[lg]: device opened
> 2008-06-02 20:53:59 [4329] [6] INFO: AT2[lg]: init device
> 2008-06-02 20:53:59 [4329] [6] INFO: AT2[lg]: speed set to 115200
> 2008-06-02 20:53:59 [4329] [6] DEBUG: AT2[lg]: --> ATZ^M
> 2008-06-02 20:54:03 [4329] [6] ERROR: AT2[lg]: Wrong or no answer to ATZ,
> ignoring
> 2008-06-02 20:54:03 [4329] [6] DEBUG: AT2[lg]: --> AT^M
> 2008-06-02 20:54:03 [4329] [6] DEBUG: AT2[lg]: <-- OK
> 2008-06-02 20:54:03 [4329] [6] DEBUG: AT2[lg]: --> AT&F^M
> 2008-06-02 20:54:03 [4329] [6] DEBUG: AT2[lg]: <-- OK
> 2008-06-02 20:54:03 [4329] [6] DEBUG: AT2[lg]: --> ATE0^M
> 2008-06-02 20:54:03 [4329] [6] DEBUG: AT2[lg]: <-- ATE0
> 2008-06-02 20:54:03 [4329] [6] DEBUG: AT2[lg]: <-- OK
> 2008-06-02 20:54:03 [4329] [6] DEBUG: AT2[lg]: --> AT+IFC=2,2^M
> 2008-06-02 20:54:07 [4329] [6] INFO: AT2[lg]: cannot enable hardware
> handshake
> 2008-06-02 20:54:07 [4329] [6] DEBUG: AT2[lg]: --> AT+CPIN?^M
> 2008-06-02 20:54:18 [4329] [6] ERROR: AT2[lg]: Opening failed. Terminating
> 2008-06-02 20:54:18 [4329] [6] INFO: AT2[lg]: closing device
> 2008-06-02 20:54:18 [4329] [6] INFO: AT2[lg]: opening device
> 2008-06-02 20:54:18 [4329] [6] DEBUG: AT2[lg]: device opened
> 2008-06-02 20:54:19 [4329] [6] DEBUG: AT2[lg]: device opened
> 2008-06-02 20:54:19 [4329] [6] INFO: AT2[lg]: init device
> 2008-06-02 20:54:19 [4329] [6] INFO: AT2[lg]: speed set to 115200
> 2008-06-02 20:54:19 [4329] [6] DEBUG: AT2[lg]: --> ATZ^M
> 2008-06-02 20:54:23 [4329] [6] ERROR: AT2[lg]: Wrong or no answer to ATZ,
> ignoring
> 2008-06-02 20:54:23 [4329] [6] DEBUG: AT2[lg]: --> AT^M
> 2008-06-02 20:54:23 [4329] [6] DEBUG: AT2[lg]: <-- OK
> 2008-06-02 20:54:23 [4329] [6] DEBUG: AT2[lg]: --> AT&F^M
> 2008-06-02 20:54:23 [4329] [6] DEBUG: AT2[lg]: <-- OK
> 2008-06-02 20:54:23 [4329] [6] DEBUG: AT2[lg]: --> ATE0^M
> 2008-06-02 20:54:23 [4329] [6] DEBUG: AT2[lg]: <-- ATE0
> 2008-06-02 20:54:23 [4329] [6] DEBUG: AT2[lg]: <-- OK
> 2008-06-02 20:54:23 [4329] [6] DEBUG: AT2[lg]: --> AT+IFC=2,2^M
> 2008-06-02 20:54:27 [4329] [6] INFO: AT2[lg]: cannot enable hardware
> handshake
> 2008-06-02 20:54:27 [4329] [6] DEBUG: AT2[lg]: --> AT+CPIN?^M
> 2008-06-02 20:54:38 [4329] [6] ERROR: AT2[lg]: Opening failed. Terminating
> 2008-06-02 20:54:38 [4329] [6] INFO: AT2[lg]: closing device
> 2008-06-02 20:54:38 [4329] [6] INFO: AT2[lg]: opening device
> 2008-06-02 20:54:38 [4329] [6] DEBUG: AT2[lg]: device opened
> 2008-06-02 20:54:39 [4329] [6] DEBUG: AT2[lg]: device opened
> 2008-06-02 20:54:39 [4329] [6] INFO: AT2[lg]: init device
> 2008-06-02 20:54:39 [4329] [6] INFO: AT2[lg]: speed set to 115200
> 2008-06-02 20:54:39 [4329] [6] DEBUG: AT2[lg]: --> ATZ^M
>
>
> smsbox.log
> 2008-06-02 20:52:01 [4344] [0] INFO: Added logfile
> `/var/log/kannel/smsbox.log' with level `0'.
> 2008-06-02 20:52:01 [4344] [0] INFO: Service global sender set as
> '254724591224'
> 2008-06-02 20:52:01 [4344] [0] INFO: Logging accesses to
> '/var/log/kannel/access.log'.
> 2008-06-02 20:52:01 [4344] [0] INFO: Started access logfile
> `/var/log/kannel/access.log'.
> 2008-06-02 20:52:01 [4344] [0] INFO: HTTP: Opening server at port 13013.
> 2008-06-02 20:52:01 [4344] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2008-06-02 20:52:01 [4344] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2008-06-02 20:52:01 [4344] [0] INFO: Set up send sms service at port 13013
> 2008-06-02 20:52:01 [4344] [0] DEBUG: Started thread 3
> (gw/smsbox.c:sendsms_thread)
> 2008-06-02 20:52:01 [4344] [0] DEBUG:
> ----------------------------------------------
> 2008-06-02 20:52:01 [4344] [0] DEBUG: Kannel smsbox version 1.4.1 starting
> 2008-06-02 20:52:01 [4344] [0] DEBUG: Started thread 4
> (gw/smsbox.c:obey_request_thread)
> 2008-06-02 20:52:01 [4344] [0] DEBUG: Started thread 5
> (gw/smsbox.c:url_result_thread)
> 2008-06-02 20:52:01 [4344] [0] DEBUG: Started thread 6
> (gw/smsbox.c:http_queue_thread)
> 2008-06-02 20:52:01 [4344] [0] INFO: Connected to bearerbox at localhost
> port 13001.
> 2008-06-02 20:52:01 [4344] [0] DEBUG: Started thread 7
> (gw/heartbeat.c:heartbeat_thread)
> 2008-06-02 20:52:01 [4344] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
> to pid 4344.
> 2008-06-02 20:52:01 [4344] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
> maps to pid 4344.
> 2008-06-02 20:52:01 [4344] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread)
> maps to pid 4344.
> 2008-06-02 20:52:01 [4344] [4] DEBUG: Thread 4
> (gw/smsbox.c:obey_request_thread) maps to pid 4344.
> 2008-06-02 20:52:01 [4344] [5] DEBUG: Thread 5
> (gw/smsbox.c:url_result_thread) maps to pid 4344.
> 2008-06-02 20:52:01 [4344] [6] DEBUG: Thread 6
> (gw/smsbox.c:http_queue_thread) maps to pid 4344.
> 2008-06-02 20:52:01 [4344] [7] DEBUG: Thread 7
> (gw/heartbeat.c:heartbeat_thread) maps to pid 4344.
>
> <http://www.nairobieverything.com/>
>
>
>
>


-- 
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y
Nextel en México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y
GPRS online
Visitenos en www.smsglobal.com.mx y www.pravcom.com

Reply via email to