Return-Path: Message-ID: From: "Albert Huang" To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] Re: Bluez service discovery In-Reply-To: <56326.80.203.47.235.1148559121.squirrel@webmail.uio.no> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4094_1806397.1148577822093" References: <56326.80.203.47.235.1148559121.squirrel@webmail.uio.no> Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Thu, 25 May 2006 13:23:42 -0400 ------=_Part_4094_1806397.1148577822093 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 5/25/06, markusv@student.matnat.uio.no wrote: > > > My UUID is: 1c712d88aac711da818a000bcd4e8912. I created this with uuidgen= . > I have done nothing more to it. Do I have to?? No, that's fine. What do I have to do? How > do I add the Bluetooth Base UUID or one of the UUID functions specific to > reserved UUIDs? To create a valid UUID out of a 16-bit reserved UUID, use sdp_uuid16_create. See sdp_lib.h for details, it should be pretty self explanatory. There a bunch of defined constants in sdp.h that you can also use. e.g. { uuid_t u; sdp_uuid16_create( &u, PUBLIC_BROWSE_GROUP ); } If you continue to have trouble, download the bluez source code and examine sdptool.c -albert Markus > > > Have you added the Bluetooth Base UUID, or one of the UUID functions > > specific to reserved UUIDs? > > > > -albert > > > > On 5/23/06, markusv@st... > > wrote: > > > > > > I have generated my own service and generated a UUID with uuidgen. But > my > > laptop does not find my service on the phone! If i change the uuid to > > search for on the laptop to 0x1002 the public brose root, as far as I > know > > it should than give me all services on the phone. But still no services > > are found. Searching with sdptool finds all services on the phone > > including my own. Why can't I find them in my C program? I would realy > > appreciate some help here. I have spent far to much time on that now, > and > > I need that to work for my master thesis. > > > > Markus > > > > > > > > >Individual devices (e.g. phones) do not have UUIDs. Services do. If > > you're > > >implementing a Bluetooth profile, that profile should come with a > > >preassigned UUID. If you're creating your own custom service that's > not > > >part of the Bluetooth profiles or specifications, make your own uuid > with > > >uuidgen. > > > > > >More generally, a UUID is a 128-bit identifier. Bluetooth has this > > notion > > >of 16-bit and 32-bit reserved UUIDs. These are really 128-bit UUIDs, > but > > >with the lower 112/96 bits fixed to the Bluetooth Base UUID. If you > find > > a > > >service with a 16-bit UUID (e.g. Serial Port Profile is 0x1101, then > you > > may > > >need to convert it to the full 128-bit UUID. > > > > -albert > > > > On 5/23/06, Rajan Rengasamy wrote: > > > > > > Hi Albert, if u dont mind me asking, would you be able to guide me on > > how > > > i can get my phone's UUID? please thanks. > > > i also have a k750. > > > > > > On Tuesday, May 23, 2006, at 07:54AM, Albert Huang > > > > > wrote: > > > > > > > > > > ><> > > > > > > > > > Rajan > > > ------------- > > > Tat Twvam Asi > > > > > > > > > If you're using a Bluetooth reserved UUID, make sure that you've > > correctly > > > specified it by adding the Bluetooth Base UUID. > > > > > > -albert > > > > > > On 5/19/06, markusv@st... > > > > > wrote: > > > > > > > > > > > > hi > > > > I am trying to discover services on my cellular phone a Sony > Ericsson > > > > k750 > > > > i. I am running ubuntu and the Bluez bluetooth protocol stack. I > have > > > > followed this example: > > > > http://people.csail.mit.edu/albert/bluez-intro/x601.html > > > > I have ofcourse changed the bluetooth address and the uuid to match > my > > > > phone and service. But still my program finds no services on the > > phone?? > > > > What is wrong here? Anybody have some hints? > > > > > > > > Thanks > > > > Markus > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > easier > > > > 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@li... > > > > 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 > > easier > > 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@li... > > https://lists.sourceforge.net/lists/listinfo/bluez-users > > > > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications i= n > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D107521&bid=3D248729&dat= =3D121642 > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > ------=_Part_4094_1806397.1148577822093 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 5/25/06, markusv@student.ma= tnat.uio.no <ma= rkusv@student.matnat.uio.no > wrote:

My UUID is: 1c712d88aac711da818a000bcd4e8912. I created this with = uuidgen.
I have done nothing more to it. Do I have to??

No= , that's fine.

What do I have to do? How
do I add the Bluetooth Base UUID or one of the= UUID functions specific to
reserved UUIDs?

