> -----Original Message-----
> From: [EMAIL PROTECTED]
> Sent: Sun, 25 Nov 2007 03:59:02 +0530
> To: [email protected]
> Subject: [ilugd] ubuntu feisty linux to nokia E61i bluetooth
> 
> dear all,
> 
> i've got a bluetooth dongle on the usb port of my pc running ubuntu
> feisty 7.04.
> i wish to connect it to my Nokia E61i, install some apps, and learn
> how to sync the contacts list, calendars, and more, from my mobile
> with ubuntu.
> 
> first i tried to install the Nokia PC Suite under wine. it did
> install, but alas needed IE to work properly. so i ditched this route.
> 
> as the bluetooth wasn't working right, connected the phone direct to
> the pc using usb. it connected in the 'data-transfer' mode
> and a hard disk icon appeared on my ubuntu desktop. tried copying
> files to a folder at the root of the external microSD of the phone.
> they transferred, but showed up nowhere on the phone so i could
> install the apps.
> 
> fyi, i found some interesting freeware apps at allaboutsymbian.com
> [no muft and mukt apps, though. sigh!]
> 
> finally, tried mucking around with bluetooth. here is the result of my
> exploration:
> 
> # hcitool dev
> correctly lists my bluetooth dongle.
> 
> #hcitool scan
> then lists out the actual hex address and name of my Nokia E61i
> 
> # l2ping <address>
> gives me 0 bytes from <address>...
> Send failed: Connection reset by peer
> 
> 
> # /etc/bluetooth/hcid.conf
> 
> in the section of Security Manager mode, have set it to
> security user; which is to always ask user for a PIN.
> 
> the pairing mode is set to 'multi' which is 'allow pairing with
> already paired device'.
> 
> the default PIN code for incoming connections, you may assume is set to
> "1234".
> 
> in the device section
> # Local device class
>         class 0xff0100;
> 
> linkmode
> lm accept
> 
> 
> i then
> # /etc/init.d/bluetooth restart
> just to be sure
> 
> meanwhile, i ensure my mobile has bluetooth on, with visibility 'shown
> to all' for good measure.
> 
> 
> then i type alt+F2 and start kbluetooth
> [i don't have kde installed here. this is ubuntu but with
> kde-bluetooth installed]
> 
> i get a grey-colored kbluetooth on my taskbar.
> a left-click opens konqueror, and i see my phone by name.
> clicking on it i see 13 files including obex file transfer.
> 
> when i click on it, my mobile gets prompted for a PIN, which i enter
> correctly. thrice.
> yet the pc rejects the password.
> 
> conversely, when i scan from my mobile, i do see the pc, and again
> when i try to pair, the PIN gets rejected and the pairing doesn't
> happen.
> 
> here comes the odd part. though the two devices are not paired,
> using konqueror or nautilus, i can browse my desktop's filesystem,
> right-click any file, and attempt a 'send via bluetooth' to my mobile.
> this works. and then some.
> 
> mid-way through sending any file, the file-transfer stalls or freezes
> at a random point.
> after multiple attempts, i successfully managed to get a 64kb file
> transferred into my mobile's inbox.
> 
> a few days ago, while trying this procedure, i did manage to transfer
> much larger files, one even weighing in over a 1MB, without issues.
> fyi, have switched off the firewall and anti-virus app on my mobile,
> and have set app manager to install all apps and switched off online
> certificate check, for good measure.
> 
> 
> can't understand why is this not working.
> is there a solution? a better way?
> 
> fyi, i went through the agonies of trying to get bluez working with my
> earlier Nokia6600 circa 2004 to 2006. it was quite an ugly procedure
> when i finally got it working to a somewhat buggy state. at that time
> i re-assured myself that hopefully by 2007 or so, when i get my next
> phone, things would have evolved much further. alas, they haven't, and
> i guess we need to let nokia know they need to provide software for
> gnulinux as well, else they might just lose out on huge customers
> eventually in the BRIC countries.
> 
> meanwhile, would appreciate any help you may offer.
> 
> :-)
> niyam
> 

Hi!
    Here i am determining few free command line tools that you can use for 
nokia and various other phones (technically phones supporting object push). And 
all this can be done on any system.. (without requiring such live CD). I own a 
nokia 3230, all of this work on my Debian etch.. but i hope this will work on 
any phone and any distribution, provided the phone is connected in PC-Suit mode.

