gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nokia 6155 on Gentoo 2006.1 with Gnokii 0.6.14 - works


From: Mark Kirkwood
Subject: Re: Nokia 6155 on Gentoo 2006.1 with Gnokii 0.6.14 - works
Date: Mon, 18 Dec 2006 12:28:22 +1300
User-agent: Thunderbird 1.5.0.8 (X11/20061129)

Pawel Kot wrote:


You don't need to hack it. libusb is autodetected. You just need to
have libusb devel packages.


Right (tho I got 'em and I *thought* I was seeing --disable-usb in the configure output that wizzed by...) - anyway just wanted to be sure :-).

So now some good news...

Continuing with 0.6.14 (i.e *not* cvs), initial tests show similar output:

Connecting
Serial device: opening device /dev/ttyACM0
Ignoring extra header, type 171, length 5
Can't set configuration -1
Can't claim control interface -1
Couldn't open PHONET device: Operation not permitted
Error in link initialisation: 1
Telephone interface init failed: Command failed.

but using strace shows:
...
open("/dev/bus/usb/001/005", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/005", O_RDONLY)  = 4
ioctl(4, USBDEVFS_IOCTL, 0xbff32830)    = -1 EPERM (Operation not permitted)
close(4)                                = 0

So the usb device cannot be opened RDWR - even tho its perms are:


# ls -l /proc/bus/usb/001/005
-rw-rw-rw- 1 root wheel 366 Dec 18 12:04 /proc/bus/usb/001/005

So leaving that aside for me to work out later, I tried as root (should be no permission problems then...):

# gnokii --identify
GNOKII Version 0.6.14
LOG: debug mask is 0x1
phone instance config:
model: 6100
port_device: /dev/ttyACM0
connection_type: 10
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 600
connect_script:
disconnect_script:
rfcomm_cn: 1
sm_retry: off
Connecting
Serial device: opening device /dev/ttyACM0
Ignoring extra header, type 171, length 5
Can't set configuration -16
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x0032
01 3f 00 08 00 01 58 2c 00 27 56 20 4d 4a 31 30 |  ?    X, 'V MJ10
30 5f 30 34 77 34 37 5f 33 37 5f 30 34 2e 6e 62 | 0_04w47_37_04.nb
72 0a 30 39 2d 31 30 2d 30 35 0a 52 48 0a 45 41 | r 09-10-05 RH EA
00 00                                           |
Received message type 1b
model length: 2
Received model RH
Identifying...
Message sent: 0x1b / 0x0005
00 01 00 00 41                                  |     A
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x0006
01 3f 00 01 02 00                               |  ?
Received message type 1b
Received imei V MJ100_04w47_37_04
Message received: 0x1b / 0x0032
01 3f 00 08 00 01 58 2c 00 27 56 20 4d 4a 31 30 |  ?    X, 'V MJ10
30 5f 30 34 77 34 37 5f 33 37 5f 30 34 2e 6e 62 | 0_04w47_37_04.nb
72 0a 30 39 2d 31 30 2d 30 35 0a 52 48 0a 45 41 | r 09-10-05 RH EA
00 00                                           |
Received message type 1b
Received revision V MJ100_04w47_37_04
model length: 2
Received model RH
IMEI         : V MJ100_04w47_37_04
Manufacturer : Nokia
Model        : RH
Product name : RH
Revision     : V MJ100_04w47_37_04
Serial device: closing device


Yay - works (and '--getphonebook ME 1' works too).

In hindsight, I was a bit thick and should have run strace sooner....Anyway, thanks for your patience! (and I'll find out what I need to do to open the usb device as a non-root user).

Cheers

Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]