public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Jun Sun <jsun@docomolabs-usa.com>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: RE: [Bluez-devel] bluetooth services and profiles
Date: Wed, 27 Oct 2004 00:38:23 +0200	[thread overview]
Message-ID: <1098830304.6611.1.camel@pegasus> (raw)
In-Reply-To: <7FB17951357F434FA9C14522522BA59B447F63@dcl-ex.dcml.docomolabs-usa.com>

Hi Jun,

> Thanks for the explanation on profiles.  It helps quite a bit.
> 
> Do you know how we can supply those phone services with bluez?
> 
> For example, the web page http://mobile.linux.pt/p800/ listed the
> following services for P800:
> 
> earth:~# sdptool browse 00:0A:D9:17:7F:51
> Browsing 00:0A:D9:17:7F:51 ...
> Service Name: Voice gateway
> Service Description: Voice gateway
> Service Provider: Sony Ericsson
> Service RecHandle: 0x10000
> Service Class ID List:
>   "Headset Audio Gateway" (0x1112)
>   "Generic Audio" (0x1203)
> Protocol Descriptor List:
>   "L2CAP" (0x0100)
>   "RFCOMM" (0x0003)
>     Channel: 8
> Language Base Attr List:
>   code_ISO639: 0x656e
>   encoding:    0x6a
>   base_offset: 0x100
> Profile Descriptor List:
>   "Headset" (0x1108)
>     Version: 0x0100
> 
> Service Name: Dial-up Networking
> Service Description: Dial-up Networking
> Service Provider: Sony Ericsson
> Service RecHandle: 0x10002
> Service Class ID List:
>   "Dialup Networking" (0x1103)
> Protocol Descriptor List:
>   "L2CAP" (0x0100)
>   "RFCOMM" (0x0003)
>     Channel: 2
> Language Base Attr List:
>   code_ISO639: 0x656e
>   encoding:    0x6a
>   base_offset: 0x100
> Profile Descriptor List:
>   "Dialup Networking" (0x1103)
>     Version: 0x0100
> 
> Service Name: OBEX Object Push
> Service RecHandle: 0x10003
> Service Class ID List:
>   "OBEX Object Push" (0x1105)
> Protocol Descriptor List:
>   "L2CAP" (0x0100)
>   "RFCOMM" (0x0003)
>     Channel: 3
>   "OBEX" (0x0008)
> Profile Descriptor List:
>   "OBEX Object Push" (0x1105)
>     Version: 0x0100
> 
> Service Name: Bluetooth Serial Port
> Service Description: Bluetooth Serial Port
> Service Provider: Symbian Ltd.
> Service RecHandle: 0x10005
> Service Class ID List:
>   "Serial Port" (0x1101)
> Protocol Descriptor List:
>   "L2CAP" (0x0100)
>   "RFCOMM" (0x0003)
>     Channel: 1
> Language Base Attr List:
>   code_ISO639: 0x656e
>   encoding:    0x6a
>   base_offset: 0x100
> 
> 
> Which part of bluetooth spec covers such service discovery?  Can I
> implement similar services on top of bluez stack?  (Imagine the scenario
> if I put Linux/bluez into a phone ...)

this services are all RFCOMM based and so you need to write a RFCOMM
server application for each of them. It must listen on the specific
channel and register an SDP record. And from that point it is only
socket programming. It think the pand source code is the easiest to
understand how this works.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2004-10-26 22:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26 22:20 [Bluez-devel] bluetooth services and profiles Jun Sun
2004-10-26 22:38 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-10-25 17:12 Jun Sun
2004-10-26 21:36 ` Marcel Holtmann

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=1098830304.6611.1.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=jsun@docomolabs-usa.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox