The CNMI format and meaning varies from phone to phone. Maybe the phone does support CNMI, only with a different format than the one configured. Try searching for your phone's technical manual or AT command set, or try with other formats present on modems.conf as Nikos suggested a couple of days ago.
Regards, Alejandro On Mon, Oct 5, 2009 at 3:25 PM, Alvaro Cornejo <[email protected]>wrote: > Hi > > Use minicom or vwdial or any other communication software to test your > modem > > type in cnmi=? of cnmi? if you did get an error, this most probably > means your modem does NOT support CNMI command and therefore you will > NOT BE ABLE to receive inccoming messages in your application... > > To be sure google for your modem specs and find if it support CNMI > commmand. > > Your option: look for another phone > > Regards > > Alvaro > > > > |-----------------------------------------------------------------------------------------------------------------| > Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier > celular y Nextel > en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via > SMS y GPRS online > Visitenos en www.perusms.NET www.smsglobal.com.mx y > www.pravcom.com > > > > 2009/10/4 Pavan Gupta <[email protected]>: > > Hi, > > 1. How do I configure that? Sorry if this is a trivial question. I don't > > know much about modem settings. > > 2. The bearer logs are attached to this email. > > 3. Modem Config is: > > > > group = modems > > > > id = generic > > > > name = "Generic Modem" > > > > detect-string = "NOKIA" > > > > detect-string2 = "5200" > > > > init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" > > > > #keepalive-cmd = "AT+CBC;+CSQ;+CMGF=0? > > > > reset-string = "ATZ" > > > > message-storage = "SM" > > > > 4. Bearer config: > > > > > > group = core > > > > admin-port = 13000 > > > > smsbox-port = 13001 > > > > admin-password = bar > > > > status-password = foo > > > > admin-deny-ip = "*.*.*.*" > > > > admin-allow-ip = "127.0.0.1" > > > > #log-file = "/tmp/kannel.log" > > > > #log-level = 0 > > > > log-file = "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" > > > > access-log = "access.log" > > > > store-type = file > > > > store-location = "/cygdrive/c/kannel/gateway-1.4.3/gw/kannel.store" > > > > > > > > I would appreciate if you could help us to resolve the problem. > > > > Thanking You. > > > > Regards, > > > > Pavan > > > > ----- Original Message ----- > > From: Nikos Balkanas > > To: Pavan Gupta > > Cc: [email protected] > > Sent: Sunday, October 04, 2009 4:38 PM > > Subject: Re: Nokia 5200 with Kannel > > Hi, > > > > What part do you not understand? "You need CNMI in your modem > > configuration". Try different settings. Also if you need further help > please > > attach detailed bearerbox logs. > > > > BR, > > Nikos > > > > ----- Original Message ----- > > From: Pavan Gupta > > To: Nikos Balkanas > > Cc: [email protected] > > Sent: Sunday, October 04, 2009 10:08 AM > > Subject: Re: Nokia 5200 with Kannel > > Hello, > > Thank you for your reply. I am a newbie to Kannel. > > > > 1. I have changed my config file for core group based on your > suggestions. > > Following is the configuration file. > > > > > > 2. I am not sure what do you mean by: > > "Also noone said to skip the CNMI from your modem configuration. It means > > "New Message Indication", or how the modem should handle incoming SMS. > > 1,2,0,0 might be work for you." > > > > This is the modem config: > > > > group = modems > > > > id = generic > > > > name = "Generic Modem" > > > > detect-string = "NOKIA" > > > > detect-string2 = "5200" > > > > init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" > > > > #init-string = "AT+CNMI=1,2,0,0" > > > > #keepalive-cmd = "AT+CBC;+CSQ;+CMGF=0? > > > > reset-string = "ATZ" > > > > message-storage = "SM" > > > > > > > > Thanking you for your help. > > > > Pavan > > > > ----- Original Message ----- > > From: Nikos Balkanas > > To: Pavan Gupta > > Cc: [email protected] > > Sent: Sunday, October 04, 2009 11:50 AM > > Subject: Re: Nokia 5200 with Kannel > > Hi, > > > > You have several problems in your configuration. Please read the User's > > guide on how to configure it. Hint: you need store-type and > store-location. > > Also noone said to skip the CNMI from your modem configuration. It means > > "New Message Indication", or how the modem should handle incoming SMS. > > 1,2,0,0 might be work for you. > > > > If you still have problems with it, please post your bearerbox logs. > > > > BR, > > Nikos > > > > ----- Original Message ----- > > From: Pavan Gupta > > To: Nikos Balkanas ; Alejandro Guerrieri > > Cc: [email protected] > > Sent: Sunday, October 04, 2009 8:47 AM > > Subject: Re: Nokia 5200 with Kannel > > 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 > > > >
