X
    Categories: Linux

Bluetooth file transfer in CentOS 5

Having a  bluetooth enabled handphone which is used to took a lot of  picture but forgot to bring the usb cable everyday.

Again as the laptop also got bluetooth.. let’s try to get it working.

to get started..

you may need this package available in the your system first.

yum install  obexftp gnome-bluetooth

now need to test if the obexftp is working or not first.

sdptool browse

then.. from the address… try listing the folder in the hanphone first.

obexftp -b 00:1B:59:5E:E6:92 -c / -l

then change the directory respectively

[root@nb-namran bth]# obexftp -b 00:1B:59:5E:E6:92 -c /"Memory Stick"/"DCIM"/"100MSDCF" -l

to get  a file..

[root@nb-namran bth]# obexftp -b 00:1B:59:5E:E6:92 -c /"Memory Stick"/"DCIM"/"100MSDCF" -g "DSC13000.jpg"

to put a file

[root@nb-namran bth]# obexftp -b 00:1B:59:5E:E6:92 -c /"Memory Stick"/"MISC"/"Application" -p "MidpSSH.jar"

the rest of the command please consult

man obexftp

now for the easier use..

this time managed to rebuild the rpm from the rpm source… wonder why is not the DAG repo yet..

rpm -Uvh http://my.namran.net/repository/centos5/gnome-vfs2-obexftp-0.4-6.namran.net.i386.rpm

restart the bluetooth service.

now from the file browser i.e nautilus.

can  just type obex:// at the location box.

and you can see the list of bluetooth device that had been successfully connect..

then from that just double-click and copy/paste whatever file you as if it is in local folder ..

8-)

bug & source rpms taken from : https://bugs.launchpad.net/gnome-vfs-obexftp

Namran Hussin:

