From: Mate Soos <msoos@freemail.hu>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Transfering contacts, pictures, etc on samsung a640
Date: Sun, 13 Aug 2006 20:32:09 +0200 [thread overview]
Message-ID: <44DF7029.3050402@freemail.hu> (raw)
In-Reply-To: <20060812154121.GB28903@unununium.org>
Get kdebluetooth and you will be enlightened.
M=E1t=E9
Phil Frost wrote:
> I just got a Samsung A640 and I've been trying to get some sort of
> commuinication between it and my linux box working. I'd like to be able
> to transfer contacts and pictures between the two machines. The device
> info screen on the phone says it supports the "OPP" bluetooth profile,
> and when I run sdptool browse at the phone I get this output:
>
> Service Name: OBEX Object Push
> Service RecHandle: 0x10000
> Service Class ID List:
> "OBEX Object Push" (0x1105)
> Protocol Descriptor List:
> "L2CAP" (0x0100)
> "RFCOMM" (0x0003)
> Channel: 1
> "OBEX" (0x0008)
> Language Base Attr List:
> code_ISO639: 0x656e
> encoding: 0x6a
> base_offset: 0x100
>
> The phone has in most of the menus when viewing a contact or picture or
> whatnot a "send contact" option, so I figure what I want to do should be
> at least possible.
>
> However, I'm a little confused about what to actually do, and my
> confused attempts have been unsucessful. After much searching I found
> this page <http://www.caside.lancs.ac.uk/java_bt.php#BlueZ_-_OBEX> that
> has a link to a tarball with programs "opd" and "ussp-push". I found
> that ussp-push is available from most distributions so I've been using
> that, but I can't find this opd anywhere else, although from the mailing
> list archives it seems some people are using it.
>
> I tried running the opd as suggested on previously mentioned page:
>
> $ opd --mode OBEX --channel 10 --path /tmp/opd --sdp --metadata
> opd[6614]: OBEX Push Daemon - version 0.2 started
> opd[6614]: OBEX Object Push service registered with sdpd
> opd[6614]: OBEX server listening on channel 10
>
> All seems well; I can see the service on local with sdptool:
>
> $ sdptool browse local
> Browsing FF:FF:FF:00:00:00 ...
> Service Name: OBEX Object Pus
> Service RecHandle: 0x10000
> Service Class ID List:
> "OBEX Object Push" (0x1105)
> Protocol Descriptor List:
> "L2CAP" (0x0100)
> "RFCOMM" (0x0003)
> Channel: 10
> "OBEX" (0x0008)
> Profile Descriptor List:
> "OBEX Object Push" (0x1105)
> Version: 0x0100
>
> However, when I ask the phone to send a contact, it asks, "would you
> like to search?", to which I reply "yes", and it will then display
> "searching..." and a busy indicator for 20 seconds or so, then report
> that no devices were found. If I run hcidump during this process I see
> no output. Here is my hcid.conf, which I believe should make my computer
> discoverable:
>
> options {
> autoinit yes;
> security auto;
> pairing multi;
> passkey "613273";
> }
>
> device {
> name "%h-%d";
> class 0xff0100; (have tried 0xff0200 as well, with identi=
cal results)
> iscan enable; pscan enable;
> lm accept;
> lp rswitch,hold,sniff,park;
> }
>
> "All right", I thought, "maybe I can send something to the phone". From
> above output of sdptool browse it seems that the obex object push
> service is running on channel 1 of the phone. So, I run the command:
>
> sudo rfcomm bind /dev/rfcomm1 00:12:D1:C4:5F:BB 1
>
> all good there. Now:
>
> -------------------
> $ echo foo > foo.txt
> $ ussp-push /dev/rfcomm1 foo.txt foo.txt
>
> pushing file foo.txt
> name=3Dfoo.txt, size=3D4
> Registered transport
>
> set user data
>
> created new objext
>
> started a new request
> reqdone
> Command (00) has now finished, rsp: 20Connected!
>
> Connection return code: 0, id: 0
> Connection established
> connected to server
> Sending file: foo.txt, path: foo.txt, size: 4
> reqdone
> Command (02) has now finished, rsp: 4freqdone
> Command (01) has now finished, rsp: 20Disconnect done!pushed!!
> ------------------
>
> This seems to have worked, but I can't figure out what the phone did
> with it! Is there some file format or additional options I need to use
> to do something useful, like upload some text notes or a contact? Thanks
> for any help.
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job ea=
sier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>
> =
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
prev parent reply other threads:[~2006-08-13 18:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-12 15:41 [Bluez-users] Transfering contacts, pictures, etc on samsung a640 Phil Frost
2006-08-13 18:32 ` Mate Soos [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44DF7029.3050402@freemail.hu \
--to=msoos@freemail.hu \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.