Re: telnet device
Hi, Well, there is a rawtcp mode which can be used with Cisco's reverse telnet or other terminal servers, which you might want to experiment with. Check SMSc configuration for GSM modem in user's guide. Otherwise, you could try prepending all configuration strings with "hellocommand;..." and hope for the best. I imagine that you need that command whenever you access the modem, so this will not work. As a last resort you can modify the driver, gw/smsc/smsc_at.c or for less effort get yourself a regular modem. BR, Nikos - Original Message - From: "info.ubichip" To: Sent: Friday, January 22, 2010 1:24 AM Subject: telnet device Hello, Do you know if it is possible to put some carriage return in the init-string of a modem. In my case, the modem is a telnet one and I have to make a non standard command before access to AT command. I would to have something like Init-string = "hellocommand[carriagereturn]AT+CNMI=1,2,0,0" Thanks in advance for your help
Re: telnet device
Try^M carret and upper case M is an ASCII ?? representation of the carriage return. I do use old xyplex terminal server to connect a bank of modems to kannel using rawtcp mode in smsc_at config with no problems. 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 On Thu, Jan 21, 2010 at 6:24 PM, info.ubichip wrote: > Hello, > > Do you know if it is possible to put some carriage return in the init-string > of a modem. In my case, the modem is a telnet one and I have to make a non > standard command before access to AT command. > > I would to have something like > Init-string = "hellocommand[carriagereturn]AT+CNMI=1,2,0,0" > > > Thanks in advance for your help > > >
Re: telnet device
Thanks Alvaro, I don't know if this works with modems but these are control codes related to vt100 terminal emulation. ^M is carriage return, ^J line feed (not with carret, however, but control). They are eventually mapped to ASCII characters (0x0D & 0x0A). If some modem types implement them in their init strings, I doubt that it is a standard. Glad to know, though. BR, Nikos - Original Message - From: "Alvaro Cornejo" To: "info.ubichip" Cc: Sent: Friday, January 22, 2010 3:30 PM Subject: Re: telnet device Try^M carret and upper case M is an ASCII ?? representation of the carriage return. I do use old xyplex terminal server to connect a bank of modems to kannel using rawtcp mode in smsc_at config with no problems. 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 On Thu, Jan 21, 2010 at 6:24 PM, info.ubichip wrote: Hello, Do you know if it is possible to put some carriage return in the init-string of a modem. In my case, the modem is a telnet one and I have to make a non standard command before access to AT command. I would to have something like Init-string = "hellocommand[carriagereturn]AT+CNMI=1,2,0,0" Thanks in advance for your help
Re: telnet device
Nikos A loong time ago I used to do some scripting (procomm, windows terminal emulator) with modems and I used ^M and ^J (character carret and character letter) and not CTRL+M nor CTRL+J in order to send CR and LF to modems and it worked with no problems. Lets wait info.ubchip tell us in that worked. 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 2010/1/22 Nikos Balkanas : > Thanks Alvaro, > > I don't know if this works with modems but these are control codes related > to vt100 terminal emulation. ^M is carriage return, ^J line feed (not with > carret, however, but control). They are eventually mapped to ASCII > characters (0x0D & 0x0A). If some modem types implement them in their init > strings, I doubt that it is a standard. Glad to know, though. > > BR, > Nikos > - Original Message - From: "Alvaro Cornejo" > > To: "info.ubichip" > Cc: > Sent: Friday, January 22, 2010 3:30 PM > Subject: Re: telnet device > > > Try ^M carret and upper case M > > is an ASCII ?? representation of the carriage return. > > I do use old xyplex terminal server to connect a bank of modems to > kannel using rawtcp mode in smsc_at config with no problems. > > 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 > > > > On Thu, Jan 21, 2010 at 6:24 PM, info.ubichip wrote: >> >> Hello, >> >> Do you know if it is possible to put some carriage return in the >> init-string >> of a modem. In my case, the modem is a telnet one and I have to make a non >> standard command before access to AT command. >> >> I would to have something like >> Init-string = "hellocommand[carriagereturn]AT+CNMI=1,2,0,0" >> >> >> Thanks in advance for your help >> >> >> > >
RE: telnet device
Hello Alvaro, Nikos, First thanks to your help, I will receive the equipment soon, and I will update you about that. I already take a look on the source of ths smsc_at, but there is no indication of any carriage return 'feature' so I'm hope the ^M will not be see as a two normal asciis characters if there is no mapping. If not, I think the solution will be to add some how one second init-string in the modem definitions. Is a init-string2 exist ? What do you think about ? -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: vendredi 22 janvier 2010 09:51 To: Nikos Balkanas Cc: info.ubichip; users@kannel.org Subject: Re: telnet device Nikos A loong time ago I used to do some scripting (procomm, windows terminal emulator) with modems and I used ^M and ^J (character carret and character letter) and not CTRL+M nor CTRL+J in order to send CR and LF to modems and it worked with no problems. Lets wait info.ubchip tell us in that worked. 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 2010/1/22 Nikos Balkanas : > Thanks Alvaro, > > I don't know if this works with modems but these are control codes > related to vt100 terminal emulation. ^M is carriage return, ^J line > feed (not with carret, however, but control). They are eventually > mapped to ASCII characters (0x0D & 0x0A). If some modem types > implement them in their init strings, I doubt that it is a standard. Glad to > know, though. > > BR, > Nikos > - Original Message - From: "Alvaro Cornejo" > > To: "info.ubichip" > Cc: > Sent: Friday, January 22, 2010 3:30 PM > Subject: Re: telnet device > > > Try^M carret and upper case M > > is an ASCII ?? representation of the carriage return. > > I do use old xyplex terminal server to connect a bank of modems to > kannel using rawtcp mode in smsc_at config with no problems. > > 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 > > > > On Thu, Jan 21, 2010 at 6:24 PM, info.ubichip wrote: >> >> Hello, >> >> Do you know if it is possible to put some carriage return in the >> init-string of a modem. In my case, the modem is a telnet one and I >> have to make a non standard command before access to AT command. >> >> I would to have something like >> Init-string = "hellocommand[carriagereturn]AT+CNMI=1,2,0,0" >> >> >> Thanks in advance for your help >> >> >> > >
Re: telnet device
Nope. And if you use 2 init-strings, only one will be used (I believe the first). Nikos - Original Message - From: "info.ubichip" To: "'Alvaro Cornejo'" ; "'Nikos Balkanas'" Cc: Sent: Friday, January 22, 2010 10:44 PM Subject: RE: telnet device Hello Alvaro, Nikos, First thanks to your help, I will receive the equipment soon, and I will update you about that. I already take a look on the source of ths smsc_at, but there is no indication of any carriage return 'feature' so I'm hope the ^M will not be see as a two normal asciis characters if there is no mapping. If not, I think the solution will be to add some how one second init-string in the modem definitions. Is a init-string2 exist ? What do you think about ? -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: vendredi 22 janvier 2010 09:51 To: Nikos Balkanas Cc: info.ubichip; users@kannel.org Subject: Re: telnet device Nikos A loong time ago I used to do some scripting (procomm, windows terminal emulator) with modems and I used ^M and ^J (character carret and character letter) and not CTRL+M nor CTRL+J in order to send CR and LF to modems and it worked with no problems. Lets wait info.ubchip tell us in that worked. 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 2010/1/22 Nikos Balkanas : Thanks Alvaro, I don't know if this works with modems but these are control codes related to vt100 terminal emulation. ^M is carriage return, ^J line feed (not with carret, however, but control). They are eventually mapped to ASCII characters (0x0D & 0x0A). If some modem types implement them in their init strings, I doubt that it is a standard. Glad to know, though. BR, Nikos - Original Message - From: "Alvaro Cornejo" To: "info.ubichip" Cc: Sent: Friday, January 22, 2010 3:30 PM Subject: Re: telnet device Try^M carret and upper case M is an ASCII ?? representation of the carriage return. I do use old xyplex terminal server to connect a bank of modems to kannel using rawtcp mode in smsc_at config with no problems. 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 On Thu, Jan 21, 2010 at 6:24 PM, info.ubichip wrote: Hello, Do you know if it is possible to put some carriage return in the init-string of a modem. In my case, the modem is a telnet one and I have to make a non standard command before access to AT command. I would to have something like Init-string = "hellocommand[carriagereturn]AT+CNMI=1,2,0,0" Thanks in advance for your help
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 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 > > > > > > >
RE: Telnet device
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 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 > > > > > > >
Re: Telnet device
Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: > 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 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 se
RE: Telnet device
Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? >> 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: > 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 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:5
Re: Telnet device
Yes. I have not tried it myself (that's why I used the relative term "you might try"), but this was I believe your reponse to a mail in a similar situation Is that wrong? Nikos - Original Message - From: "Alvaro Cornejo" To: "info.ubichip" Cc: Sent: Wednesday, February 17, 2010 6:57 AM Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: 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 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 -- |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y
RE: Telnet device
Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? >> 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: > 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 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 >>
Re: Telnet device
Please post configuration. BR, Nikos - Original Message - From: "info.ubichip" To: "'Alvaro Cornejo'" ; Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: 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 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 [
RE: Telnet device
In sms_at.c, the following function looks not make the good thing : static int at2_login_device(PrivAT2data *privdata) { info(0, "AT2[%s]: Logging in", octstr_get_cstr(privdata->name)); at2_read_buffer(privdata, 0); gwthread_sleep(0.5); at2_read_buffer(privdata, 0); if((octstr_len(privdata->username) == 0 ) && (octstr_len(privdata->password)> 0)) { at2_wait_modem_command(privdata, 10, 3, NULL); /* wait for Password: prompt */ at2_send_modem_command(privdata, octstr_get_cstr(privdata->password), 2,0); /* wait for OK: */ at2_send_modem_command(privdata, "AT", 2,0); /* wait for OK: */ } else if((octstr_len(privdata->username) > 0 ) && (octstr_len(privdata->password)> 0)) { at2_wait_modem_command(privdata, 10, 2, NULL); /* wait for Login: prompt */ at2_send_modem_command(privdata, octstr_get_cstr(privdata->username), 10,3); /* wait fo Password: */ at2_send_modem_command(privdata, octstr_get_cstr(privdata->password), 2,0); /* wait for OK: */ at2_send_modem_command(privdata, "AT", 2,0); /* wait for OK: */ } return 0; } In my case the telnet device is the 'else if' case, looking first for a carriage return then the login prompt, then the password prompt and then send the first 'AT'. For an unknown reason, it send the first 'AT4 too early. Soes someone got idea of modification to be made ? thanks -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mercredi 17 février 2010 22:07 To: 'Alvaro Cornejo'; users@kannel.org Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? >> 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: > 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 por
Re: Telnet device
Interesting side note, if you're using vim and need to generate ^M, you don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: ctrl + v ctrl + m then you see ^M ... you can also type ctrl + v ctrl + enter which produces ^@ cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: Please post configuration. BR, Nikos - Original Message - From: "info.ubichip" To: "'Alvaro Cornejo'" ; Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: 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 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:"
Re: Telnet device
Yeap. That was my original observation to Alvaro who originally proposed it. However, this is a modem, not vim, and Alvaro is one of the most experienced with it in the group ;-) Coincidence or just staying with tradition in vim? BR, Nikos - Original Message - From: "Iain Dooley" To: "Nikos Balkanas" Cc: "info.ubichip" ; Sent: Thursday, February 18, 2010 8:46 AM Subject: Re: Telnet device Interesting side note, if you're using vim and need to generate ^M, you don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: ctrl + v ctrl + m then you see ^M ... you can also type ctrl + v ctrl + enter which produces ^@ cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: Please post configuration. BR, Nikos - Original Message - From: "info.ubichip" To: "'Alvaro Cornejo'" ; Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: 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 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 : l
Re: Telnet device
vim 4 eva! On Thu, 18 Feb 2010, Nikos Balkanas wrote: Yeap. That was my original observation to Alvaro who originally proposed it. However, this is a modem, not vim, and Alvaro is one of the most experienced with it in the group ;-) Coincidence or just staying with tradition in vim? BR, Nikos - Original Message - From: "Iain Dooley" To: "Nikos Balkanas" Cc: "info.ubichip" ; Sent: Thursday, February 18, 2010 8:46 AM Subject: Re: Telnet device Interesting side note, if you're using vim and need to generate ^M, you don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: ctrl + v ctrl + m then you see ^M ... you can also type ctrl + v ctrl + enter which produces ^@ cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: Please post configuration. BR, Nikos - Original Message - From: "info.ubichip" To: "'Alvaro Cornejo'" ; Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: 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 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
Re: Telnet device
actually, on reading this full thread (i had only glanced at the most recent message before) it looks to me like the portech code is using different line endings ... like it's programmed to use only a dos line ending or something. interesting experiment: compile kannel on windows and see if you get the same problem. cheers iain PS: KLS electronic in china make an excellent and cost effect usb/power over usb unit. i found them on alibaba.com and have used several of their units both directly from custom code i wrote using PHP and from kannel on freebsd (haven't tried with other OS') On Thu, 18 Feb 2010, Iain Dooley wrote: vim 4 eva! On Thu, 18 Feb 2010, Nikos Balkanas wrote: Yeap. That was my original observation to Alvaro who originally proposed it. However, this is a modem, not vim, and Alvaro is one of the most experienced with it in the group ;-) Coincidence or just staying with tradition in vim? BR, Nikos - Original Message - From: "Iain Dooley" To: "Nikos Balkanas" Cc: "info.ubichip" ; Sent: Thursday, February 18, 2010 8:46 AM Subject: Re: Telnet device Interesting side note, if you're using vim and need to generate ^M, you don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: ctrl + v ctrl + m then you see ^M ... you can also type ctrl + v ctrl + enter which produces ^@ cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: Please post configuration. BR, Nikos - Original Message - From: "info.ubichip" To: "'Alvaro Cornejo'" ; Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 f?vrier 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message----- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 f?vrier 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: 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 P
Re: Telnet device
I dunno. If you actually see the logs, portech doesn't seem to send "^M"s back. Maybe just needs a line feed? "^J"? PS: Definitely Windows is not the way to go. Aside from using an inflexible lining scheme, they do not allow you to experiment with it. Nikos - Original Message - From: "Iain Dooley" To: "Nikos Balkanas" Cc: Sent: Thursday, February 18, 2010 10:09 AM Subject: Re: Telnet device actually, on reading this full thread (i had only glanced at the most recent message before) it looks to me like the portech code is using different line endings ... like it's programmed to use only a dos line ending or something. interesting experiment: compile kannel on windows and see if you get the same problem. cheers iain PS: KLS electronic in china make an excellent and cost effect usb/power over usb unit. i found them on alibaba.com and have used several of their units both directly from custom code i wrote using PHP and from kannel on freebsd (haven't tried with other OS') On Thu, 18 Feb 2010, Iain Dooley wrote: vim 4 eva! On Thu, 18 Feb 2010, Nikos Balkanas wrote: Yeap. That was my original observation to Alvaro who originally proposed it. However, this is a modem, not vim, and Alvaro is one of the most experienced with it in the group ;-) Coincidence or just staying with tradition in vim? BR, Nikos - Original Message - From: "Iain Dooley" To: "Nikos Balkanas" Cc: "info.ubichip" ; Sent: Thursday, February 18, 2010 8:46 AM Subject: Re: Telnet device Interesting side note, if you're using vim and need to generate ^M, you don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: ctrl + v ctrl + m then you see ^M ... you can also type ctrl + v ctrl + enter which produces ^@ cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: Please post configuration. BR, Nikos - Original Message - From: "info.ubichip" To: "'Alvaro Cornejo'" ; Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 fιvrier 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 fιvrier 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: 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: T
Re: Telnet device
well, my motivation there was if you open a DOS line ending file in NVI (not vim :) then you see ^M at the end of each line ... ie. if you take a UNIX line ending away from a DOS line ending, you see ^M? just a thought ... cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: I dunno. If you actually see the logs, portech doesn't seem to send "^M"s back. Maybe just needs a line feed? "^J"? PS: Definitely Windows is not the way to go. Aside from using an inflexible lining scheme, they do not allow you to experiment with it. Nikos - Original Message - From: "Iain Dooley" To: "Nikos Balkanas" Cc: Sent: Thursday, February 18, 2010 10:09 AM Subject: Re: Telnet device actually, on reading this full thread (i had only glanced at the most recent message before) it looks to me like the portech code is using different line endings ... like it's programmed to use only a dos line ending or something. interesting experiment: compile kannel on windows and see if you get the same problem. cheers iain PS: KLS electronic in china make an excellent and cost effect usb/power over usb unit. i found them on alibaba.com and have used several of their units both directly from custom code i wrote using PHP and from kannel on freebsd (haven't tried with other OS') On Thu, 18 Feb 2010, Iain Dooley wrote: vim 4 eva! On Thu, 18 Feb 2010, Nikos Balkanas wrote: Yeap. That was my original observation to Alvaro who originally proposed it. However, this is a modem, not vim, and Alvaro is one of the most experienced with it in the group ;-) Coincidence or just staying with tradition in vim? BR, Nikos - Original Message - From: "Iain Dooley" To: "Nikos Balkanas" Cc: "info.ubichip" ; Sent: Thursday, February 18, 2010 8:46 AM Subject: Re: Telnet device Interesting side note, if you're using vim and need to generate ^M, you don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: ctrl + v ctrl + m then you see ^M ... you can also type ctrl + v ctrl + enter which produces ^@ cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: Please post configuration. BR, Nikos - Original Message - From: "info.ubichip" To: "'Alvaro Cornejo'" ; Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 fιvrier 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 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 The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 fιvrier 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried "^M" carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip wrote: 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-strin
RE: Telnet device
Hello, Some update on my issues : I managed to modify the sms_at code in order to send the command 'module' after the login and password. And the first issue has been resolved by bypassing the speed detection the at2_device_thread function. I know it is not probably the best way to do it but right now it is working and it is not disturbing other modem I got on this kannel server. If someone got an idea to make this modification more reliable, I 'm open to all suggestions. Best regards -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Nikos Balkanas Sent: jeudi 18 fevrier 2010 00:17 To: Iain Dooley Cc: users@kannel.org Subject: Re: Telnet device I dunno. If you actually see the logs, portech doesn't seem to send "^M"s back. Maybe just needs a line feed? "^J"? PS: Definitely Windows is not the way to go. Aside from using an inflexible lining scheme, they do not allow you to experiment with it. Nikos - Original Message - From: "Iain Dooley" To: "Nikos Balkanas" Cc: Sent: Thursday, February 18, 2010 10:09 AM Subject: Re: Telnet device actually, on reading this full thread (i had only glanced at the most recent message before) it looks to me like the portech code is using different line endings ... like it's programmed to use only a dos line ending or something. interesting experiment: compile kannel on windows and see if you get the same problem. cheers iain PS: KLS electronic in china make an excellent and cost effect usb/power over usb unit. i found them on alibaba.com and have used several of their units both directly from custom code i wrote using PHP and from kannel on freebsd (haven't tried with other OS') On Thu, 18 Feb 2010, Iain Dooley wrote: > vim 4 eva! > > On Thu, 18 Feb 2010, Nikos Balkanas wrote: > >> Yeap. That was my original observation to Alvaro who originally proposed >> it. However, this is a modem, not vim, and Alvaro is one of the most >> experienced with it in the group ;-) >> >> Coincidence or just staying with tradition in vim? >> >> BR, >> Nikos >> - Original Message - From: "Iain Dooley" >> >> To: "Nikos Balkanas" >> Cc: "info.ubichip" ; >> Sent: Thursday, February 18, 2010 8:46 AM >> Subject: Re: Telnet device >> >> >> Interesting side note, if you're using vim and need to generate ^M, you >> don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: >> >> ctrl + v ctrl + m >> >> then you see ^M ... you can also type ctrl + v ctrl + enter which >> produces >> ^@ >> >> cheers >> iain >> >> On Thu, 18 Feb 2010, Nikos Balkanas wrote: >> >>> Please post configuration. >>> >>> BR, >>> Nikos >>> - Original Message - From: "info.ubichip" >>> To: "'Alvaro Cornejo'" ; >>> Sent: Thursday, February 18, 2010 8:07 AM >>> Subject: RE: Telnet device >>> >>> >>> Hello all, >>> >>> Just to make an update, I still got my two issues. It appears the modem >>> generated a carriage return before the login string 'username:', it >>> should >>> disturb the login process. If someone got any clue or idea to make >>> modification ? >>> >>> The ^M looks not working as well to insert a carriage return in the >>> different init-string. Does anyone have been got similar need to >>> integrate >>> with telnet device or so ? >>> >>> Thanks in advance >>> >>> -Original Message- >>> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On >>> Behalf >>> Of info.ubichip >>> Sent: mardi 16 fιvrier 2010 22:00 >>> To: 'Alvaro Cornejo' >>> Cc: users@kannel.org >>> Subject: RE: Telnet device >>> >>> Yes, I tried it but it looks I got issue before because the >>> login/password >>> is not filled in the protocol. I was wondering if something is not well >>> implemented in the telnet dialogue. Do you have any clue on this before >>> ? >>> >>>>> 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]
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hello arnau, I used the following confs and work just fine with two of this modems, among other smsc's a modems.conf file with group = modems id = generic name = "Generic Modem" group = modems id = wavecom name = Wavecom detect-string = "WAVECOM" # within the main core kannel.conf include = "/etc/kannel/modems.conf" # group = smsc smsc = at smsc-id = "mymodem" modemtype = wavecom speed = 115200 device = telnet port = 5000 host = 10.27.1.179 keepalive = 240 smsc-username = admin smsc-password = admin throughput = 1 allowed-smsc-id = "mymodem" denied-smsc-id ="mymodem2" alt-charset = ISO-8859-1 ## it truely works, G. Daniel Camacho S. IT - Sistemas +(502)-40275496 > Hi all, > > I'm very newbie with Kannel and I'd like to configure it to > _receive_ SMSs from a Multi-Tech MTCBA-G-EN-F4 GRPS(Ethernet) modem. I > have been searching information in the list and although I found an > old message from Tony Kirkham, he doesn't mention if he solved or not > the problem. > > In theory I could configure this modem as a telnet device but I > haven't been able to do it. I have also seen on this mailing list that > there are people having problems configuring this kind of devices. > > Any help or any url where I could check how to configure this kind of > devices? > -- > Arnau > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hello Daniel, Cool, it works but now I have another problem :-(. When I receive an incoming SMS I want to forward it to an url, to do so I have configured in the kannel.conf the following: group = sms-service get-url = "http://127.0.0.1/kannel.php?sender=%p&text=%r"; catch-all = true And when I receive the message I get the following Panic error: 2010-07-27 19:54:54 [3699] [4] DEBUG: AT2[mymodem]: received message from SMSC: +346090 2010-07-27 19:54:54 [3699] [4] DEBUG: AT2[mymodem]: Numeric sender (international) <+3466***> 2010-07-27 19:54:54 [3699] [4] DEBUG: AT2[mymodem]: User data length read as (17) 2010-07-27 19:54:54 [3699] [4] DEBUG: AT2[mymodem]: Udh decoding done len=17 udhi=0 udhlen=0 udh='' 2010-07-27 19:54:54 [3699] [4] PANIC: gwlib/gw-rwlock.c:137: gw_rwlock_rdlock: Assertion `lock != NULL' failed. 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox(gw_panic+0xaf) [0x80d264f] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox(gw_rwlock_rdlock+0x6c) [0x80c7c5c] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox(route_incoming_to_boxc+0x5a) [0x8056eca] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox(bb_smscconn_receive+0xad0) [0x805dde0] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox() [0x806ebf7] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox() [0x8071910] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox() [0x80c9b2d] 2010-07-27 19:54:54 [3699] [4] PANIC: /lib/i686/cmov/libpthread.so.0(+0x5955) [0xb7769955] 2010-07-27 19:54:54 [3699] [4] PANIC: /lib/i686/cmov/libc.so.6(clone+0x5e) [0xb715010e] 2010-07-27 19:55:16 [3728] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'. I'm running kannel 1.4.3-2 over Debian sid. Any idea? Thank you very much -- Arnau
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hi, 1) Use keyword = default in your sms-service. 2) Read User's guide about configuring smsbox-route. BR, Nikos - Original Message - From: "Arnau Rebassa" To: Sent: Tuesday, July 27, 2010 9:14 PM Subject: Re: Telnet device (Multi-Tech MTCBA-G-EN-F4) Hello Daniel, Cool, it works but now I have another problem :-(. When I receive an incoming SMS I want to forward it to an url, to do so I have configured in the kannel.conf the following: group = sms-service get-url = "http://127.0.0.1/kannel.php?sender=%p&text=%r"; catch-all = true And when I receive the message I get the following Panic error: 2010-07-27 19:54:54 [3699] [4] DEBUG: AT2[mymodem]: received message from SMSC: +346090 2010-07-27 19:54:54 [3699] [4] DEBUG: AT2[mymodem]: Numeric sender (international) <+3466***> 2010-07-27 19:54:54 [3699] [4] DEBUG: AT2[mymodem]: User data length read as (17) 2010-07-27 19:54:54 [3699] [4] DEBUG: AT2[mymodem]: Udh decoding done len=17 udhi=0 udhlen=0 udh='' 2010-07-27 19:54:54 [3699] [4] PANIC: gwlib/gw-rwlock.c:137: gw_rwlock_rdlock: Assertion `lock != NULL' failed. 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox(gw_panic+0xaf) [0x80d264f] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox(gw_rwlock_rdlock+0x6c) [0x80c7c5c] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox(route_incoming_to_boxc+0x5a) [0x8056eca] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox(bb_smscconn_receive+0xad0) [0x805dde0] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox() [0x806ebf7] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox() [0x8071910] 2010-07-27 19:54:54 [3699] [4] PANIC: /usr/sbin/bearerbox() [0x80c9b2d] 2010-07-27 19:54:54 [3699] [4] PANIC: /lib/i686/cmov/libpthread.so.0(+0x5955) [0xb7769955] 2010-07-27 19:54:54 [3699] [4] PANIC: /lib/i686/cmov/libc.so.6(clone+0x5e) [0xb715010e] 2010-07-27 19:55:16 [3728] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'. I'm running kannel 1.4.3-2 over Debian sid. Any idea? Thank you very much -- Arnau
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hi all, 2010/7/27 Nikos Balkanas : > 1) Use keyword = default in your sms-service. > 2) Read User's guide about configuring smsbox-route. Thank you everybody for your help, I already received the MO and I'm able to deliver them to an URL. The problem I'm facing now is although I have configured the sms-service as: group = sms-service get-url = "http://127.0.0.1/kannel.php?enduser_number=%p&service_number=%P&mbody=%a"; omit-empty = true catch-all = true keyword = default I always receive the parameter service_number with the value1234. I think this is a default value, but I don't know where or how to configure in order that the number to which the SMS was send appears. Any help? The device I use to receive the MO is a Multi-Tech MTCBA-G-EN-F4 modem. BR -- Arnau
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hi, What you have as service_number is the destination number. What is the meaning of destination number for an MO? Nothing at all. The sms will go back to the sender, which is you enduser_number. BR, Nikos - Original Message - From: "Arnau Rebassa" To: Sent: Wednesday, July 28, 2010 10:33 PM Subject: Re: Telnet device (Multi-Tech MTCBA-G-EN-F4) Hi all, 2010/7/27 Nikos Balkanas : 1) Use keyword = default in your sms-service. 2) Read User's guide about configuring smsbox-route. Thank you everybody for your help, I already received the MO and I'm able to deliver them to an URL. The problem I'm facing now is although I have configured the sms-service as: group = sms-service get-url = "http://127.0.0.1/kannel.php?enduser_number=%p&service_number=%P&mbody=%a"; omit-empty = true catch-all = true keyword = default I always receive the parameter service_number with the value1234. I think this is a default value, but I don't know where or how to configure in order that the number to which the SMS was send appears. Any help? The device I use to receive the MO is a Multi-Tech MTCBA-G-EN-F4 modem. BR -- Arnau
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hi Nikos, On Wednesday, July 28, 2010, Nikos Balkanas wrote: > Hi, > > What you have as service_number is the destination number. What is the > meaning of destination number for an MO? Nothing at all. The sms will go back > to the sender, which is you enduser_number. In my case is important as I use it as short code. In kannel I just forward all the messages to a parser where it parses the message body together with the destination number. The service depends on the short code and the keyword (it can contain spaces). If there isn't any other option I could set it "hardcoded" in the get-url in the sms-service definition, but I'd try to avoid it if possible. thanks -- Arnau
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hi, All you need is the sender number. In MOs destination number = sender number. Get the short code from there. It is not going anywhere else, just the place it originated from. BR, Nikos - Original Message - From: "Arnau Rebassa" Cc: Sent: Thursday, July 29, 2010 12:07 AM Subject: Re: Telnet device (Multi-Tech MTCBA-G-EN-F4) Hi Nikos, On Wednesday, July 28, 2010, Nikos Balkanas wrote: Hi, What you have as service_number is the destination number. What is the meaning of destination number for an MO? Nothing at all. The sms will go back to the sender, which is you enduser_number. In my case is important as I use it as short code. In kannel I just forward all the messages to a parser where it parses the message body together with the destination number. The service depends on the short code and the keyword (it can contain spaces). If there isn't any other option I could set it "hardcoded" in the get-url in the sms-service definition, but I'd try to avoid it if possible. thanks -- Arnau
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hi Nikos, 2010/7/29 Nikos Balkanas : > Hi, > > All you need is the sender number. In MOs destination number = sender > number. Get the short code from there. It is not going anywhere else, just > the place it originated from. I think I'm missing something or I don't understand what you mean. Imagine I have the following situation: The enduser with telephone number +346 sends a message to the service number +34600 with the text "service foo bar" Then I'd like to build the get-url: htt://127.0.0.1/kannel.php?enduser_number=346&service_number=346&mbody=service+foo+bar Trying to achieve that I have configured the get-url as: get-url = "http://127.0.0.1/kannel.php?enduser_number=%p&service_number=%P&mbody=%a"; Then what I receive on the kannel.php script is http://127.0.0.1/kannel.php?enduser_number=346&service_number=1234P&mbody=service+foo+bar According to the documentation: %P the phone number of the receiver of the SMS message Is it possible to achieve what I want or do I have to hard-code the number where the SMS has been sent to? BR -- Arnau
Re: Telnet device (Multi-Tech MTCBA-G-EN-F4)
Hi, %P is not what you want. Maybe %o or %n can help. BR, Nikos - Original Message - From: "Arnau Rebassa" To: Sent: Thursday, July 29, 2010 10:11 AM Subject: Re: Telnet device (Multi-Tech MTCBA-G-EN-F4) Hi Nikos, 2010/7/29 Nikos Balkanas : Hi, All you need is the sender number. In MOs destination number = sender number. Get the short code from there. It is not going anywhere else, just the place it originated from. I think I'm missing something or I don't understand what you mean. Imagine I have the following situation: The enduser with telephone number +346 sends a message to the service number +34600 with the text "service foo bar" Then I'd like to build the get-url: htt://127.0.0.1/kannel.php?enduser_number=346&service_number=346&mbody=service+foo+bar Trying to achieve that I have configured the get-url as: get-url = "http://127.0.0.1/kannel.php?enduser_number=%p&service_number=%P&mbody=%a"; Then what I receive on the kannel.php script is http://127.0.0.1/kannel.php?enduser_number=346&service_number=1234P&mbody=service+foo+bar According to the documentation: %P the phone number of the receiver of the SMS message Is it possible to achieve what I want or do I have to hard-code the number where the SMS has been sent to? BR -- Arnau