View Comments (5)

  • [root@localhost ~]# yum install obexftp gnome-bluetooth
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: http://ftp.cuhk.edu.hk
    * updates: http://ftp.cuhk.edu.hk
    * addons: http://ftp.cuhk.edu.hk
    * extras: http://ftp.cuhk.edu.hk
    Setting up Install Process
    Parsing package install arguments
    No package obexftp available.
    Resolving Dependencies
    --> Running transaction check
    ---> Package gnome-bluetooth.i386 0:0.7.0-10.2.el5 set to be updated
    --> Processing Dependency: gnome-bluetooth-libs = 0.7.0-10.2.el5 for package: gnome-bluetooth
    --> Processing Dependency: libopenobex.so.1 for package: gnome-bluetooth
    --> Processing Dependency: libgnomebt.so.0 for package: gnome-bluetooth
    --> Processing Dependency: libbtctl.so.2 for package: gnome-bluetooth
    --> Running transaction check
    ---> Package openobex.i386 0:1.3-3.1 set to be updated
    ---> Package gnome-bluetooth-libs.i386 0:0.7.0-10.2.el5 set to be updated
    ---> Package libbtctl.i386 0:0.6.0-9.2.el5 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Installing:
    gnome-bluetooth i386 0.7.0-10.2.el5 base 235 k
    Installing for dependencies:
    gnome-bluetooth-libs i386 0.7.0-10.2.el5 base 65 k
    libbtctl i386 0.6.0-9.2.el5 base 44 k
    openobex i386 1.3-3.1 base 21 k

    Transaction Summary
    ================================================================================
    Install 4 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 365 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/4): openobex-1.3-3.1.i386.rpm | 21 kB 00:00
    (2/4): libbtctl-0.6.0-9.2.el5.i386.rpm | 44 kB 00:01
    (3/4): gnome-bluetooth-libs-0.7.0-10.2.el5.i386.rpm | 65 kB 00:01
    (4/4): gnome-bluetooth-0.7.0-10.2.el5.i386.rpm | 235 kB 00:02
    --------------------------------------------------------------------------------
    Total 26 kB/s | 365 kB 00:14
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : openobex [1/4]
    Installing : libbtctl [2/4]
    Installing : gnome-bluetooth-libs [3/4]
    Installing : gnome-bluetooth [4/4]

    Installed: gnome-bluetooth.i386 0:0.7.0-10.2.el5
    Dependency Installed: gnome-bluetooth-libs.i386 0:0.7.0-10.2.el5 libbtctl.i386 0:0.6.0-9.2.el5 openobex.i386 0:1.3-3.1
    Complete!
    [root@localhost ~]# sdptool browse
    Inquiring ...
    Browsing 00:1E:37:69:33:A7 ...
    Browsing 00:24:7E:21:FF:BB ...
    Browsing 00:1E:37:6E:BE:F3 ...
    Service Name: Bluetooth Serial Port
    Service RecHandle: 0x10000
    Service Class ID List:
    "Serial Port" (0x1101)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 1
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Serial Port" (0x1101)
    Version: 0x0100

    Service Name: Network Access
    Service RecHandle: 0x10001
    Service Class ID List:
    "PAN Group Network" (0x1117)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    PSM: 15
    "BNEP" (0x000f)
    Version: 0x0100
    SEQ8: 0 6 dd
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "PAN Group Network" (0x1117)
    Version: 0x0100

    Service Name: Network Access
    Service RecHandle: 0x10002
    Service Class ID List:
    "PAN User" (0x1115)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    PSM: 15
    "BNEP" (0x000f)
    Version: 0x0100
    SEQ8: 0 6 dd
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "PAN User" (0x1115)
    Version: 0x0100

    Service Name: Dial-up Networking
    Service RecHandle: 0x10003
    Service Class ID List:
    "Dialup Networking" (0x1103)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 2
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Dialup Networking" (0x1103)
    Version: 0x0100

    Service Name: PIM Item Transfer
    Service RecHandle: 0x10004
    Service Class ID List:
    "OBEX Object Push" (0x1105)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 3
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "OBEX Object Push" (0x1105)
    Version: 0x0100

    Service Name: File Transfer
    Service RecHandle: 0x10005
    Service Class ID List:
    "OBEX File Transfer" (0x1106)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 4
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "OBEX File Transfer" (0x1106)
    Version: 0x0100

    Service Name: Fax
    Service RecHandle: 0x10006
    Service Class ID List:
    "Fax" (0x1111)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 5
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Fax" (0x1111)
    Version: 0x0100

    Service Name: PIM Synchronization
    Service RecHandle: 0x10007
    Service Class ID List:
    "IrMC Sync" (0x1104)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 6
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "IrMC Sync" (0x1104)
    Version: 0x0100

    Service Name: Sync Command Service
    Service RecHandle: 0x10008
    Service Class ID List:
    "IrMC Sync Command" (0x1107)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 6
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "IrMC Sync" (0x1104)
    Version: 0x0100

    Service Name: Headset
    Service RecHandle: 0x10009
    Service Class ID List:
    "Headset" (0x1108)
    "Generic Audio" (0x1203)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 7
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Headset" (0x1108)
    Version: 0x0100

    Service Name: Stereo Audio
    Service RecHandle: 0x1000a
    Service Class ID List:
    "Audio Sink" (0x110b)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    PSM: 25
    "AVDTP" (0x0019)
    uint16: 0x100
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Advanced Audio" (0x110d)
    Version: 0x0100

    Service RecHandle: 0x1000b
    Service Class ID List:
    "AV Remote Target" (0x110c)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    PSM: 23
    "AVCTP" (0x0017)
    uint16: 0x100
    Profile Descriptor List:
    "AV Remote" (0x110e)
    Version: 0x0100

    Service Name: Audio Source
    Service RecHandle: 0x1000c
    Service Class ID List:
    "Audio Source" (0x110a)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    PSM: 25
    "AVDTP" (0x0019)
    uint16: 0x100
    Profile Descriptor List:
    "Advanced Audio" (0x110d)
    Version: 0x0100

    Service Name: Bluetooth Imaging
    Service RecHandle: 0x1000d
    Service Class ID List:
    "Imaging Responder" (0x111b)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 8
    "OBEX" (0x0008)
    Language Base Attr List:
    code_ISO639: 0x656e
    encoding: 0x6a
    base_offset: 0x100
    Profile Descriptor List:
    "Imaging" (0x111a)
    Version: 0x0100

    Service Name: Audio Gateway
    Service RecHandle: 0x1000e
    Service Class ID List:
    "Headset Audio Gateway" (0x1112)
    "Generic Audio" (0x1203)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 9
    Profile Descriptor List:
    "Headset" (0x1108)
    Version: 0x0100

    Service Name: Audio Gateway
    Service RecHandle: 0x1000f
    Service Class ID List:
    "Handfree Audio Gateway" (0x111f)
    "Generic Audio" (0x1203)
    Protocol Descriptor List:
    "L2CAP" (0x0100)
    "RFCOMM" (0x0003)
    Channel: 10
    Profile Descriptor List:
    "Handsfree" (0x111e)
    Version: 0x0101

    Browsing 00:21:86:C2:4B:5A ...
    Failed to connect to SDP server on 00:1E:37:69:1F:51: Host is down
    Browsing 00:24:7E:98:97:23 ...

    ********************QUESTION*********************
    why it shows that no package obexftp available

    and after that what is that hanphone...????

    can u post it with few more screenshot of commands also...so that its get easyyyyyyyy
    waitingggggggggggggggggg....
    thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

  • Well.
    I install with succes all in centos 5.4 the latest version with latest update and when i type obex:// in my computer address :
    Nautilus cannot disply "obex:///"
    Please select another viewer and try again.
    ???

Related Post
Leave a Comment