You need...
bluez packages
    hcitool, sdptool etc      // almost there in all the distros
obexftp obexfs etc            // needs to be installed, depends on openobex
gnome-bluetooth etc      // this is also usually present

/* All commands at # prompt */

$hcitool dev
# shows the MAC address of the device attached with the system

$hcitool scan
# discovers the devices in range. Here note down the MAC address of your phone, 
say <my_ph>

$sdptool browse <my_ph>
# shows the list of services available on the remote device. Here note down the 
channel number of the services you want to use. On my phone 2 is for Dial up 
networking and 12 is for obex object exchange.

pair the device.. the easiest way is to start
# bluetooth-applet &
and initiate pairing from the phone. Set the PC as authorized(just a personal 
opinion) in the phone. This way you dont need to use bluez-pin for pairing, 
neither you need to edit /etc/bluetooth/hcid.conf

Now to send a file to a phone.. use
# obexftp -b <my_ph> -B 12 -c <dir> -l
# obexftp -b <my_ph> -B 12 -c <dir> -p <file>
# obexftp -u 1 -c <dir> -p <file>

Description:
    IPv6 address of the phone.
    12 = channel as discovered by the sdptool
    -c changes to directory
       C:/ = phone mem of the phone
       E:/ = mem card of the phone
    -l lists the contents, gives an xml to stdout
    -p puts a local file <file>
    -u lists the usb interfaces available, -u 1 uses the first usb dev attached.

example:
    to put a file myMp3.mp3 in the sounds section of phone over bluetooth:
#obexftp -b <my_ph> -b 12 -c E:/Sounds/Digital -p myMp3.mp3
    Same using usb cable
#obexftp -u 1 -c E:/Sounds/Digital -p myMp3.mp3

read man obexftp
    // quite descriptive

/* The reason of the halting of transfer with kbluetooth may be that it is 
trying to send the file using object push, and not object exchange (rem they 
are both available at different channels, so use it correctly,  object push 
doesn't support transfer directly in memory card, file will go to the phones 
inbox. However no harm to phone will get caused if you will use the wrong 
channel. This is the reason of most of your problems. Right click -> send via 
bluetooth worked because it used object push method... and in this mode phone 
recieves the file in the inbox, and does the job without even pairing. (Notice 
that you must have recieved the file in the inbox). There is a tool called 
obexpush that does the job for computer, or specifying the right channel in 
obexftp.*/

Next this all can be mounted as a filesystem using either of obexfs or 
p3nfs(better as i suggest)
obexfs uses obexftp and fuse to mount it as filesystem
where as p3nfs uses a small nfs server at phone part which is then mounted as a 
nfs share.
    // Easy to implement..
Method at my blog: http://tuxatwork.blogspot.com/2007_10_01_archive.html

Next is getting internet on the move using wireless ISP's like Idea, Hutch 
Airtel Reliance Tata etc..
Again at my blog: 
http://tuxatwork.blogspot.com/2007/11/getting-internet-up-on-roam.html

About contact synchronization... i am not sure, but i am working on an 
application "barbie", (barbie.sourceforge.net) in which i am trying to add this 
feature. This is reading and writing an xml file in the C drive of the phone. 
May be these holidays.. :-)
Though there are some applications on GNU/Linux that give this feature, but 
none of them matches with my phone, may be your luck.. try them
kmobiletools
wammu
xgnokii
There are few more.. i forget the names.

Anyhow luck with these things...

lastly, while replying to Niyam Sir's query, i got this bounce report..

The message's content type was not explicitly allowed

That time i was composing in thunderbird.. i've send many mails like that, but 
this time it bounced. So i am now sending from browser...
Why so?

Regards..

> _______________________________________________
> ilugd mailinglist -- [email protected]
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Next Event: http://freed.in - February 22/23, 2008
> Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> http://www.mail-archive.com/[email protected]/

-- 
Shamail Tayyab
shamail [at] inbox [dot] com
4 2 3 2 4 9 9 9 9 9 - 1 9 + (right to left without spaces)
<<Bringing Linux and Mobiles one step closer>>
Blog at: http://tuxatwork.blogspot.com

____________________________________________________________
GET FREE 5GB EMAIL - Check out spam free email with many cool features!
Visit http://www.inbox.com/email to find out more!

_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22/23, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to