You can see the permissions with:

ls -l /dev/ttyUSB0

and change them with the chmod command.

-----Original Message-----
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Alvaro Cornejo
Sent: vrijdag 9 juli 2010 15:55
To: Helge Wiemann
Cc: users@kannel.org
Subject: Re: already problems by connecting to the modem

The user you use to run kannel must have write permissions to the device.


|---------------------------------------------------------------------------
--------------------------------------|
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 Fri, Jul 9, 2010 at 8:20 AM, Helge Wiemann <h...@open-your-bytes.de> wrote:
> Hello altogether,
>
> now finally my modem is working:
>
> ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
> ttyUSB0<*1>: ATQ0 V1 E1 --
> ttyUSB0<*1>: failed with 9600 baud, next try: 115200 baud
> ttyUSB0<*1>: ATQ0 V1 E1 -- OK
> ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
> ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
> ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
> ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
> ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
> ttyUSB0<*1>: Modem Identifier: ATI -- WAVECOM MODEM
> ttyUSB0<*1>: Speed 230400: AT -- x
> ttyUSB0<*1>: Speed 230400: AT -- x
> ttyUSB0<*1>: Speed 230400: AT -- x
> ttyUSB0<*1>: Max speed is 115200; that should be safe.
> ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
>
>
> But when I am starting bearerbox as su, I got the following output:
>
> 2010-07-09 15:12:36 [5905] [8] DEBUG: Thread 8
> (gw/bb_udp.c:udp_receiver) maps to pid 5905.
> 2010-07-09 15:12:36 [5905] [0] INFO: MAIN: Start-up done, entering
mainloop
> 2010-07-09 15:12:36 [5905] [0] DEBUG: AT2[/dev/ttyUSB0]: start called
> 2010-07-09 15:12:36 [5905] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
> maps to pid 5905.
> 2010-07-09 15:12:36 [5905] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender)
> maps to pid 5905.
> 2010-07-09 15:12:36 [5905] [5] DEBUG: Thread 5
> (gw/bb_boxc.c:smsboxc_run) maps to pid 5905.
> 2010-07-09 15:12:36 [5905] [10] DEBUG: Thread 10
> (gw/bb_udp.c:udp_receiver) maps to pid 5905.
> 2010-07-09 15:12:36 [5905] [3] DEBUG: Thread 3
> (gw/bb_http.c:httpadmin_run) maps to pid 5905.
> 2010-07-09 15:12:36 [5905] [11] DEBUG: Thread 11
> (gw/bb_udp.c:udp_sender) maps to pid 5905.
> 2010-07-09 15:12:36 [5905] [6] DEBUG: Thread 6
> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 5905.
> 2010-07-09 15:12:36 [5905] [6] DEBUG: AT2[/dev/ttyUSB0]: detecting modem
> type
> 2010-07-09 15:12:36 [5905] [6] INFO: AT2[/dev/ttyUSB0]: opening device
> 2010-07-09 15:12:36 [5905] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
> ERRNO=13
> 2010-07-09 15:12:36 [5905] [6] ERROR: System error 13: Permission denied
> 2010-07-09 15:12:36 [5905] [6] ERROR: AT2[/dev/ttyUSB0]: Couldn't
> connect (retrying in 10 seconds).
>
>
> What about this permission denied and the errorno 13?
>
> Can anybody help me?
>
> Regards, Helge
>




Reply via email to