You must have a "generic" modem definition on you config file.

Also look for your modems AT command reference and verify wich command set
is supports and adjust your modem config accordingly

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 Sat, Jul 18, 2009 at 2:20 PM, suman ravuri <[email protected]> wrote:

> Hi Nikos,
>               Thanks for the information. Now I cleaned modems group, but
> still having problem with ATI command. When I run wvdialconf it says ATI
> command is undefined.
>
> # MODEM DEFINITIONS
> group = modems
> id = teltonika
> name = "Teltonika G10"
> detect-string = "Teltonika"
> init-string = "ATZ"
> init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
>
> Error:
> 2009-07-19 12:48:45 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened.
> Telnet mode = 0
> 2009-07-19 12:48:46 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened
> 2009-07-19 12:48:46 [3137] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
> 2009-07-19 12:48:46 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ^M
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT&F^M
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- AT&F
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ATE0^M
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- ATE0
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ATI^M
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- Undefined
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: Cannot detect
> modem, using generic
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: Reading modem
> definitions from </etc/kannelworking.conf>
> 2009-07-19 12:48:48 [3137] [6] DEBUG: AT2[/dev/ttyUSB0]: Found <1> modems
> in config
> 2009-07-19 12:48:48 [3137] [6] PANIC: AT2[/dev/ttyUSB0]: Cannot detect
> modem and generic not found
> 2009-07-19 12:48:48 [3137] [6] PANIC: ./bearerbox(gw_panic+0xaf)
> [0x80ca29f]
> 2009-07-19 12:48:48 [3137] [6] PANIC: ./bearerbox [0x806c900]
> 2009-07-19 12:48:48 [3137] [6] PANIC: ./bearerbox [0x80c0d9d]
> 2009-07-19 12:48:48 [3137] [6] PANIC: /lib/libpthread.so.0 [0xb3d935]
> 2009-07-19 12:48:48 [3137] [6] PANIC: /lib/libc.so.6(clone+0x5e) [0xa7182e]
>
> Not sure what to do if ATI command does not work. Please suggest me the way
> out
>
>
> Thanks,
> Suman
>
>
>
> 2009/7/19 Nikos Balkanas <[email protected]>
>
> Hi,
>>
>> This is a very common configuration mistake. Users keep configuring a
>> bunch of init-scripts, and they expect that all of them will be given to the
>> modem. In fact, the way configuration works in kannel, only the first of
>> those will be used. I suspect that If it is only "AT" or something
>> inadequate, kannel will supplement its own values (AT&F ?).
>>
>> So, either concatenate everyting in 1 init-string like:
>>
>> init-string="ATE0V1 &C1 &D2 S0=0"
>>
>> or for better debuging or sequential multi-stage initialization:
>>
>> init-string="ATE0V1;AT &C1 &D2 S0=0"
>>
>> However skip the <cr>. :-)
>>
>> I don't know if that will fix your problem, but at least you should be
>> able to initialize your modem the way you want to.
>>
>> BR,
>> Nikos
>> ----- Original Message ----- From: "ravurisuman" <[email protected]>
>> To: <[email protected]>
>> Sent: Saturday, July 18, 2009 9:48 AM
>> Subject: Unable to connecy to teltonika gsm modem
>>
>>
>>
>>
>>> Hi All,
>>>        I am trying to configure kannel with 'TELTONIKA' GSM modem. I used
>>> the following modem configuration.
>>>
>>> # MODEM DEFINITIONS
>>> group = modems
>>> id = Teltonika
>>> name = "Teltonika ModemUSB G10"
>>> detect-string = "Teltonika"
>>> init-string = "AT<cr>"
>>> init-string = "ATE0V1<cr>"
>>> init-string = "AT &C1 &D2 V1 S0=0<cr>"
>>>
>>>   I have not pasted remaining configuartion infromation as it is pretty
>>> much same for all configurations. When I try to bearer box I got the
>>> following error in logs.
>>>
>>> 009-07-18 23:47:23 [3254] [0] INFO:
>>> ----------------------------------------
>>> 2009-07-18 23:47:23 [3254] [0] INFO: Kannel bearerbox II version 1.4.3
>>> starting
>>> 2009-07-18 23:47:23 [3254] [0] INFO: MAIN: Start-up done, entering
>>> mainloop
>>> 2009-07-18 23:47:23 [3254] [0] DEBUG: AT2[/dev/ttyUSB0]: start called
>>> 2009-07-18 23:47:24 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened
>>> 2009-07-18 23:47:24 [3254] [6] INFO: AT2[/dev/ttyUSB0]: speed set to
>>> 115200
>>> 2009-07-18 23:47:24 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ^M
>>> 2009-07-18 23:47:26 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
>>> 2009-07-18 23:47:26 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
>>> 2009-07-18 23:47:26 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
>>> 2009-07-18 23:47:26 [3254] [6] INFO: AT2[/dev/ttyUSB0]: Closing device
>>> 2009-07-18 23:47:26 [3254] [6] INFO: AT2[/dev/ttyUSB0]: detect speed is
>>> 115200
>>> 2009-07-18 23:47:26 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: detecting modem
>>> type
>>> 2009-07-18 23:47:26 [3254] [6] INFO: AT2[/dev/ttyUSB0]: opening device
>>> 2009-07-18 23:47:26 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened.
>>> Telnet mode = 0
>>> 2009-07-18 23:47:27 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened
>>> 2009-07-18 23:47:27 [3254] [6] INFO: AT2[/dev/ttyUSB0]: speed set to
>>> 115200
>>> 2009-07-18 23:47:27 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ^M
>>> 2009-07-18 23:47:29 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
>>> 2009-07-18 23:47:29 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
>>> 2009-07-18 23:47:29 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
>>> 2009-07-18 23:47:29 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT&F^M
>>> 2009-07-18 23:47:29 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- AT&F
>>> 2009-07-18 23:47:29 [3254] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- ERROR
>>> 2009-07-18 23:47:29 [3254] [6] ERROR: AT2[/dev/ttyUSB0]: Generic error:
>>> ERROR
>>>
>>> I think GSM modem I am using is unable to detect the  AT&F command. GSM
>>> modem  I am using is TELTONIKA G10 modem, I tried to get some information
>>> about this modem, but user guide is not useful to me.
>>>
>>>
>>> Thanks,
>>> Suman
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Unable-to-connecy-to-teltonika-gsm-modem-tp24545192p24545192.html
>>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>
>

Reply via email to