Thank you, I feel that I am making some progress.  Still not there yet
though.  I have made the following mods to my config file:

# in the at smsc group
modemtype = wavecom
...
log-file = "/var/log/kannel/vzn00.log"

# at the bottom of the file
group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"
init-string = "AT+CNMI=2,2,0,1,0"
#reset-string = "AT+CFUN=1"
speed = 9600

I have attempted to play with the modem parameters a little without much
success by using the examples in other setup help requests.

############ telnet session #########
I can telnet to the modem and execute commands:
...
logged in successfully
at
OK
ati
 WAVECOM MODEM

 MULTIBAND  G850  1900

OK
at+cnmi=?
+CNMI: (0-3),(0-3),(0-3),(0-2),(0,1)

OK
at+cfun=?
+CFUN: (0,1),(0,1)

OK

>From the above, it appears that the commands that I have in the config file
are at least recognized by the modem.  Whether they are correct or not
remains to be seen.

I included the speed parameter in the modems group because it looks like
kannel is not able to detect the modem speed.  Here is an excerpt from the
new at smsc log file:
2008-05-05 23:16:33 [30212] [6] INFO: AT2[vzn00]: closing device
2008-05-05 23:16:33 [30212] [6] INFO: AT2[vzn00]: opening device
2008-05-05 23:16:33 [30212] [6] DEBUG: AT2[vzn00]: device opened
2008-05-05 23:16:33 [30212] [6] DEBUG: AT2[vzn00]: --> ^M
2008-05-05 23:16:35 [30212] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:16:39 [30212] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:16:43 [30212] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:16:47 [30212] [6] INFO: AT2[vzn00]: closing device
2008-05-05 23:16:47 [30212] [6] INFO: AT2[vzn00]: cannot detect speed
2008-05-05 23:16:47 [30212] [6] DEBUG: AT2[vzn00]: detecting modem speed.
2008-05-05 23:16:47 [30212] [6] INFO: AT2[vzn00]: opening device
2008-05-05 23:16:47 [30212] [6] DEBUG: AT2[vzn00]: device opened
2008-05-05 23:16:47 [30212] [6] DEBUG: AT2[vzn00]: --> ^M
2008-05-05 23:16:49 [30212] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:16:53 [30212] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:16:57 [30212] [6] DEBUG: AT2[vzn00]: --> AT^M

This repeats over and over.  I added the speed line to the cofig file and
then could see in places the following:

2008-05-05 23:39:55 [30350] [6] INFO: AT2[vzn00]: closing device
2008-05-05 23:39:55 [30350] [6] INFO: AT2[vzn00]: cannot detect speed
2008-05-05 23:39:55 [30350] [6] INFO: AT2[vzn00]: closing device
2008-05-05 23:39:55 [30350] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) terminates.
2008-05-05 23:40:53 [30414] [6] INFO: AT2[vzn00]: trying to use speed <9600>
from modem definition
2008-05-05 23:40:53 [30414] [6] INFO: AT2[vzn00]: opening device
2008-05-05 23:40:53 [30414] [6] DEBUG: AT2[vzn00]: device opened
2008-05-05 23:40:53 [30414] [6] DEBUG: AT2[vzn00]: --> ^M
2008-05-05 23:40:55 [30414] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:40:59 [30414] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:41:03 [30414] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:41:07 [30414] [6] INFO: AT2[vzn00]: closing device
2008-05-05 23:41:07 [30414] [6] INFO: AT2[vzn00]: speed in modem definition
don't work, will autodetect
2008-05-05 23:41:07 [30414] [6] DEBUG: AT2[vzn00]: detecting modem speed.
2008-05-05 23:41:07 [30414] [6] INFO: AT2[vzn00]: opening device
2008-05-05 23:41:07 [30414] [6] DEBUG: AT2[vzn00]: device opened
2008-05-05 23:41:07 [30414] [6] DEBUG: AT2[vzn00]: --> ^M
2008-05-05 23:41:09 [30414] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:41:13 [30414] [6] DEBUG: AT2[vzn00]: --> AT^M
2008-05-05 23:41:17 [30414] [6] DEBUG: AT2[vzn00]: --> AT^M

and then it closes the device and continues repeating as before.

I haven't found the modem speed yet but am looking.  The 9600 was just a
guess.

If you could look this over and give me your thoughts I would greatly
appreciate it.  Thank you very much for your time and help.

-Tony



On Mon, May 5, 2008 at 11:35 AM, Alvaro Cornejo <[EMAIL PROTECTED]>
wrote:

> Hi Tony
>
> I did use rawtcp connection to a series of modems using a terminal server.
> Indeed you need to configure your raw connection in kannel but also need to
> define modem config. I don't know if  'auto' will work with your modem
> unless you add an entry for it.
>
> Also add a log file to your AT SMSC config so you can better view what
> happen with that connection.
>
> This is my RAW SMSC AT config:
>
>
> ################################
> # SMSC ENFORA XYPLEX (Puerto 3)
> group = smsc
> smsc = at
> smsc-id = t4
> modemtype = auto
> speed = 115200
> log-level = 0
> log-file = "/var/log/kannel/enforats3.log"
> allowed-smsc-id = t;t4;t2_3
> sim-buffering = false
> keepalive = 60
> max-error-count = 8
> ################################
> ## SETTINGS PARA ACCESO VIA
> ## TERMINAL SERVER
> device = rawtcp
> host = 10.10.5.3
> port = 2300
> and this is my modem definition:
> (what modemtype=auto will find/search for)
>
> group = modems
> id = Enfora1218
> name = Enfora1218
> detect-string = "Enfora"
> init-string = AT+CNMI=2,1,2,1,0; +CMEE=2
> #Default Kannel CNMI = 1,2,0,1,0
> message-storage = SM
> keepalive-cmd = AT+CSQ;CMEE=2
> reset-string = AT$RESET
> need-sleep = true
> sendline-sleep = 127
> Also, for testing purposes, try telneting to your modem from kannel box
> and once conneted send some ATI, ATI1 or just enter to see if you are really
> connected to your modem. In my case
>
> 'telnet 10.10.5.3 2300' you should get someting like:
>
> [EMAIL PROTECTED] ~]# telnet 10.10.5.3 2300
> Trying 10.10.5.3...
> Connected to 10.10.5.3 (10.10.5.3).
> Escape character is '^]'.
> OK
> telnet> close
> Connection closed.
> [EMAIL PROTECTED] ~]#
>
> if you do get a connection, problem might be in kannel config. Browse
> your modem log to debug. If not, problem might be on
> routing/permisions/firewall??
>
> If needed further support add your log files
>
> Regards
>
> Alvaro
>
> --
>
> |-----------------------------------------------------------------------------------------------------------------|
> 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