User Tools

Site Tools


nokia_6630

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
nokia_6630 [2008/07/26 09:36] 79.14.5.132nokia_6630 [2010/12/13 15:06] (current) – placed sources list entry into code tag for clarity 78.147.104.69
Line 22: Line 22:
  First I installed the libusb devel package: #> apt-get install libusb-dev You may need autoconf, automake and libtool if you don't have them already: #> apt-get install autoconf automake libtool Then take a look at the excellent but rather outdated [[http://members.dodo.com.au/~joaniemrc/nokia/Nokia-6670-USB.html|USB OBEX HOWTO]]. Here are just the commands I executed (the HOWTO still speaks about OBEX version 1.1 to come, while version 1.2 is already available). First let's create a private install directory for this software. if you prefer to install everything in the default directory (/usr/local/...), skip that and omit all further references to ~/usbobex. $> mkdir ~/usbobex Goto http://sourceforge.net/projects/openobex and download openobex (current version 1.2) $> tar xvfz openobex-1.2.tar.gz $> cd openobex-1.2 $> ./configure --enable-apps --prefix=$HOME/usbobex $> make $> su -c './src/obex_test -u' Here I got the following output: Using USB transport, querying available interfaces Interface 0: Nokia Nokia 6630 SYNCML-SYNC Interface 1: Nokia Nokia 6630 PC Suite Services I then made the following call to install the test binaries to /usr/local/bin $> make install === hotplug script === I also added the hotplug stuff mentioned in the howto. For the Nokia 3360 you need the following content in ''/etc/hotplug/usb/nokia.usermap'' <file> nokia 0x0003 0x0421 0x0410 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 </file> I also altered the example hotplug script to give write access to everybody <code bash> #!/bin/sh # latest hotplug doesn't set DEVICE on 2.6.x kernels if [ -z "$DEVICE" ] ; then IF=`echo $DEVPATH | sed 's/\(bus\/usb\/devices\/\)\(.*\)-\(.*\)/\2/'` DEV=$(cat /sys/${DEVPATH}/devnum) DEVICE=`printf '/proc/bus/usb/%.03d/%.03d' $IF $DEV` fi if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then chmod 0666 "$DEVICE" fi </code>   First I installed the libusb devel package: #> apt-get install libusb-dev You may need autoconf, automake and libtool if you don't have them already: #> apt-get install autoconf automake libtool Then take a look at the excellent but rather outdated [[http://members.dodo.com.au/~joaniemrc/nokia/Nokia-6670-USB.html|USB OBEX HOWTO]]. Here are just the commands I executed (the HOWTO still speaks about OBEX version 1.1 to come, while version 1.2 is already available). First let's create a private install directory for this software. if you prefer to install everything in the default directory (/usr/local/...), skip that and omit all further references to ~/usbobex. $> mkdir ~/usbobex Goto http://sourceforge.net/projects/openobex and download openobex (current version 1.2) $> tar xvfz openobex-1.2.tar.gz $> cd openobex-1.2 $> ./configure --enable-apps --prefix=$HOME/usbobex $> make $> su -c './src/obex_test -u' Here I got the following output: Using USB transport, querying available interfaces Interface 0: Nokia Nokia 6630 SYNCML-SYNC Interface 1: Nokia Nokia 6630 PC Suite Services I then made the following call to install the test binaries to /usr/local/bin $> make install === hotplug script === I also added the hotplug stuff mentioned in the howto. For the Nokia 3360 you need the following content in ''/etc/hotplug/usb/nokia.usermap'' <file> nokia 0x0003 0x0421 0x0410 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 </file> I also altered the example hotplug script to give write access to everybody <code bash> #!/bin/sh # latest hotplug doesn't set DEVICE on 2.6.x kernels if [ -z "$DEVICE" ] ; then IF=`echo $DEVPATH | sed 's/\(bus\/usb\/devices\/\)\(.*\)-\(.*\)/\2/'` DEV=$(cat /sys/${DEVPATH}/devnum) DEVICE=`printf '/proc/bus/usb/%.03d/%.03d' $IF $DEV` fi if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then chmod 0666 "$DEVICE" fi </code> 
 === OBEX FTP ===  === OBEX FTP === 
