Difference between revisions of "OBEX"

From ArmadeusWiki
Jump to: navigation, search
(page creation)
 
(Object PUSH Profile)
Line 38: Line 38:
 
</pre>
 
</pre>
 
Then reflash your rootfs.
 
Then reflash your rootfs.
 +
 +
===Usage===
 +
* Get receiver phone Bluetooth address (here 00:16:75:F8:xx:xx):
 +
<pre class="apf">
 +
# hcitool scan
 +
Scanning ...
 +
        00:16:75:F8:xx:xx      Motorola A910
 +
</pre>
 +
* Find "OBEX Object Push" channel number (here 5):
 +
<pre class="apf">
 +
# sdptool browse 00:16:75:F8:xx:xx
 +
</pre>
 +
* Launch an rfcomm connection on this channel (here 5):
 +
<pre class="apf">
 +
# rfcomm connect 0 BTADDR 5 &
 +
</pre>
 +
* "Push" file (here a VCard):
 +
<pre class="apf">
 +
# ussp-push /dev/rfcomm0 /home/user/foo.vcf foo.vcf
 +
</pre>
  
 
==File transfer Profile==
 
==File transfer Profile==

Revision as of 16:06, 16 June 2010

From Wikipedia: OBEX (abbreviation of OBject EXchange) is a communications protocol that facilitates the exchange of binary objects between devices... Although OBEX was initially designed for infrared, it has now been adopted by Bluetooth, and is also used over RS232, USB and WAP.

OpenOBEX

Free open source implementation of the Object Exchange (OBEX) protocol. This library (libopenobex) is the basis of all the other tools.

Installation

$ make menuconfig
Package Selection for the target  --->
    [*] Networking  --->
        [*]   openobex
        [*]     install test applications
        [ ]     enable debugging to the system logger
        [ ]     enable protocol dumping for debugging
$ make

Then reflash your rootfs.

Object PUSH Profile

(Phone to phone transfers)

ussp-push

ussp-push is an OBEX object pusher for Linux, using the BlueZ BlueTooth stack.

Installation

$ make menuconfig
Package Selection for the target  --->
    [*] Networking  --->
        [*]   ussp-push
$ make

Then reflash your rootfs.

Usage

  • Get receiver phone Bluetooth address (here 00:16:75:F8:xx:xx):
# hcitool scan
Scanning ...
        00:16:75:F8:xx:xx       Motorola A910
  • Find "OBEX Object Push" channel number (here 5):
# sdptool browse 00:16:75:F8:xx:xx
  • Launch an rfcomm connection on this channel (here 5):
# rfcomm connect 0 BTADDR 5 &
  • "Push" file (here a VCard):
# ussp-push /dev/rfcomm0 /home/user/foo.vcf foo.vcf

File transfer Profile

(Phone to PC transfers) TO BE DONE.... http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp

Links