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
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
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 <[email protected]>
Sent by: [email protected]
2009/02/11 12:25
To
"[email protected]" <[email protected]>
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.
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)
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)
DQo+LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj5Gcm9tOiBHaWFuUGllcm8gUHVjY2lvbmkg
W21haWx0bzpnaWFucGllcm8ucHVjY2lvbmlAaXNjLmNuci5pdF0NCj5TZW50OiAyMDA5xOoy1MIx
McjVIDE4OjEyDQo+VG86IExpLCBaaGlnYW5nDQo+Q2M6IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtl
cm5lbC5vcmcNCj5TdWJqZWN0OiBSZTogT2JleCBQdXNoDQo+DQo+TGksIFpoaWdhbmcgd3JvdGU6
DQo+Pj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0gRnJvbTogbGludXgtYmx1ZXRvb3RoLW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uDQogICAgLi9zZW5kLWZpbGVzIFt0YXJnZXQgYWRk
cmVzc10gL2hvbWUvdGV4dC50eHQNCg0KPlRoYW5rcw0KPkdpUA0KPi0tDQo+R2lhblBpZXJvIFB1
Y2Npb25pICAgICAgICAgICAgICAgfElzdGl0dXRvIGRlaSBTaXN0ZW1pIENvbXBsZXNzaS1DTlIN
Cj5naWFucGllcm8ucHVjY2lvbmkoQVQpaXNjLmNuci5pdCB8VmlhIE1hZG9ubmEgZGVsIFBpYW5v
LCAxMA0KPlQ6KzM5IDA1NTUyMjY2ODIgRjorMzkgMDU1NTIyNjY4M3w1MDAxOSBTZXN0byBGLiAo
RmlyZW56ZSkNCg==
Li, Zhigang wrote:
>> -----Original Message----- From: [email protected]
>> [mailto:[email protected]] On Behalf Of GianPiero Puccioni Sent:
>> 2009??2??11?? 17:24 To: [email protected] 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)
DQo+LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj5Gcm9tOiBsaW51eC1ibHVldG9vdGgtb3du
ZXJAdmdlci5rZXJuZWwub3JnDQo+W21haWx0bzpsaW51eC1ibHVldG9vdGgtb3duZXJAdmdlci5r
ZXJuZWwub3JnXSBPbiBCZWhhbGYgT2YgR2lhblBpZXJvDQo+UHVjY2lvbmkNCj5TZW50OiAyMDA5
xOoy1MIxMcjVIDE3OjI0DQo+VG86IGxpbnV4LWJsdWV0b290a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