From: "José Antonio Santos Cadenas" <jcaden@libresoft.es>
To: "Elvis Pfützenreuter" <epx@signove.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: HDP proposed API (ver 0.4)
Date: Fri, 14 May 2010 17:00:20 +0200 [thread overview]
Message-ID: <201005141700.20119.jcaden@libresoft.es> (raw)
In-Reply-To: <0F7F554B-D04C-46C1-8EE9-7AC3C6B72B5A@signove.com>
Hi Elvis,
El Friday 14 May 2010 14:46:46 Elvis Pfützenreuter escribió:
> Just some points,
>
> > Health Device Profile hierarchy
> > ===============================
> >
> > Service org.bluez
> > Interface org.bluez.HealthAdapter
> > Object path [variable prefix]/{hci0,hci1,...}
> >
> > Methods object CreateInstance(object path, dict config)
>
> I guess that 'object path' parameter is redundant.
This object path is the path of the object "org.bluez.HealthAgent"
that the client should implement to receive callbacks.
>
> >
> > Service org.bluez
> > Interface org.bluez.HealthInstance
> > Object path [variable prefix]/{hci0,hci1,...}/{hdp0,hdp1,...}
> >
> > object Connect(remote_instance_id)
> >
> > Connects with the remote instance and returns its object
> > path.
>
> It is important to mention explicitly that this remote_instance_id was revealed via GetHealthInstances().
>
> And mention that the object it returns implements the HealthLink interface.
I'll change this things in the next version.
>
> > void Disconnect(object device, boolean delete)
> >
> > Disconnect from the remote device. If delete is true,
> > any status will also be deleted. Otherwise, the status
> > will be kept for allowing future reconnections.
>
> s/status/state/, and mention that state only survives while the respective adapter instance exists.
Ok, too.
> >
> > uint16 OpenDataChannel(byte mdepid, byte config)
> >
> > Creates a new data channel with the indicated config
> > to the remote MCAP Data End Point (MDEP).
> > The configuration should indicate the channel quality of
> > service.
> > Returns the data channel id.
>
> Which is the actual format of 'byte config'?
Config parameter represents the quality of service of the data channel
that is being requested. In the current specification of HDP only Reliable and
Streaming channels are used with values 0x01 and 0x02 (page 22).
I will explain this properly in the next version of the API.
> >
> > void DeviceConnected(object path)
> >
> > This method is called whenever a new device connection
> > has been established over the control channel of the
> > current HDP instance. The object path contains the
> > object path of the remote device.
>
> "Remote device" is redundant, since it seems that BlueZ always calls "device" the remote thing, and "adapter" the local thing. I saw it first here, but it appears throughout the text.
Right, I wanted to emphasize this issue but you are right. It's redundant.
Will fix this issue too.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2010-05-14 15:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-14 10:03 HDP proposed API (ver 0.4) José Antonio Santos Cadenas
2010-05-14 12:46 ` Elvis Pfützenreuter
2010-05-14 15:00 ` José Antonio Santos Cadenas [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=201005141700.20119.jcaden@libresoft.es \
--to=jcaden@libresoft.es \
--cc=epx@signove.com \
--cc=linux-bluetooth@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).