Transferring pictures from Nokia to Linux with Bluetooth
I forgot to bring my digital camera so I've been taking some pictures with my Nokia 6230. My (new!) laptop has Bluetooth so I can transfer the photos to it easily. Here's a quick guide to doing this with Fedora Core 3.
First, make sure you have the basic bluetooth package installed, bluez-utils. Then for sending and receiving files I use the fabulous gnome-bluetooth package. Check they're installed: rpm -q bluez-utils gnome-bluetooth.
bluez-utils-2.10-2
gnome-bluetooth-0.5.1-5.FC3.1Start the various bluetooth daemons: sudo service bluetooth start. You should see something like this in /var/log/messages:
Jan 24 07:38:22 localhost hcid[5455]: Bluetooth HCI daemon
Jan 24 07:38:22 localhost bluetooth: hcid startup succeeded
Jan 24 07:38:22 localhost kernel: Bluetooth: Core ver 2.7
Jan 24 07:38:22 localhost kernel: NET: Registered protocol family 31
Jan 24 07:38:22 localhost kernel: Bluetooth: HCI device and connection manager initialized
Jan 24 07:38:22 localhost kernel: Bluetooth: HCI socket layer initialized
Jan 24 07:38:22 localhost kernel: Bluetooth: L2CAP ver 2.6
Jan 24 07:38:22 localhost kernel: Bluetooth: L2CAP socket layer initialized
Jan 24 07:38:22 localhost bluetooth: sdpd startup succeeded
Jan 24 07:38:22 localhost sdpd[5481]: Bluetooth SDP daemon
Jan 24 07:38:23 localhost kernel: Bluetooth: RFCOMM ver 1.3
Jan 24 07:38:23 localhost kernel: Bluetooth: RFCOMM socket layer initialized
Jan 24 07:38:23 localhost kernel: Bluetooth: RFCOMM TTY layer initializedOn the IBM T41p laptop you need to activate the bluetooth adapter (you don't want it running wide open the whole time!) by pressing Fn-F5. You should see the second LED from the left with the ™ sign come on. In /var/log/messages you should then see something like this:
Jan 24 08:18:07 localhost kernel: usb 4-1: new full speed USB device using uhci_hcd and address 2
Jan 24 08:18:07 localhost kernel: usb 4-1: device descriptor read/64, error -71
Jan 24 08:18:12 localhost kernel: Bluetooth: HCI USB driver ver 2.7
Jan 24 08:18:12 localhost kernel: usbcore: registered new driver hci_usb
Jan 24 08:18:12 localhost hcid[5455]: HCI dev 0 registered
Jan 24 08:18:12 localhost hcid[5455]: HCI dev 0 up
Jan 24 08:18:12 localhost hcid[5455]: Starting security manager 0Turn on bluetooth on your phone (Bluetooth menu). Then scan for it from the computer: hcitool scan
Scanning ...
00:12:62:99:99:99 Nokia 6230By default the phone has the name "Nokia 6230" which you can change from the phone's Bluetooth menu. Something like "My top secret photos" helps keep a low profile. Then we connect the phone and computer together using the MAC address discovered above (replace it with yours): sudo hcitool cc --role=s 00:12:62:99:99:99. Start the software that manages file transfers between the phone and computer, in GNOME start Bluetooth File Sharing from the Applications/Systems Tools menu. This starts /usr/bin/gnome-obex-server.
You should be done! Try sending a picture via bluetooth from the phone, it should discover a device with the hostname of your computer. On sending a pop-up dialogue box should appear on the computer to confirm if you will accept the image. Choose save and it goes into the top level of your home directory.
When you finish, turn it all off, this configuration has no security - I'll write something on that in the future. Some more information on all this:
- Bluez project
- OpenOBEX software
- Gnome bluetooth
- Linux and Bluetooth to connect to a GPRS modem
Labels: Linux
2 Comments:
This is the single, most helpful, post that I can find to get my Nokia 6310i working with my Generic Bluetooth USB dongle.
Thank you very much. (Serves Virtual Beer)
Alan
Hi Perfect from desktop to NOkia. But my Nokia does not detect my computer ! (It used to whith dapper).
All the required settings are checked as well -:)
Daniel
Post a Comment
<< Home