Seems like the permissions for /dev/ttyUSB0 are wrong for your user.
Fix the permissions and it should  be ok.

Hope it helps,

Alejandro

On 6/13/07, ilja <[EMAIL PROTECTED]> wrote:

i don't know what to do!?! because i get error "AT2[/dev/ttyUSB0]:
at2_device_thread: open_at2_device failed. " and "ERROR: System error 13:
Permission denied"

i have Nokia 6210 phone with USB cable

the device is ttyUSB0 !!! see my logfile messages

messages log
Jun 13 21:10:14 noname kernel: usb 1-2: new full speed USB device using
uhci_hcd and address 7
Jun 13 21:10:15 noname kernel: usb 1-2: configuration #1 chosen from 1
choice
Jun 13 21:10:15 noname kernel: pl2303 1-2:1.0: pl2303 converter detected
Jun 13 21:10:15 noname kernel: usb 1-2: pl2303 converter now attached to
ttyUSB0


my kannel.conf

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
#log-file = "/var/log/kannel.log"
#log-level = 0
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
unified-prefix = "00358,0"
#access-log = "access.log"
#store-file = " kannel.store"
#ssl-certkey-file = "mycertandprivkeyfile.pem"


# SMSC CONNECTIONS
#
#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 10000
#connect-allow-ip = 127.0.0.1


#GSM modem
#This driver allows a GSM Modem or Phone to be connected to Kannel and work
as a  virtual SMSC

group = smsc
smsc = at
modemtype = nokiaphone
#device = /dev/ttyS0
device = /dev/ttyUSB0
speed = 115200
#speed = 9600
#pin = 2345
connect-allow-ip = 127.0.0.1

include=/usr/share/doc/kannel/examples/modems.conf

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"


# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""

# this sender is for Kannel relay testing (http_smsc)

group = sendsms-user
username = bar
password = foo
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"


# SERVICES

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# this service is for Kannel relay testing, when this Kannel
# works as relay gateway

group = sms-service
keyword = relay
get-url = "http://localhost:15130/sms?user=bar&pass=foo&from=%p&to=%P&text=%
r"
max-messages = 0


# there should be default always

group = sms-service
keyword = default
text = "No service specified"



bearerbox.log
2007-06-13 21:28:23 [9316] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `0'.
2007-06-13 21:28:23 [9316] [0] INFO: HTTP: Opening server at port 13000.
2007-06-13 21:28:23 [9316] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2007-06-13 21:28:23 [9316] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2007-06-13 21:28:23 [9316] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2007-06-13 21:28:23 [9316] [0] DEBUG: starting smsbox connection module
2007-06-13 21:28:23 [9316] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2007-06-13 21:28:23 [9316] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
2007-06-13 21:28:23 [9316] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
2007-06-13 21:28:23 [9316] [0] INFO: Set SMS resend frequency to 60 seconds.
2007-06-13 21:28:23 [9316] [0] INFO: SMS resend retry set to unlimited.
2007-06-13 21:28:23 [9316] [0] INFO: DLR rerouting for smsc id <(null)>
disabled.
2007-06-13 21:28:23 [9316] [0] INFO: AT2[/dev/ttyUSB0]: configuration shows
modemtype <nokiaphone>
2007-06-13 21:28:23 [9316] [0] DEBUG: AT2[/dev/ttyUSB0]: Reading modem
definitions from </etc/kannel/kannel.conf>
2007-06-13 21:28:23 [9316] [0] DEBUG: Loading include file
`/usr/share/doc/kannel/examples/modems.conf' (on line 62 of file
/etc/kannel/kannel.conf).
2007-06-13 21:28:23 [9316] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 9316.
2007-06-13 21:28:23 [9316] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 9316.
2007-06-13 21:28:23 [9316] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 9316.
2007-06-13 21:28:23 [9316] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 9316.
2007-06-13 21:28:23 [9316] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 9316.
2007-06-13 21:28:23 [9316] [0] DEBUG: AT2[/dev/ttyUSB0]: Found <13> modems
in config
2007-06-13 21:28:23 [9316] [0] INFO: AT2[/dev/ttyUSB0]: read modem
definition for <Nokia Phone>
2007-06-13 21:28:23 [9316] [0] DEBUG: Started thread 6
(gw/smsc/smsc_at.c:at2_device_thread)
2007-06-13 21:28:23 [9316] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2007-06-13 21:28:23 [9316] [0] INFO:
----------------------------------------
2007-06-13 21:28:23 [9316] [0] INFO: Kannel bearerbox II version 1.4.1
starting
2007-06-13 21:28:23 [9316] [0] INFO: MAIN: Start-up done, entering mainloop
2007-06-13 21:28:23 [9316] [0] DEBUG: AT2[/dev/ttyUSB0]: start called
2007-06-13 21:28:23 [9316] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 9316.
2007-06-13 21:28:23 [9316] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2007-06-13 21:28:23 [9316] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2007-06-13 21:28:23 [9316] [6] ERROR: System error 13: Permission denied
2007-06-13 21:28:23 [9316] [6] ERROR: AT2[/dev/ttyUSB0]: at2_device_thread:
open_at2_device failed. Terminating
2007-06-13 21:28:23 [9316] [6] ERROR: System error 13: Permission denied
2007-06-13 21:28:23 [9316] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2007-06-13 21:28:23 [9316] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2007-06-13 21:28:23 [9316] [6] ERROR: System error 13: Permission denied
2007-06-13 21:28:23 [9316] [6] ERROR: AT2[/dev/ttyUSB0]: at2_device_thread:
open_at2_device failed. Terminating
2007-06-13 21:28:23 [9316] [6] ERROR: System error 13: Permission denied

--
View this message in context: 
http://www.nabble.com/open-failed%21-ERRNO%3D13-tf3916446.html#a11104978
Sent from the Kannel - User mailing list archive at Nabble.com.





--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri

Reply via email to