Hi there,

I am very interested in OBEX file sharing via bluetooth in Android.
After reading bluetooth spec, related source code and above emails, I
finally understand how to make it in a native way. In the protocol
stack, RFCOMM is bound to L2CAP and OBEX is bound to RFCOMM. Check
Android bluetooth architecture image, we can see RFCOMM is implemented
in bluez. It means we can use RFCOMM protocol to connect with two BT
devices. Therefore, I use openobex + obexpushd to support OBEX in
Android. Both openobex and obexpushd are c programs, so I made some
Android make files to build it. I only tried it in Android Dev Phone,
and it works on both receiving and receiving OBEX file via BT.

OBEX (object exchange) is like client-server programming. One BT
device is a server to receive files and the other one is a client to
send files. For example, I run obexpushd in Android Dev phone, and it
becomes an OBEX server. It would start to LISTEN rfcomm connections.
Then you can use other BT devices to send files to this phone.
Furthermore, I can run obexftpd in Android Dev phone, and it becomes a
client. It would CONNECT with a rfcomm connection and it can send file
to that connection.

I wrote my experiment in my blog. If you have interest, perhaps you
may visit it. 
http://i-miss-erin.blogspot.com/2009/06/bluetooth-obex-file-sharing-in-android.html

Regards,
Erin

On Apr 23, 11:46 am, tainy <tainy.zh...@gmail.com> wrote:
> Thank you Jackson Fan!
>
> According to android bluetooth architecture, Java API will be provided
> to support GAP and RFCOMM..
> So, I can use RFCOMM api to fulfill file transferring ? is GAP API
> enough for that task?
>
> and before those apis provided, what can i do to transfer something
> between android devices and other bluetooth devices?  Sorry that I am
> not clear about the way you sai, how to do it in a native way? and in
> pure java space need Java API provided?
>
> thanks!
>
> tainy
>
> On 4月23日, 上午9时21分, Jackson Fan <xy...@motorola.com> wrote:
>
> > You can, but no need to change kernel.
> >OBEXis a relatively higher level protocol on top of RFCOMM. Following
> > Android Bluetooth 
> > architecturehttp://source.android.com/projects/bluetooth-faq,
> > feature can be either built on BlueZ+OpenOBEX in user space (native),
> > or even built in pure Java space.
>
> > On Apr 21, 11:16 am, tainy <tainy.zh...@gmail.com> wrote:
>
> > > Hello everyone!
> > > I know nothing about kernel development, but I have a requirement.
>
> > > Android dose not support bluetoothOBEXfor file transferring, so is
> > > it possible to change the source code of android and compile it for
> > > supportingOBEXin android platform?
>
> > > thanks in advance!- 隐藏被引用文字 -
>
> > - 显示引用的文字 -
>
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---

Reply via email to