Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v2 1/2] android/hal-ipc-api: Add Handsfree client IPC API
Date: Tue, 09 Sep 2014 13:26:13 +0200	[thread overview]
Message-ID: <4521994.sNOyZIxlvP@leonov> (raw)
In-Reply-To: <1409838586-29049-1-git-send-email-lukasz.rymanowski@tieto.com>

Hi Łukasz,

On Thursday 04 of September 2014 15:49:45 Lukasz Rymanowski wrote:
> ---
> v2: Fix opcode issue and Battery level command name
> 
>  android/hal-ipc-api.txt | 317
> ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 317
> insertions(+)
> 
> diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
> index ae62c10..ca41cff 100644
> --- a/android/hal-ipc-api.txt
> +++ b/android/hal-ipc-api.txt
> @@ -2078,3 +2078,320 @@ Notifications:
> 
>  		Notification parameters: Status (4 octets)
>  		                         Handle (4 octets)
> +
> +
> +Bluetooth Handsfree Client HAL (ID 10)
> +======================================
> +
> +Android HAL name: "hf_client" (BT_PROFILE_HF_CLIENT_ID)
> +
> +Commands and response:
> +
> +	Opcode 0x00 - Error response
> +
> +		Valid status values: 0x01 = Fail
> +		                     0x02 = Not ready
> +		                     0x03 = No memory
> +		                     0x04 = Busy
> +		                     0x05 = Done (already completed)
> +		                     0x06 = Unsupported
> +		                     0x07 = Parameter invalid
> +		                     0x08 = Unhandled
> +		                     0x09 = Authentication failure
> +		                     0x0a = Remote device down
> +
> +	Opcode 0x01 - Connect command/respose
> +
> +		Command parameters: Remote address (6 octects)
> +		Response parameters: <none>
> +
> +		 In case of an error, the error response will be returned.
> +
> +	Opcode 0x02 - Disonnect command/response
> +
> +		Command parameters: Remote address (6 octetcs)
> +		Response parameters: <none>
> +
> +		 In case of an error, the error response will be returned.
> +
> +	Opcode 0x03 - Connect Audio command/response
> +
> +		Command parameters: Remote address (6 octets)
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x04 - Disconnect Audio command/response
> +
> +		Command parameters: Remote address (6 octets)
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x05 - Start Voice Recognition command/response
> +
> +		Command parameters: <none>
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x06 - Stop Voice Recognition command/response
> +
> +		Command parameters: <none>
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x07 - Volume Control command/response
> +
> +		Command parameters: Volume type (1 octet)
> +		                    Volume (1 octet)
> +		Response parameters: <none>
> +
> +		Valid volume types: 0x00 = Speaker
> +		                    0x01 = Microphone
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x08 - Dial command/response
> +
> +		Command parameters: Number (string)
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x09 - Dial Memory command/response
> +
> +		Command parameters: Location (1 octet)
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x10 - Handle Call Action command/response
> +
> +		Command parameters: Action (1 octet)
> +		                    Call Index (1 octet)
> +		Response parameters: <none>
> +
> +		Valid actions: 0x00 = CHLD_0
> +		               0x01 = CHLD_1
> +		               0x02 = CHLD_2
> +		               0x03 = CHLD_3
> +		               0x04 = CHLD_4
> +		               0x05 = CHLD_1x
> +		               0x06 = CHLD_2x
> +		               0x07 = ATA
> +		               0x08 = CHUP
> +		               0x09 = BTRH_0
> +		               0x10 = BTRH_1
> +		               0x11 = BTRH_2
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x11 - Query Current Calls commad/response
> +
> +		Command parameters: <none>
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x12 - Query Current Operator Name
> +
> +		Command parameters: <none>
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x13 - Retrieve Subscriber Info command/response
> +
> +		Command parameters: <none>
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x14 - Send DTMF Code command/response
> +
> +		Command parameters: Code (1 octet)
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +	Opcode 0x15 - Request Last Voice Tag Number command/response
> +
> +		Command parameters: <none>
> +		Response parameters: <none>
> +
> +		In case of an error, the error response will be returned.
> +
> +Notifications:
> +
> +	Opcode 0x81 - Connection State Changed notification
> +
> +		Notification parameters: State (1 octet)
> +		                         Peer Features (1 octet)
> +		                         Address (6 octets)
> +
> +		Valid State values: 0x00 = Disconnected
> +		                    0x01 = Connecting
> +		                    0x02 = SLC Connected
> +		                    0x03 = Disconnecting
> +
> +		Note: Peer Features is valid only in SCL Connected state
> +
> +	Opcode 0x82 - Audio State Changed notification
> +
> +		Notification parameters: State (1 octet)
> +		                         Address (6 octets)
> +
> +		Valid State values: 0x00 = Disconnected
> +		                    0x01 = Connecting
> +		                    0x02 = Connected
> +		                    0x03 = Connected mSBC
> +
> +	Opcode 0x83 - Voice Recognition State Changed notification
> +
> +		Notification parameters: State (1 octet)
> +
> +		Valid State values: 0x00 = VR Stopped
> +		                    0x01 = VR Started
> +
> +	Opcode 0x84 - Network State Changed notification
> +
> +		Notification parameters: State (1 octet)
> +
> +		Valid State values: 0x00 = Network Not Available
> +		                    0x01 = Network Available
> +
> +	Opcode 0x85 - Network Roaming Type Changed notification
> +
> +		Notification parameters: Type (1 octet)
> +
> +		Valid Type values: 0x00 = Home
> +		                   0x01 = Roaming
> +
> +	Opcode 0x86 - Network Signal Strength notification
> +
> +		Notification parameters: Signal Strength (1 octet)
> +
> +	Opcode 0x87 - Battery Level notification
> +
> +		Notification parameters: Battery Level (1 octet)
> +
> +	Opcode 0x88 - Current Operator Name notification
> +
> +		Notification parameters: Name (string)
> +
> +	Opcode 0x89 - Call Indicatior notification
> +
> +		Notification parameters: Call (1 octet)
> +
> +		Valid Call values: 0x00 = No Call In Progress
> +		                   0x01 = Call In Progress
> +
> +	Opcode 0x8a - Call Setup Indicator notification
> +
> +		Notification parameters: Call Setup (1 octet)
> +
> +		Valid Call Setup values: 0x00 = None
> +		                         0x01 = Incoming
> +		                         0x02 = Outgoing
> +		                         0x03 = Alerting
> +
> +	Opcode 0x8b - Call Held Indicator notification
> +
> +		Notification parameters: Call Held (1 octet)
> +
> +		Valid Call Held values: 0x00 = None
> +		                        0x01 = Hold and Active
> +					0x02 = Hold
> +
> +	Opcode 0x8c - Resposne and Hold Status notification
> +
> +		Notification parameters: Status (1 octet)
> +
> +		Valid Status values: 0x00 = Held
> +		                     0x01 = Accept
> +		                     0x02 = Reject
> +
> +	Opcode 0x8d - Calling Line Identification notification
> +
> +		Notification parameters: Number (string)
> +
> +		Note: This will be called only on incoming call if number is
> +		provided.
> +
> +	Opcode 0x8e - Call Waiting notification
> +
> +		Notification parameters: Nunmber (string)
> +
> +	Opcode 0x8f - Current Calls List notification
> +
> +		Notification parameters: Index (1 octet)
> +		                         Direction (1 octet)
> +		                         Call State (1 octet)
> +		                         Multiparty (1 octet)
> +		                         Number (string)
> +
> +		Valid Direction values: 0x00 = Outgoing
> +		                        0x01 = Incoming
> +
> +		Valid Call Sate values: 0x00 = Active
> +		                        0x01 = Held
> +		                        0x02 = Dialing
> +		                        0x03 = Alerting
> +		                        0x04 = Incoming
> +		                        0x05 = Waiting
> +		                        0x06 = Call held by Response and Hold
> +
> +		Valid Multiparty values: 0x00 = Single Call
> +		                         0x01 = Multiparty (conference) Call
> +
> +		Note: Number might be empty
> +
> +	Opcode 0x90 - Volume Changed notification
> +
> +		Notification parameters: Type (1 octet)
> +		                         Volume (1 octet)
> +
> +		Valid Type values: 0x00 = Speaker
> +		                   0x01 = Microphone
> +
> +	Opcode 0x91 - Command Complete Callback notification
> +
> +		Notification parameters: Type (1 octet)
> +		                         CME (1 octet)
> +
> +		Valid Type values: 0x00 = OK
> +		                   0x01 = Error
> +		                   0x02 = Error no carrier
> +		                   0x03 = Error busy
> +		                   0x04 = Error no answer
> +		                   0x05 = Error delayed
> +		                   0x06 = Error blacklisted
> +		                   0x07 = Error CME
> +
> +		Note: CME parameter is valid only for Error CME type
> +
> +	Opcode 0x92 - Subscriber Service Info Callback notification
> +
> +		Notification parameters: Name (string)
> +		                         Type (1 octet)
> +
> +		Valid Type values: 0x00 = Service unknown
> +		                   0x01 = Service voice
> +		                   0x02 = Service fax
> +
> +	Opcode 0x93 - In Band Ring Settings Callback notification
> +
> +		Notification parameters: State (1 octet)
> +
> +		Valid State values: 0x00 = In band ringtone not provided
> +		                    0x01 = In band ringtone provided
> +
> +	Opcode 0x94 - Last Voice Call Tag Number Callback notification
> +
> +		Notification parameters: Number (string)
> +
> +	Opcode 0x95 - Ring Indication notification
> +
> +		Notification parameters: <none>

Both patches applied, thanks.

-- 
BR
Szymon Janc

      parent reply	other threads:[~2014-09-09 11:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 13:49 [PATCH v2 1/2] android/hal-ipc-api: Add Handsfree client IPC API Lukasz Rymanowski
2014-09-04 13:49 ` [PATCH v2 2/2] android/hf_client: Add Android hf_client header Lukasz Rymanowski
2014-09-09 11:26 ` Szymon Janc [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=4521994.sNOyZIxlvP@leonov \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=lukasz.rymanowski@tieto.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