+CNMI=2,2,0,1,0 2 = Buffer unsolicited result codes in the TA when TA-TE link is reserved and flush them to the TE after reservation. Otherwise forward them directly to the TE
2= SMS-DELIVERs (except class 2 messages) are routed using unsolicited code: +CMT: [<alpha>,] <length> <CR> <LF> <pdu> (PDU mode) or +CMT: <oa>,[<alpha>,] <scts> [,<tooa>, <fo>, <pid>, <dcs>, <sca>, <tosca>, <length>] <CR><LF><data> (text mode) 0 = No CBM indications are routed to the TE. The CBMs are stored. 1 = SMS-STATUS-REPORTs are routed using unsolicited code: +CDS: <length> <CR> <LF> <pdu> (PDU mode) or +CDS: <fo>,<mr>, [<ra>] , [<tora>], <scts>,<dt>,<st> (Text mode) 0 = TA buffer of unsolicited result codes defined within this command is flushed to the TE when <mode> 1 3 is entered (OK response shall be given before flushing the codes) +CMEE=1 1 = Disables or enables the use of the +CME ERROR: <xxx> or +CMS ERROR:<xxx> result code instead of simply ERROR. Ref: PDF of AT command set for that type of modem: AT-command-guide.pdf http://www.zipturtle.com/ukannel/index.php?topic=10.msg12#msg12 > Nathan, > > > > What does that init string that you posted do? > > > > ________________________________ > > From: Nathan Ferris [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2008 12:34 PM > To: [email protected] > Subject: Re: FW: Kannel error > > > > I'm using Multitech USB modems, but the config should be the same. Here's > what I use: > > init-string= AT+CNMI=2,2,0,1,0;+CMEE=1 > > Are you using the same thing? If you go in through minicom can you get a > response out of it? Have you power cycled the modem? > > Nathan > > Brandon Blackwell wrote: > > I added init-string "AT+CMEE=1" and the modem quit responding altogether. > I tried it with a 2 in there as well and got no responses from it. I > removed the init-string for now. Am I inputting it wrong or something? I > put it in the config file under modem. > > > > ________________________________ > > From: Alvaro Cornejo [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2008 11:30 AM > To: [email protected] > Subject: Re: FW: Kannel error > > > > try to enable verbose login in your modem. add at+cmee=1 or 2 to the init > string. > > > > This might give you more information > > On Thu, Mar 27, 2008 at 2:58 PM, Nathan Ferris <[EMAIL PROTECTED]> > wrote: > > Strictly anecdotally, I've seen that happen a lot when the modem gets > interrupted by an incoming message when it is trying to send out a > message. > > Nathan > > > > Brandon Blackwell wrote: > > Yeah that is usually what I end up doing, resetting the modem. But is > there any explanation as to why this is occurring or settings I can change > that might keep this from happening so often? Having duplicate messages > sent out is not good. Does anyone know anything about that send command > status -1? It happens every time it sends out a duplicate message. > > > > ________________________________ > > From: Nathan Ferris [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2008 3:14 PM > To: [email protected] > Subject: Re: FW: Kannel error > > > > Hi Brandon, > > I've seen stuff like this before; you may just need to reset your modem. > Try this: http://www.mail-archive.com/[email protected]/msg11538.html > > Nathan > > Brandon Blackwell wrote: > > > > I am using a wavecom multimodem gprs with kannel. The problem I am having > is that every so often I get a weird error in the logs and kannel seems to > send out duplicate and sometimes triplicate messages back to the phones. > The message I get in the logs is below: > > > > <-- ERROR > > 2008-03-26 18:28:29 [3067] [6] ERROR: AT2[/dev/ttyS0]: Generic error: > ERROR > > 2008-03-26 18:28:29 [3067] [6] DEBUG: AT2[/dev/ttyS0]: send command > status: -1 > > 2008-03-26 18:28:29 [3067] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=45^M > > 2008-03-26 18:28:29 [3067] [6] DEBUG: AT2[/dev/ttyS0]: <-- > > 2008-03-26 18:28:29 [3067] [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR > > 2008-03-26 18:28:29 [3067] [6] ERROR: AT2[/dev/ttyS0]: Generic error: > ERROR > > 2008-03-26 18:28:29 [3067] [6] DEBUG: AT2[/dev/ttyS0]: send command > status: -1 > > 2008-03-26 18:28:34 [3067] [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR > > 2008-03-26 18:28:34 [3067] [6] ERROR: AT2[/dev/ttyS0]: Generic error: > ERROR > > > > My kannel.conf setup is as follows: > > > > group = core > > admin-port = 13000 > > smsbox-port=13001 > > admin-password = XXXXXXXXX > > log-file = "/var/log/kannel/bearerbox.log" > > log-level = 1 > > box-deny-ip = "*.*.*.*" > > box-allow-ip = "127.0.0.1 <http://127.0.0.1/> " > > > > group = smsc > > smsc = at > > modemtype = wavecom > > device = /dev/ttyS0 > > speed = 9600 > > keepalive = 5 > > max-error-count = 5 > > my-number = XXXXXXXXXXX > > connect-allow-ip = 127.0.0.1 <http://127.0.0.1/> > > log-file = "/var/log/kannel/bearerbox.log" > > log-level = 0 > > > > group = smsc > > smsc = fake > > smsc-id = FAKE > > port = 10000 > > connect-allow-ip = 127.0.0.1 <http://127.0.0.1/> > > > > group = smsbox > > bearerbox-host = localhost > > sendsms-port = 13013 > > global-sender = XXXXXXXX > > log-file = "/var/log/kannel/smsboxaccess.log" > > log-level = 0 > > > > group = sendsms-user > > username = XXXXXX > > password = XXXXXX > > concatenation = true > > max-messages = 1 > > > > group = sms-service > > keyword = > > keyword-regex = .* > > catch-all = yes > > max-messages = 1 > > post-url = XXXXXXXXXXXXXXXXXXXXXXXX > > > > group = mysql-connection > > host = XXXXXX > > username = XXXXX > > password = XXXXX > > database = XXXXXX > > > > group = modems > > id = wavecom > > name = Wavecom > > detect-string = "WAVECOM" > > reset-string = "AT+CFUN=1" > > no-pin = true > > > > > > Any help you can provide would be great. If you need any further > information please just let me know. Thanks. > > *******CONFIDENTIALITY NOTICE and DISCLAIMER******* > This message and any attachment are confidential and may be privileged or > otherwise protected from disclosure and solely for the use of the > person(s) or entity to which it is intended. If you have received this > message in error and are not the intended recipient, please notify the > sender immediately and delete this message and any attachment from your > system. If you are not the intended recipient, be advised that any use of > this message is prohibited and may be unlawful, and you must not copy this > message or attachment or disclose the contents to any other person. > Internet correspondence is not secure and neither Virtual Money Inc. nor > the sender accepts responsibility for viruses or other forms of data > corruption caused by such. It is your responsibility to scan this e-mail > and any attachments for viruses. Neither Virtual Money Inc. nor the sender > does accept liability for any errors or omissions in the contents of this > message or attachments that arise as a result of e-mail transmission. > If verification is required please request a hard-copy version. > Besides this "Disclaimer", there may be additional or alternative terms in > this message or in attachments. > For further information please see our website at > http://www.virtualmoneyinc.com <http://www.virtualmoneyinc.com/> or call > 800-261-4578 > *******CONFIDENTIALITY NOTICE and DISCLAIMER******* > > > > > > > -- > |-----------------------------------------------------------------------------------------------------------------| > 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 > > *******CONFIDENTIALITY NOTICE and DISCLAIMER******* > This message and any attachment are confidential and may be privileged or > otherwise protected from disclosure and solely for the use of the > person(s) or entity to which it is intended. If you have received this > message in error and are not the intended recipient, please notify the > sender immediately and delete this message and any attachment from your > system. If you are not the intended recipient, be advised that any use of > this message is prohibited and may be unlawful, and you must not copy this > message or attachment or disclose the contents to any other person. > Internet correspondence is not secure and neither Virtual Money Inc. nor > the sender accepts responsibility for viruses or other forms of data > corruption caused by such. It is your responsibility to scan this e-mail > and any attachments for viruses. Neither Virtual Money Inc. nor the sender > does accept liability for any errors or omissions in the contents of this > message or attachments that arise as a result of e-mail transmission. > If verification is required please request a hard-copy version. > Besides this "Disclaimer", there may be additional or alternative terms in > this message or in attachments. > For further information please see our website at > http://www.virtualmoneyinc.com <http://www.virtualmoneyinc.com> or call > 800-261-4578 > *******CONFIDENTIALITY NOTICE and DISCLAIMER******* > > > >
