All of lore.kernel.org
 help / color / mirror / Atom feed
* Obex Push
@ 2009-02-11  9:23 GianPiero Puccioni
  2009-02-11 10:00 ` Li, Zhigang
  2009-02-12  1:24 ` Yao Ye
  0 siblings, 2 replies; 10+ messages in thread
From: GianPiero Puccioni @ 2009-02-11  9:23 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I am trying to write a small program to do an Obex push of a text file to a cell phone but
I am having problems finding info on how to do this using the Bluez library. Where can I
find a manual or an example about this?

Thanks,
GianPiero
-- 
GianPiero Puccioni               |Istituto dei Sistemi Complessi-CNR
gianpiero.puccioni(AT)isc.cnr.it |Via Madonna del Piano, 10
T:+39 0555226682 F:+39 0555226683|50019 Sesto F. (Firenze) ITALY

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Obex Push
  2009-02-11  9:23 Obex Push GianPiero Puccioni
@ 2009-02-11 10:00 ` Li, Zhigang
  2009-02-11 10:11   ` GianPiero Puccioni
  2009-02-12  1:24 ` Yao Ye
  1 sibling, 1 reply; 10+ messages in thread
From: Li, Zhigang @ 2009-02-11 10:00 UTC (permalink / raw)
  To: GianPiero Puccioni, linux-bluetooth

DQo+LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj5Gcm9tOiBsaW51eC1ibHVldG9vdGgtb3du
ZXJAdmdlci5rZXJuZWwub3JnDQo+W21haWx0bzpsaW51eC1ibHVldG9vdGgtb3duZXJAdmdlci5r
ZXJuZWwub3JnXSBPbiBCZWhhbGYgT2YgR2lhblBpZXJvDQo+UHVjY2lvbmkNCj5TZW50OiAyMDA5
xOoy1MIxMcjVIDE3OjI0DQo+VG86IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtlcm5lbC5vcmcNCj5T
dWJqZWN0OiBPYmV4IFB1c2gNCj4NCj5IaSwNCj4NCj5JIGFtIHRyeWluZyB0byB3cml0ZSBhIHNt
YWxsIHByb2dyYW0gdG8gZG8gYW4gT2JleCBwdXNoIG9mIGEgdGV4dCBmaWxlIHRvIGEgY2VsbA0K
PnBob25lIGJ1dA0KPkkgYW0gaGF2aW5nIHByb2JsZW1zIGZpbmRpbmcgaW5mbyBvbiBob3cgdG8g
ZG8gdGhpcyB1c2luZyB0aGUgQmx1ZXogbGlicmFyeS4NCj5XaGVyZSBjYW4gSQ0KPmZpbmQgYSBt
YW51YWwgb3IgYW4gZXhhbXBsZSBhYm91dCB0aGlzPw0KDQpJbiB0ZXN0IGZvbGRlciBvZiBvYmV4
ZCB0aGVyZSB3YXMgYSB0ZXN0IHNjcmlwdDpzZW5kLWZpbGVzDQpJdCdzIG9rIHRvIHNlbmQgZmls
ZS4NCg0KPg0KPlRoYW5rcywNCj5HaWFuUGllcm8NCj4tLQ0KPkdpYW5QaWVybyBQdWNjaW9uaSAg
ICAgICAgICAgICAgIHxJc3RpdHV0byBkZWkgU2lzdGVtaSBDb21wbGVzc2ktQ05SDQo+Z2lhbnBp
ZXJvLnB1Y2Npb25pKEFUKWlzYy5jbnIuaXQgfFZpYSBNYWRvbm5hIGRlbCBQaWFubywgMTANCj5U
OiszOSAwNTU1MjI2NjgyIEY6KzM5IDA1NTUyMjY2ODN8NTAwMTkgU2VzdG8gRi4gKEZpcmVuemUp
IElUQUxZDQo+LS0NCj5UbyB1bnN1YnNjcmliZSBmcm9tIHRoaXMgbGlzdDogc2VuZCB0aGUgbGlu
ZSAidW5zdWJzY3JpYmUgbGludXgtYmx1ZXRvb3RoIiBpbg0KPnRoZSBib2R5IG9mIGEgbWVzc2Fn
ZSB0byBtYWpvcmRvbW9Admdlci5rZXJuZWwub3JnDQo+TW9yZSBtYWpvcmRvbW8gaW5mbyBhdCAg
aHR0cDovL3ZnZXIua2VybmVsLm9yZy9tYWpvcmRvbW8taW5mby5odG1sDQo=

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Obex Push
  2009-02-11 10:00 ` Li, Zhigang
