In this modem, you could have both in the same telnet session, you just have to tell to the modem to go in the AT mode, which is done by entering the command 'module' and then we are in full AT command.
So I got two issues : - first to tell kannel to connect to it with the correct login/password which looks to be not the cas - second, I have to tell the modem to go in the AT mode, which I assume I could do it by passing the command in the init-string of the modem (as soon as the init-string accept the carriage return). If you have any tricks to help me for the first point ? Thanks in advance -----Original Message----- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 11:02 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device I don´t know your modem, but in the cases I know, port 23 is for managing the modem configs and such. For using AT interface they usually use a different port. with the same Telnet protocol... something like Telnet host:2100 Regards |--------------------------------------------------------------------------- --------------------------------------| 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 On Tue, Feb 16, 2010 at 1:06 PM, info.ubichip <info.ubic...@free.fr> wrote: > Hello, > > Does someone got similar issue ? > > Regards > > > -----Original Message----- > From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On > Behalf Of info.ubichip > Sent: lundi 15 février 2010 13:49 > To: users@kannel.org > Subject: Using Portech modem > > Hello All, > > I would like to use a portech GSM gateway MV-370 on a kannel 1.4.3 > version, I'm able to send basic sms by hand using telnet as the following example : > > Telnet 192.168.1.121 > > username:voip > password:**** > User level = admin > > Command : logout,module,module1,module2 >>module > Getting module 1.. > Got!! Press 'ctrl-x' to release module 1. > > at+cmgf=1 > OK > At+cmgs="1122334455" >>test > +CMGS:30 > > > So I make a configuration in kannel as follow : > group = smsc > smsc = at > smsc-id = portech > allowed-smsc-id = portech > log-level = 0 > log-file = "/var/log/kannel/portech.log" > device = telnet > host = 192.168.1.121 > port = 23 > login-prompt = "username:" > password-prompt = "password:" > smsc-username = "voip" > smsc-password = "1234" > modemtype = portech > validityperiod = 172 > keepalive = 10 > my-number = 0012345678 > sim-buffering = true > > > I got the following error, it is like the telnet session is not > initialized correctly : > > 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: trying to use > speed <115200> from modem definition > 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device > 2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to <192.168.1.121> > 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened. > Telnet mode = 1 > 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: --> ^M > 2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: --> AT^M > 2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: <-- username: AT > 2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: --> AT^M > 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- password: ** > 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- bad username > or password!!! > 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- exit... > 2010-02-15 13:44:12 [32013] [8] DEBUG: AT2[portech]: --> AT^M > 2010-02-15 13:44:21 [32013] [8] INFO: AT2[portech]: Closing device > 2010-02-15 13:44:21 [32013] [8] INFO: AT2[portech]: speed in modem > definition don't work, will autodetect > > > Does someone got similar issue with this type of modem ? > > My second question is : as you could see after the telnet connection, > I have to specify the command 'module' to get full access to the AT > command of the modem, does there is a way to put it in the init-string > in the modem definition ? If yes how to send a carriage return in the > init-string parameter (I have already some AT+CNMI....' command to process. > > > Thanks in advance for your help > > > > > > >