[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New dku2 driver for gnokii
From: |
Pawel Kot |
Subject: |
New dku2 driver for gnokii |
Date: |
Mon, 24 Apr 2006 22:23:25 +0200 |
Hi,
I have commited a new device driver for DKU2 cables for gnokii. This
time it is userspace driver. It uses libusb library and should not
interfere with OBEX drivers or cdc_acm. I have made some basic tests
with Nokia 6170 and it seems to work.
Please do some more testing, What you need is libusb installed in the
system (for the compilation that would be libusb-dev or similiar). I
have tested it with Ubuntu Dapper -- I can't say at the moment which
library version is required. Gnokii configuration should be prepared
as follows:
# port setting currently is ignored
port = anything
# set model as usually
model = 6170
# new setting for connection
connection = dku2libusb
Please note that the driver chooses the first matching device at the
moment. So if you have two Nokia phones connected with DKU2 cable to
the computer, always the first one will be chosen. This is to be
changed in the future.
The code is at the moment just in CVS and is to be included in the
next gnokii release (which presumably will be 0.7.0).
Please note that it won't work for the most of the default
configurations -- the problem will be USB device permissions. To fix
this follow instructions from
http://members.dodo.com.au/~joaniemrc/nokia/Nokia-6670-USB.html
If you found in the previous step that your current user did not have
permission to the USB device, you may want to configure hotplug (if you are
using it) so that it changes the file permissions when the phone is
plugged in.
First find the Vendor ID (VID) and Product ID (PID) of your phone using lsusb
or by reading /proc/bus/usb/devices directly. As root, create the file
/etc/hotplug/usb/nokia.usermap containing a single line
(substituting the third
and fourth fields with your VID and PID if necessary):
nokia 0x0003 0x0421 0x041d 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00
0x00 0x00000000
This will cause the script /etc/hotplug/usb/nokia to be executed when the
phone is plugged in. You can use this example but you must substitute your
own user and group in the chmod command. Remember to make the script
executable!
If your system uses a newer version of udev which does not call hotplug
directly, you can get the same effect by adding a rule to
/etc/udev/rules.d/020_permissions.rules similar to:
BUS=="usb", SYSFS{idVendor}=="0421", SYSFS{idProduct}=="041d", GROUP="group"
Remember to substitute your own group your user along with the Vendor ID
and Product ID if necessary.
On my laptop I use:
address@hidden:~$ grep -A1 Nokia /etc/udev/rules.d/40-permissions.rules
# USB Nokia devices
BUS=="usb", SYSFS{idVendor}=="0421", GROUP="adm"
Big kudos do Alex Kanavin, the author of the OBEX DKU2 support --
current gnokii driver is a port of his work for OpenOBEX.
take care,
pkot
--
Pawel Kot
http://www.gnokii.org/
- New dku2 driver for gnokii,
Pawel Kot <=