Skip to contentSkip to conversation

easiest way to get OBEX support (client/server) ?

Bluez-users Voni Hakau 3 participants 9 messages Aug 25, 2008 – Aug 30, 2008 Bluetooth drivers

lore
Share & tools
lore

Voni Hakau

author
#0 lore raw

Hi all,

What is the easiest way (/package?) to get OBEX support on top of Bluez ?

I saw that there are two obex servers in bluez.org - obexd-0.3 and obex-data-server-0.3.2.

What's the difference between those two ? which one should I pick ?

And - where can I find OBEX client ?

Thank you all for the help
Voni

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#1 lore raw

Another question related - what about OpenOBEX ? is it recommended ? how does it differ from the obex servers hosted on bluez website ?

Thanks!

Quoted 7 lines · Voni Hakau

Hi all,

What is the easiest way (/package?) to get OBEX support on top of Bluez ?

I saw that there are two obex servers in bluez.org - obexd-0.3 and obex-data-server-0.3.2.

Quoted 7 lines

What's the difference between those two ? which one should I pick ?

And - where can I find OBEX client ?

Thank you all for the help
Voni

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

On Mon, 25 Aug 2008, Voni Hakau wrote:

->
-> Another question related - what about OpenOBEX ? is it recommended ? -> how does it differ from the obex servers hosted on bluez website ? ->
-> Thanks!
->
-> On Mon, Aug 25, 2008 at 1:49 PM, Voni Hakau <[email protected]> wrote:
-> > Hi all,
-> >
-> > What is the easiest way (/package?) to get OBEX support on top of Bluez ? -> >
-> > I saw that there are two obex servers in bluez.org - obexd-0.3 and -> > obex-data-server-0.3.2.
-> >
-> > What's the difference between those two ? which one should I pick ? -> >
-> > And - where can I find OBEX client ?

I've tried obex-data-server and obexd, but I couldn't get either one working. I asked on the list but there wasn't a reply. The one I use currently is one I found, made by someone, and patched a bit to compile here by myself. Credits are in the files, but I can't remember the author right now. It has both server and client. It is as it is, I can't say how functional or secure it is, but it meets my needs. You'll need openobex, glib, bluez, zlib, pcre and be able to compile stuff with it. I also use obexftp and obexfs.

ftp://atr2.ath.cx/pub/linux/source/src-3/obexpush-p1.tar.bz2

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#3 lore raw

Thank you jayjwa !

Quoted 1 line · jayjwa

I've tried obex-data-server and obexd, but I couldn't get either one working.

maybe they only give dbus api ? and they are not meant to be used from the command line ?

Quoted 1 line

I asked on the list but there wasn't a reply.

I also tried on IRC but no one responded.. :(

Quoted 6 lines

The one I use currently is one I
found, made by someone, and patched a bit to compile here by myself. Credits are in the files, but I can't remember the author right now. It has both server and client. It is as it is, I can't say how functional or secure it is, but it meets my needs. You'll need openobex, glib, bluez, zlib, pcre and be able to compile stuff with it.

Thanks I will try it

Quoted 1 line

I also use obexftp and obexfs.

What is obexfs btw ?

Did you succeed to cross compile obexftp ? (I succeeded to 'make' it, but when i tried to 'make install' it weirdly failed)

thank you
voni

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#4 lore raw

Hi Voni,

Quoted 4 lines
Quoted 1 line

I've tried obex-data-server and obexd, but I couldn't get either one working.

maybe they only give dbus api ? and they are not meant to be used from the command line ?

obexd is only a server and it needs some interaction with the UI to some degree for authorization callbacks and so on. Feel free to propose patches since we can add switches for a fully command line based use cases.

The current assumption is it runs in the user session and hence requiring a D-Bus session bus. However the end goal is to give the choice to run it at system level if you don't have a fine grained security model anyway.

For these case it really helps if you just state what you wanna do with it. Otherwise we will focus on our current plans and do everything else when we have time. Also patches are always welcome.

Quoted 3 lines
Quoted 1 line

I asked on the list but there wasn't a reply.

I also tried on IRC but no one responded.. :(

Be patient. Even while some of us look online 24/7, we are not :)

Quoted 3 lines
Quoted 1 line

I also use obexftp and obexfs.

What is obexfs btw ?

OpenOBEX into FUSE integration.

Regards

Marcel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#5 lore raw

Hi Marcel,

Quoted 8 lines · Marcel Holtmann

The current assumption is it runs in the user session and hence requiring a D-Bus session bus. However the end goal is to give the choice to run it at system level if you don't have a fine grained security model anyway.

For these case it really helps if you just state what you wanna do with it. Otherwise we will focus on our current plans and do everything else when we have time. Also patches are always welcome.

I need to be able to demonstrate OBEX profiles on a bluez-based embedded system which is very early in its development. No GUI whatsover. I only have the shell. I have DBUS obviously (although I only run system session currently). It's really important because this way managers here will be able to choose between bluez and other stacks.

I guess that currently my only option is obexftp ? Unfortunately it doesn't cross compile cleanly.. (I did manage to cross compile openobex without a problem though).

IIRC the obex project in the bluez cvs worked pretty nice on a PC. unfortunately we use expat and not libxml so I can't use it on my embedded system..

Thank you for all the help!
Voni

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#6 lore raw

Hi Voni,

Quoted 9 lines
Quoted 8 lines

The current assumption is it runs in the user session and hence requiring a D-Bus session bus. However the end goal is to give the choice to run it at system level if you don't have a fine grained security model anyway.

For these case it really helps if you just state what you wanna do with it. Otherwise we will focus on our current plans and do everything else when we have time. Also patches are always welcome.

Quoted 6 lines

I need to be able to demonstrate OBEX profiles on a bluez-based embedded system which is very early in its development. No GUI whatsover. I only have the shell. I have DBUS obviously (although I only run system session currently). It's really important because this way managers here will be able to choose between bluez and other stacks.

just go into the code and replace SESSION with SYSTEM and create a D-Bus security policy file for org.openobex.

Quoted 7 lines

I guess that currently my only option is obexftp ? Unfortunately it doesn't cross compile cleanly.. (I did manage to cross compile openobex without a problem though).

IIRC the obex project in the bluez cvs worked pretty nice on a PC. unfortunately we use expat and not libxml so I can't use it on my embedded system..

I am not touching that code anymore, but that could be easily fixed :)

You will have to do some development since you can't expect that you can just take open source stuff without any integration work. And that is exactly what you have to do, integrate it. If patches come up during this, then send them upstream and we likely include them and then next time (next product) the integration work goes down.

Regards

Marcel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#7 lore raw
In reply to jayjwa
Quoted 2 lines · jayjwa

I've tried obex-data-server and obexd, but I couldn't get either one working. I asked on the list but there wasn't a reply. The one I use currently is one I

Also there is an 'obex' project in the bluez cvs, i think it is obex client, but i can't use it because it requires libxml and we use libexpat in our embedded system (libxml is bloated!)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#8 lore raw

Hi Voni,

Quoted 6 lines
Quoted 2 lines

I've tried obex-data-server and obexd, but I couldn't get either one working. I asked on the list but there wasn't a reply. The one I use currently is one I

Also there is an 'obex' project in the bluez cvs, i think it is obex client, but i can't use it because it requires libxml and we use libexpat in our embedded system (libxml is bloated!)

I kept the repository there as an example. It is old and hasn't been updated in a long time.

Regards

Marcel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users