-On with the HOWTO to build OBEX FTP... we first need some tools to compile the docs: #> apt-get install sablotron txt2html Goto http://sourceforge.net/projects/openobex and download obexftp (current version 0.8) Then apply the patch and compile: $> tar xvfj obexftp-0.20.tar.bz2 $> cd obexftp-0.20 $> ./configure --prefix=$HOME/usbobex OPENOBEX_CONFIG=$HOME/usbobex/bin/openobex-config $> make $> make install All the tests mentioned in the HOWTO should work now. I found, that there seems to be a problem with my phone, if I try to access the default obexftp channel via bluetooth. However it works nicely when connecting to the "Nokia OBEX PC Suite Services". The channel can be found using sdptool browse bl:ue:to:ot:hi:d. It is 12 for my 6630, so e.g. ~/usbobex/obexftp -b 00:15:a0:52:00:cf -B12 -c "E:/Sounds/Digital" -l will work as expected. If you want to connect via USB use the following command: ~/usbobex/obexftp -u 1 -c E:\\Sounds\\Digital -l to get a list of all sound files on your phone's media card. === ObexTool === Lets have some fancy graphics, too :-) As always install some packages... # apt-get install bwidget tcl8.4 ... then follow the HOWTO $> wget http://www.nemethi.privat.t-online.de/tablelist/tablelist3.8.tar.gz $> wget http://www.tech-edv.co.at/downloads/ObexTool-0.31-alfa.tgz $> tar -C ~/usbobex/ -xzvf tablelist3.8.tar.gz $> tar -C ~/usbobex/ -xzvf ObexTool-0.31-alfa.tgz $> vi ~/usbobex/etc/obexwrap.sh $> vi ~/usbobex/obextool.tk $> wget http://members.dodo.com.au/~joaniemrc/nokia/obextool.patch $> cd usbobex $> patch -p1 < ../obextool.patch patching file lib/obexfile.tcl patching file lib/obextree.tcl $> vi ~/usbobex/etc/obextool.cfg You now can start the tool with $> ~/usbobex/obextool.tk Update(Mark Kent - mark@NOSPAM.ellandroad.demon.co.uk): At 15/7/06, Hendrik Sattler maintains a debian repository which includes obextool, tablelist and some other useful goodies. They are pre-patched, so you do not need to go through the steps shown above. Add the following to your /etc/apt/sources.list: # Nokia obextool - check http://www.stud.uni-karlsruhe.de/~ubq7/debian/ for more info deb http://www.stud.uni-karlsruhe.de/~ubq7/debian extra main deb-src http://www.stud.uni-karlsruhe.de/~ubq7/debian extra main Then, simply: # apt-get install obextool In order to get obextool to use the proper options with obexftp, you can specify what you want on the command line, like this: # obextool --obexcmd "obexftp -u 1" Although you'll want to edit the config file, as shown above. Similarly, I did not need to patch the debian obex tools for USB, it's already done. The version of obextool at Hendrik's page worked with my Nokia 6630 over usb.+On with the HOWTO to build OBEX FTP... we first need some tools to compile the docs: #> apt-get install sablotron txt2html Goto http://sourceforge.net/projects/openobex and download obexftp (current version 0.8) Then apply the patch and compile: $> tar xvfj obexftp-0.20.tar.bz2 $> cd obexftp-0.20 $> ./configure --prefix=$HOME/usbobex OPENOBEX_CONFIG=$HOME/usbobex/bin/openobex-config $> make $> make install All the tests mentioned in the HOWTO should work now. I found, that there seems to be a problem with my phone, if I try to access the default obexftp channel via bluetooth. However it works nicely when connecting to the "Nokia OBEX PC Suite Services". The channel can be found using sdptool browse bl:ue:to:ot:hi:d. It is 12 for my 6630, so e.g. ~/usbobex/obexftp -b 00:15:a0:52:00:cf -B12 -c "E:/Sounds/Digital" -l will work as expected. If you want to connect via USB use the following command: ~/usbobex/obexftp -u 1 -c E:\\Sounds\\Digital -l to get a list of all sound files on your phone's media card. === ObexTool === Lets have some fancy graphics, too :-) As always install some packages... # apt-get install bwidget tcl8.4 ... then follow the HOWTO $> wget http://www.nemethi.privat.t-online.de/tablelist/tablelist3.8.tar.gz $> wget http://www.tech-edv.co.at/downloads/ObexTool-0.31-alfa.tgz $> tar -C ~/usbobex/ -xzvf tablelist3.8.tar.gz $> tar -C ~/usbobex/ -xzvf ObexTool-0.31-alfa.tgz $> vi ~/usbobex/etc/obexwrap.sh $> vi ~/usbobex/obextool.tk $> wget http://members.dodo.com.au/~joaniemrc/nokia/obextool.patch $> cd usbobex $> patch -p1 < ../obextool.patch patching file lib/obexfile.tcl patching file lib/obextree.tcl $> vi ~/usbobex/etc/obextool.cfg You now can start the tool with $> ~/usbobex/obextool.tk Update(Mark Kent - mark@NOSPAM.ellandroad.demon.co.uk): At 15/7/06, Hendrik Sattler maintains a debian repository which includes obextool, tablelist and some other useful goodies. They are pre-patched, so you do not need to go through the steps shown above. Add the following to your /etc/apt/sources.list: <code># Nokia obextool - check http://www.stud.uni-karlsruhe.de/~ubq7/debian/ for more info 
 +deb http://www.stud.uni-karlsruhe.de/~ubq7/debian extra main 
 +deb-src http://www.stud.uni-karlsruhe.de/~ubq7/debian extra main</code> Then, simply: # apt-get install obextool In order to get obextool to use the proper options with obexftp, you can specify what you want on the command line, like this: # obextool --obexcmd "obexftp -u 1" Although you'll want to edit the config file, as shown above. Similarly, I did not need to patch the debian obex tools for USB, it's already done. The version of obextool at Hendrik's page worked with my Nokia 6630 over usb.
nokia_6630.1217064993.txt.gz · Last modified: 2008/07/26 09:36 (external edit)