sangprabv , 
the guy said the permission has been fixed.
It is a very unfortunate idea to run Kannel as root.
Instead make an unprivileged user (let's say kannel) and set permissions on
the device (here /dev/ttyUSB0) or add Kannel to uucp (if uucp has permission
on the device).

Samir, 
if existing modem configurations are not working with your device, you have
to explicitly set 'modemtype' in your AT smsc conf and write the appropriate
configuration for that device. Parameters differ from one device to another
and usually your only help if no one has experience with that specific
device is Kannel user guide or source code (to see which are the accepted
parameters) and AT Command reference (for parameter values). And a lot o
patience and determination to experiment. I have just spent 2 hours
configuring a new Premicell...
Good luck!



> -----Original Message-----
> From: sangprabv [mailto:[EMAIL PROTECTED]
> Sent: 18 April 2008 12:13
> To: Samir Mazzawi
> Cc: [email protected]
> Subject: Re: Kannel and Huaweei E220
> 
> Hi,
> It's about permission or privilege issue. You need to run Kannel is
> super user or root. But before you do that, make sure the modem is
> properly detected. Huawei E220 act as a GSM Modem and a storage device
> on first detection. You need to re detect it by executing :
> modprobe -r uhci_hcd
> modprobe uhci_hcd
> Once again above command must be run as a super user or root
> 
> Regards,
> 
> 
> Willy
> On Thu, 2008-04-17 at 14:14 +0200, Samir Mazzawi wrote:
> > Hi,
> >
> > I am trying to run kannel with a Huaweei E220 modem do anyone know if
> > this works?
> >
> > 2008-04-12 01:24:02 [4014] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
> ERRNO=13
> > 2008-04-12 01:24:02 [4014] [6] ERROR: System error 13: Permission denied
> > 2008-04-12 01:24:02 [4014] [6] INFO: AT2[/dev/ttyUSB0]: opening device
> > 2008-04-12 01:24:03 [4014] [6] INFO: AT2[/dev/ttyUSB0]: speed set to
> 57600
> >
> > I fixed the permission error and it looks like it starts to open
> > device but messages is just in que.
> >
> > My modems.conf:
> >
> > # Modems configuration
> > #
> > # Example and default values
> > #
> > # group = modems
> > # id = "my-id"
> > # name = "my-name"
> > # detect-string = "MODEM"
> > # detect-string2 = "" [Default]
> > # init-string = "AT+CNMI=1,2,0,0,0" [Default]
> > # speed = 9600 [Default]
> > # enable-hwhs = "AT+IFC=2,2" [Default]
> > # need-sleep = false [Default]
> > # no-pin = false [Default]
> > # no-smsc = false [Default]
> > # sendline-sleep = 100 [Default, miliseconds]
> > # keepalive-cmd = "AT" [Default]
> > # broken = false [Default]
> > # message-storage = "SM"
> > # enable-mms = false [Default]
> >
> >
> > # If modemtype=auto, try everyone and defaults to this one
> > group = modems
> > id = generic
> > name = "Generic Modem"
> >
> >
> > group = modems
> > id = keegan
> > name = Keegan
> > detect-string = "KEEGAN"
> > speed = 115200
> > no-pin = true
> > no-smsc = true
> > #message-storage = "SM"
> > enable-hwhs = "AT+IFC=2,2"
> > enable-mms = true
> > reset-string = "ATZ"
> > #init-string = "AT+CNMI=0,0,0,0,0"
> > #init-string = "AT+CMGF=1"
> >
> > group = modems
> > id = wavecom
> > name = Wavecom
> > detect-string = "WAVECOM"
> >
> > group = modems
> > id = premicell
> > name = Premicell
> > detect-string = "PREMICEL"
> > no-pin = true
> > no-smsc = true
> >
> > group = modems
> > id = siemens_tc35
> > name = "Siemens TC35"
> > detect-string = "SIEMENS"
> > detect-string2 = "TC35"
> > init-string = "AT+CNMI=1,2,0,1,1"
> > speed = 19200
> > enable-hwhs = "AT\\Q3"
> > need-sleep = true
> >
> > group = modems
> > id = siemens_m20
> > name = "Siemens M20"
> > detect-string = "SIEMENS"
> > detect-string2 = "M20"
> > speed = 19200
> > enable-hwhs = "AT\\Q3"
> > keepalive-cmd = "AT+CBC;+CSQ"
> > need-sleep = true
> >
> > group = modems
> > id = siemens_sl45
> > name = "Siemens SL45"
> > detect-string = "SIEMENS"
> > detect-string2 = "SL45"
> > init-string = "AT+CNMI=1,2,2,2,1"
> > keepalive-cmd = "AT+CBC;+CSQ"
> > speed = 19200
> > enable-hwhs = "AT\\Q3"
> > need-sleep = true
> > message-storage = "SM"
> >
> > group = modems
> > id = nokiaphone
> > name = "Nokia Phone"
> > detect-string = "Nokia Mobile Phone"
> > need-sleep = true
> > keepalive-cmd = "AT+CBC;+CSQ"
> > enable-mms = true
> >
> > group = modems
> > id = falcom
> > name = "Falcom"
> > detect-string = "Falcom"
> > #no-smsc = true
> >
> > group = modems
> > id = ericsson_r520m
> > name = "Ericsson R520m"
> > detect-string = "R520m"
> > init-string = "AT+CNMI=3,2,0,0"
> >
> > group = modems
> > id = ericsson_t68
> > name = "Ericsson T68"
> > detect-string = "T68"
> > init-string = "AT+CNMI=3,3"
> > keepalive-cmd = "AT+CBC;+CSQ"
> > broken = true
> >
> > group = modems
> > id = sonyericsson_gr47
> > name = "Sony Ericsson GR47"
> > detect-string = "GR47"
> > message-storage = "ME"
> > # use this init-string for non sim-buffering
> > init-string = "AT+CNMI=3,2,0,0"
> > # use this init-string for sim-buffering
> > #init-string = "AT+CNMI=3,1,0,0"
> > reset-string = "ATZ"
> > broken = true
> >
> > group = modems
> > id = alcatel
> > name = "Alcatel"
> > detect-string = "Alcatel"
> > init-string = "AT+CNMI=3,2,0,0"
> >
> > group = modems
> > id = sonyericsson_T630-T628
> > name = "Sony Ericsson T630-T628?
> > init-string = "AT+CNMI=2,3,2,0,0;+CMGF=0?
> > keepalive-cmd = "AT+CBC;+CSQ;+CMGF=0?
> > broken = true
> >
> >
> --
> [sangprabv]
> http://www.sangprabv.web.id
> http://www.binbit.co.id
> 
> 



Reply via email to