I'm using an LG 575 handset as a GSM modem.  This is the relevant
section of my /etc/kannel/kannel.conf:

    group = smsc
    smsc = at
    modemtype = LG575
    device = /dev/rfcomm0
    speed = 115200
    log-level = 0
    sms-center = "+14047259000"
    keepalive = 1
    sim-buffering = true

    group = modems
    id = LG575
    name = LG575

When I start up kannel and then send an SMS message to this handset,
kannel detects and reads the messages, then tries to delete them, but
the messages don't disappear.

Here's a section of my bearerbox log that shows the problem:


2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT^M
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CPMS?^M
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- +CPMS: 
"ME",3,150,"ME",3,150,"ME",3,150
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: 3 messages waiting in 
memory
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CMGR=1^M
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- +CMGR: 0,,28
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- 
07913121139406F0040B812161746050F80003803052615220690A351C0C1493CD68351B
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: received message from 
SMSC: +13123149600
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: Numeric sender  
<12164706058>
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: User data length read 
as (10)
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: Udh decoding done 
len=10 udhi=0 udhlen=0 udh=''
2008-03-25 16:49:55 [11087] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2008-03-25 16:49:55 [11087] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2008-03-25 16:49:55 [11087] [8] DEBUG: boxc_receiver: got ack
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CMGD=1^M
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CMGR=2^M
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- +CMGR: 0,,26
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- 
07913121139406F0040B812161746050F800038030526192646908351C0C1493CD68
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: received message from 
SMSC: +13123149600
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: Numeric sender  
<12164706058>
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: User data length read 
as (8)
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: Udh decoding done 
len=8 udhi=0 udhlen=0 udh=''
2008-03-25 16:49:55 [11087] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2008-03-25 16:49:55 [11087] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2008-03-25 16:49:55 [11087] [8] DEBUG: boxc_receiver: got ack
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CMGD=2^M
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CMGR=3^M
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- +CMGR: 0,,27
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- 
07913121139406F0040B812161746050F800038030526124956909351C0C1493CD6835
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: received message from 
SMSC: +13123149600
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: Numeric sender  
<12164706058>
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: User data length read 
as (9)
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: Udh decoding done 
len=9 udhi=0 udhlen=0 udh=''
2008-03-25 16:49:55 [11087] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2008-03-25 16:49:55 [11087] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2008-03-25 16:49:55 [11087] [8] DEBUG: boxc_receiver: got ack
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CMGD=3^M
2008-03-25 16:49:55 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:57 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT^M
2008-03-25 16:49:57 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:57 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: --> AT+CPMS?^M
2008-03-25 16:49:57 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- +CPMS: 
"ME",3,150,"ME",3,150,"ME",3,150
2008-03-25 16:49:57 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: <-- OK
2008-03-25 16:49:57 [11087] [6] DEBUG: AT2[/dev/rfcomm0]: 3 messages waiting in 
memory

Notice how 3 messages are detected, then I read each one, then each are
deleted, but at the very end, they are still there at the next check?

All advice is welcome.

I really wish I didn't have to use sim-buffering, but this handset doesn't seem 
to indicate that an SMS message arrives.

Maybe I need a different CNMI string.  I have tried AT+CNMI=1,2 and
AT+CNMI=2,1 and neither cause my modem to send notifications.

Matt


Reply via email to