@ 2009-02-11 10:11   ` GianPiero Puccioni
  2009-02-11 10:14     ` Li, Zhigang
  0 siblings, 1 reply; 10+ messages in thread
From: GianPiero Puccioni @ 2009-02-11 10:11 UTC (permalink / raw)
  To: Li, Zhigang; +Cc: linux-bluetooth

Li, Zhigang wrote:
>> -----Original Message----- From: linux-bluetooth-owner@vger.kernel.org 
>> [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of GianPiero Puccioni Sent:
>> 2009年2月11日 17:24 To: linux-bluetooth@vger.kernel.org Subject: Obex Push
>> 
>> Hi,
>> 
>> I am trying to write a small program to do an Obex push of a text file to a cell 
>> phone but I am having problems finding info on how to do this using the Bluez
>> library. Where can I find a manual or an example about this?
> 
> In test folder of obexd there was a test script:send-files It's ok to send file.
> 
Hi,

I have seen it but I don't know python, in fact I forgot to say the program should be a
small command line C program, something like "opush  00:11:9F:4B:A1:D9 text.txt" as I have
to use it in bash script.

Thanks
GiP
-- 
GianPiero Puccioni               |Istituto dei Sistemi Complessi-CNR
gianpiero.puccioni(AT)isc.cnr.it |Via Madonna del Piano, 10
T:+39 0555226682 F:+39 0555226683|50019 Sesto F. (Firenze)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Obex Push
  2009-02-11 10:11   ` GianPiero Puccioni
@ 2009-02-11 10:14     ` Li, Zhigang
  2009-02-11 10:25       ` GianPiero Puccioni
  2009-02-11 11:25       ` GianPiero Puccioni
  0 siblings, 2 replies; 10+ messages in thread
From: Li, Zhigang @ 2009-02-11 10:14 UTC (permalink / raw)
  To: GianPiero Puccioni; +Cc: linux-bluetooth

DQo+LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj5Gcm9tOiBHaWFuUGllcm8gUHVjY2lvbmkg
W21haWx0bzpnaWFucGllcm8ucHVjY2lvbmlAaXNjLmNuci5pdF0NCj5TZW50OiAyMDA5xOoy1MIx
McjVIDE4OjEyDQo+VG86IExpLCBaaGlnYW5nDQo+Q2M6IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtl
cm5lbC5vcmcNCj5TdWJqZWN0OiBSZTogT2JleCBQdXNoDQo+DQo+TGksIFp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oICAwMDoxMTo5Rjo0QjpBMTpEOQ0KPnRleHQudHh0IiBhcyBJIGhhdmUN
Cj50byB1c2UgaXQgaW4gYmFzaCBzY3JpcHQuDQogICAgLi9zZW5kLWZpbGVzIFt0YXJnZXQgYWRk
cmVzc10gL2hvbWUvdGV4dC50eHQNCg0KPlRoYW5rcw0KPkdpUA0KPi0tDQo+R2lhblBpZXJvIFB1
Y2Npb25pICAgICAgICAgICAgICAgfElzdGl0dXRvIGRlaSBTaXN0ZW1pIENvbXBsZXNzaS1DTlIN
Cj5naWFucGllcm8ucHVjY2lvbmkoQVQpaXNjLmNuci5pdCB8VmlhIE1hZG9ubmEgZGVsIFBpYW5v
LCAxMA0KPlQ6KzM5IDA1NTUyMjY2ODIgRjorMzkgMDU1NTIyNjY4M3w1MDAxOSBTZXN0byBGLiAo
RmlyZW56ZSkNCg==

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Obex Push
  2009-02-11 10:14     ` Li, Zhigang
@ 2009-02-11 10:25       ` GianPiero Puccioni
  2009-02-11 11:24         ` Iain Hibbert
  2009-02-11 11:25       ` GianPiero Puccioni
  1 sibling, 1 reply; 10+ messages in thread
From: GianPiero Puccioni @ 2009-02-11 10:25 UTC (permalink / raw)
  To: Li, Zhigang; +Cc: linux-bluetooth

Li, Zhigang wrote:

.....

>> I have seen it but I don't know python, in fact I forgot to say the program should be
>>  a small command line C program, something like "opush  00:11:9F:4B:A1:D9 text.txt"
>> as I have to use it in bash script.
> ./send-files [target address] /home/text.txt
> 
Unfortunately I cannot use it as I cannot compile obexd (my linux is a little outdated and
my libglib is too old). That's why I was trying to write my own C prog as I used Bluez
before for another project.

GiP
-- 
GianPiero Puccioni               |Istituto dei Sistemi Complessi-CNR
gianpiero.puccioni(AT)isc.cnr.it |Via Madonna del Piano, 10
T:+39 0555226682 F:+39 0555226683|50019 Sesto F. (Firenze)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Obex Push
  2009-02-11 10:25       ` GianPiero Puccioni
@ 2009-02-11 11:24         ` Iain Hibbert
  0 siblings, 0 replies; 10+ messages in thread
From: Iain Hibbert @ 2009-02-11 11:24 UTC (permalink / raw)
  To: GianPiero Puccioni; +Cc: Li, Zhigang, linux-bluetooth

On Wed, 11 Feb 2009, GianPiero Puccioni wrote:

> Li, Zhigang wrote:
>
> .....
>
> >> I have seen it but I don't know python, in fact I forgot to say the program should be
> >>  a small command line C program, something like "opush  00:11:9F:4B:A1:D9 text.txt"
> >> as I have to use it in bash script.
> > ./send-files [target address] /home/text.txt
> >
> Unfortunately I cannot use it as I cannot compile obexd (my linux is a little outdated and
> my libglib is too old). That's why I was trying to write my own C prog as I used Bluez
> before for another project.

you could use 'obexftp' or 'obexapp' either directly or as examples to do
this, both use 'openobex' library. See

	http://openobex.triq.net/
	http://www.geocities.com/m_evmenkin/

(obexapp was written for FreeBSD and provides server capability also but
perhaps it would be possible to adapt it to bluez..)

iain

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Obex Push
  2009-02-11 10:14     ` Li, Zhigang
  2009-02-11 10:25       ` GianPiero Puccioni
@ 2009-02-11 11:25       ` GianPiero Puccioni
  2009-02-11 11:53         ` Thierry Pierret
  1 sibling, 1 reply; 10+ messages in thread
From: GianPiero Puccioni @ 2009-02-11 11:25 UTC (permalink / raw)
  To: linux-bluetooth

Thierry Pierret wrote:
> I'm using obexd-0.8 on my iMX31 platform. Since I could not compile the
> D-Bus Python binding, I could not use the test Python scripts. Hence I
> create some small C programs to replace the send-file and the
> pull-business-card scripts. Here is the package I created. I provide it
> as-is.
>
>
>
> 2 programs available :
>
>    sender <00:11:22:33:44:55:66> <filename>
>    puller <00:11:22:33:44:55:66> <filename>
>
> The puller program could not be fully tested (cf. a former topic "Obexd
> 0.8 : pull failure").
>
> Hoping this helps.
>
> Regards.
> Thierry

Thanks, I tried it but it doesn't seem to work on my phone, it's a good starting point to
study 'tho. Just as an info, it does an Obex "Send" (FTP like) not a "Push"? From what I
understand there is a difference but I am not sure as I cannot find info on the subject.

I was able to use "gnome-obex-send" which seems to work. Does anyone knows where can I
find the source of that?

Thaks,
GiP
-- 
GianPiero Puccioni               |Istituto dei Sistemi Complessi-CNR
gianpiero.puccioni(AT)isc.cnr.it |Via Madonna del Piano, 10
T:+39 0555226682 F:+39 0555226683|50019 Sesto F. (Firenze)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Obex Push
  2009-02-11 11:25       ` GianPiero Puccioni
@ 2009-02-11 11:53         ` Thierry Pierret
  0 siblings, 0 replies; 10+ messages in thread
From: Thierry Pierret @ 2009-02-11 11:53 UTC (permalink / raw)
  To: linux-bluetooth

Actually, the sender program stimulates the "SenFiles" method of the 
org.openobex.Client interface. Therefore I thought it was an OBEX Push 
operation. The "FTP send" operation would rather have been implemented by 
the "PutFile" method of the org.openobex.FileTransfer interface.
But since the mobile I'm testing with implements both profiles, I cannot 
be sure.

To be sure, here, could an author intervene !? ... ;-)
Thanks

Regards.
Thierry




GianPiero Puccioni <gianpiero.puccioni@isc.cnr.it> 
Sent by: linux-bluetooth-owner@vger.kernel.org
2009/02/11 12:25

To
"linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
cc

Subject
Re: Obex Push







Thanks, I tried it but it doesn't seem to work on my phone, it's a good 
starting point to
study 'tho. Just as an info, it does an Obex "Send" (FTP like) not a 
"Push"? From what I
understand there is a difference but I am not sure as I cannot find info 
on the subject.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Obex Push
  2009-02-11  9:23 Obex Push GianPiero Puccioni
  2009-02-11 10:00 ` Li, Zhigang
@ 2009-02-12  1:24 ` Yao Ye
  1 sibling, 0 replies; 10+ messages in thread
From: Yao Ye @ 2009-02-12  1:24 UTC (permalink / raw)
  To: GianPiero Puccioni; +Cc: linux-bluetooth

you can try c samples on :
openobex-1.4.tar.gz\apps\obex_test

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Obex Push
@ 2009-02-11 10:47 Thierry Pierret
  0 siblings, 0 replies; 10+ messages in thread
From: Thierry Pierret @ 2009-02-11 10:47 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

I'm using obexd-0.8 on my iMX31 platform. Since I could not compile the 
D-Bus Python binding, I could not use the test Python scripts. Hence I 
create some small C programs to replace the send-file and the 
pull-business-card scripts. Here is the package I created. I provide it 
as-is.



2 programs available :

   sender <00:11:22:33:44:55:66> <filename>
   puller <00:11:22:33:44:55:66> <filename>

The puller program could not be fully tested (cf. a former topic "Obexd 
0.8 : pull failure").

Hoping this helps.

Regards.
Thierry

[-- Attachment #2: obexops-1.0.tar.gz --]
[-- Type: application/octet-stream, Size: 3036 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-02-12  1:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11  9:23 Obex Push GianPiero Puccioni
2009-02-11 10:00 ` Li, Zhigang
2009-02-11 10:11   ` GianPiero Puccioni
2009-02-11 10:14     ` Li, Zhigang
2009-02-11 10:25       ` GianPiero Puccioni
2009-02-11 11:24         ` Iain Hibbert
2009-02-11 11:25       ` GianPiero Puccioni
2009-02-11 11:53         ` Thierry Pierret
2009-02-12  1:24 ` Yao Ye
2009-02-11 10:47 Thierry Pierret

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.