Hello,
I tried your suggestion and it worked!!! Tried init-string of other modems in 
modems.conf and one of them clicked for Nokia 5200.

 This is configuration that worked.
group = modems

id = generic

name = "Generic Modem"

init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

The configuration file has been pasted below:

However, now Kannel is unable to grab a SMS from the phone. I am not sure what 
is going wrong.

group = core

admin-port = 13000

smsbox-port = 13001

admin-password = bar

#status-password = foo

#admin-deny-ip = ""

#admin-allow-ip = ""

#log-file = "/tmp/kannel.log"

#log-level = 0

box-deny-ip = "*.*.*.*"

box-allow-ip = "127.0.0.1"

#unified-prefix = "+358,00358,0;+,00"

#access-log = "/tmp/access.log"

#store-file = "kannel.store"

#ssl-server-cert-file = "cert.pem"

#ssl-server-key-file = "key.pem"

#ssl-certkey-file = "mycertandprivkeyfile.pem"

#---------------------------------------------

# SMSC CONNECTIONS

#

# SMSC connections are created in bearerbox and they handle SMSC specific

# protocol and message relying. You need these to actually receive and send

# messages to handset, but can use GSM modems as virtual SMSCs



# This is a fake smsc connection, _only_ used to test the system and services.

# It really cannot relay messages to actual handsets!

group = smsc

smsc = at

modemtype = auto

#device = /dev/ACM0

device = /dev/ttyS10

#device = /dev/ttyUSB0

smsc-id = UPLIFT

port = 10000

speed = 0

connect-allow-ip = 127.0.0.1

#---------------------------------------------

# SMSBOX SETUP

#

# Smsbox(es) do higher-level SMS handling after they have been received from

# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox

bearerbox-host = 127.0.0.1

sendsms-port = 13013

global-sender = 13013

#sendsms-chars = "0123456789 +-"

#log-file = "/tmp/smsbox.log"

#log-level = 0

#access-log = "/tmp/access.log"

#---------------------------------------------

# SEND-SMS USERS

#

# These users are used when Kannel smsbox sendsms interface is used to

# send PUSH sms messages, i.e. calling URL like

# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...

group = sendsms-user

username = tester

password = foobar

#user-deny-ip = ""

#user-allow-ip = ""

#---------------------------------------------

# SERVICES

#

# These are 'responses' to sms PULL messages, i.e. messages arriving from

# handsets. The response is based on message content. Only one sms-service is

# applied, using the first one to match.

group = sms-service

keyword = nop

text = "You asked nothing and I did it!"

# There should be always a 'default' service. This service is used when no

# other 'sms-service' is applied.

group = sms-service

keyword = default

text = "No service specified"

get-url = 
"http://localhost:8080/examples/servlets/servlet/RequestParamExample?phone=%p&text=%a";

Regards,

Pavan Gupta

  ----- Original Message ----- 
  From: Nikos Balkanas 
  To: Alejandro Guerrieri ; Pavan Gupta 
  Cc: [email protected] 
  Sent: Sunday, October 04, 2009 12:25 AM
  Subject: Re: Nokia 5200 with Kannel


  Hi,

  A faster way might be to just look at the modems.conf file and use some of 
the different CNMI values you find in there (trial & error). Of course you will 
need to copy the nokia definition to your own and modify the init-string.

  BR,
  Nikos
    ----- Original Message ----- 
    From: Alejandro Guerrieri 
    To: Pavan Gupta 
    Cc: [email protected] 
    Sent: Saturday, October 03, 2009 9:40 PM
    Subject: Re: Nokia 5200 with Kannel


    The AT+CNMI init string varies wildly from device to device. You'll 
probably need to change the init string according to your device's requirement. 
Sadly, there's not a once-fits-all init string and you'll need to find your 
phone's technical documentation in order to be able to create the proper init 
string for it (have you tried googling around for it?). 


    BTW, if you do so, please share it over the list so others can benefit from 
your findings.


    Regards,


    Alejandro


    On Sat, Oct 3, 2009 at 7:43 PM, Pavan Gupta <[email protected]> wrote:

      Hello,
      I have been trying to use Nokia 5200 with Kannel. This is the error I get:

      2009-10-03 23:07:45 [48708] [6] DEBUG: AT2[UPLIFT]: <-- OK
      2009-10-03 23:07:45 [48708] [6] DEBUG: AT2[UPLIFT]: --> 
AT+CNMI=1,2,0,1,0^M
      2009-10-03 23:07:45 [48708] [6] DEBUG: AT2[UPLIFT]: <-- ERROR
      2009-10-03 23:07:45 [48708] [6] ERROR: AT2[UPLIFT]: Generic error: ERROR
      2009-10-03 23:07:45 [48708] [6] ERROR: AT2[UPLIFT]: Initialization of 
device fai
      led.
      2009-10-03 23:07:45 [48708] [6] INFO: AT2[UPLIFT]: Closing device


      1. Does Kannel work with Nokia 5200? Is there an updated list of cell 
phones that interoperate with Kannel?
      2. What should be done resolve above error?

      Thanking you and looking forward to your prompt reply.
      Regards,
      Pavan Gupta

Reply via email to