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
-----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)
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)
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
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)
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 [off-list ref]
Sent by: linux-bluetooth-owner@vger.kernel.org
2009/02/11 12:25
To
"linux-bluetooth@vger.kernel.org" [off-list ref]
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.