To crea= te a valid UUID out of a 16-bit reserved UUID, use sdp_uuid16_create. = See sdp_lib.h for details, it should be pretty self explanatory.  The= re a bunch of defined constants in=20 sdp.h that you can also use.  e.g.

{
  uuid_t u;
&nb= sp; sdp_uuid16_create( &u, PUBLIC_BROWSE_GROUP );
}

If you co= ntinue to have trouble, download the bluez source code and examine sdptool.= c

-albert

Mar= kus

> Have you added the Bluetooth Base UUID, or one of the UUID = functions
>  specific to reserved UUIDs?
>
> -albert
= >
> On 5/23/06, markusv@st... <markusv@st...>
> wrote:=
>
>
> I have generated my own service and generated a= UUID with uuidgen. But my
> laptop does not find my service on the phone! If i change the uui= d to
> search for on the laptop to 0x1002 the public brose root, as = far as I know
> it should than give me all services on the phone. Bu= t still no services
> are found. Searching with sdptool finds all services on the phone=
> including my own. Why can't I find them in my C program? I would = realy
> appreciate some help here. I have spent far to much time on = that now, and
> I need that to work for my master thesis.
>
> Marku= s
>
>
>
> >Individual devices (e.g. phones) = do not have UUIDs.  Services do.  If
> you're > >implementing a Bluetooth profile, that profile should come with = a
> >preassigned UUID.  If you're creating your own cust= om service that's not
> >part of the Bluetooth profiles or specif= ications, make your own uuid with
> >uuidgen.
> >
&= gt; >More generally, a UUID is a 128-bit identifier.  Bluetoot= h has this
> notion
> >of 16-bit and 32-bit reserved UUIDs. &nb= sp;These are really 128-bit UUIDs, but
> >with the lower 112/96 b= its fixed to the Bluetooth Base UUID.  If you find
> a
= > >service with a 16-bit UUID ( e.g. Serial Port Profile is 0x1101, then you
> may
> >need= to convert it to the full 128-bit UUID.
>
> -albert
>=
> On 5/23/06, Rajan Rengasamy <rajanrengasamy@ma...> wrote:
> >
> > Hi Albert, if u dont mind me asking, would you= be able to guide me on
> how
> > i can get my phone's UUI= D? please thanks.
> > i also have a k750.
> >
> = > On Tuesday, May 23, 2006, at 07:54AM, Albert Huang < albert@cs...
> >
> > wrote:
> >
> >= >
> > ><<Original Attached>>
> >
= > >
> > Rajan
> > -------------
> > Ta= t Twvam Asi
> >
> >
> > If you're using a Bluetooth rese= rved UUID, make sure that you've
> correctly
> > specified= it by adding the Bluetooth Base UUID.
> >
> > -albert
> >
> > On 5/19/06, markusv@st... <markusv@st... > >
> > wrote:
> > >
> > >
= > > > hi
> > > I am trying to discover services on my= cellular phone a Sony Ericsson
> > > k750
> > > i. I am running ubuntu and the = Bluez bluetooth protocol stack. I have
> > > followed this exa= mple:
> > > http://people.csail.mit.edu/albert/bluez-intro/x601.html
> > = > I have ofcourse changed the bluetooth address and the uuid to match my=
> > > phone and service. But still my program finds no servic= es on the
> phone??
> > > What is wrong here? Anybody have some = hints?
> > >
> > > Thanks
> > > Mark= us
> > >
> > >
> > >
> > &= gt;
> > >
> > >
> > >
> > >= ; -------------------------------------------------------
> > >= ; Using Tomcat but need to do more? Need to support web services,
> = > > security?
> > > Get stuff done quickly with pre-integrated technology t= o make your job
> > > easier
> > > Download IBM W= ebSphere Application Server v.1.0.1 based on Apache
> > > Gero= nimo
> > >
> http://sel.as-us= .falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D12164= 2
> > >
> > > _______________________________________________
>= ; > > Bluez-users mailing list
> > > Bluez-users@li... > > > https://lists.sourceforge.net/lists/listinfo/bluez-users
> > = >
> >
> >
> >
>
>
> > -------------------------------------------------------
> Us= ing Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make you= r job
> easier
> 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@li...
> <= a href=3D"https://lists.sourceforge.net/lists/listinfo/bluez-users"> https://lists.sourceforge.net/lists/listinfo/bluez-users
>



-------------------------------------------------------
Al= l the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in<= br>the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D107521&bid=3D248729= &dat=3D121642
_______________________________________________Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/list= info/bluez-users

------=_Part_4094_1806397.1148577822093-- ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users