108 Commits

Author SHA1 Message Date
Milanka Ringwald
5448c259b2 a2dp source: handle incoming connection, send event to client on signaling connection established 2017-08-16 16:06:13 +02:00
Milanka Ringwald
ef5ad9d62b a2dp: pass remote bd address on stream established event 2017-08-11 11:37:16 +02:00
Milanka Ringwald
4c9540146c avdtp: add AVRCP_SUBEVENT_NOW_PLAYING_INFO_QUERY event 2017-08-08 17:09:47 +02:00
Milanka Ringwald
c045af9951 avrcp target: add get play status query 2017-08-08 17:09:47 +02:00
Milanka Ringwald
e0bbf3ed25 avrcp target: add get capabilities 2017-08-08 17:09:47 +02:00
Milanka Ringwald
4b338011de avrcp target: added response for unit and subunit info 2017-08-08 17:09:47 +02:00
Matthias Ringwald
188c56a58d l2cap: fix compile 2017-08-08 16:20:24 +02:00
Matthias Ringwald
2053036d0c l2cap: emit L2CAP_EVENT_CHANNEL_OPENED with status L2CAP_CONNECTION_BASEBAND_DISCONNECT on HCI Disconnect Event before channel was opened 2017-08-08 16:08:03 +02:00
Matthias Ringwald
543b84e459 l2cap-ertm: abort connection if ertm requested but not supported by remote in information response 2017-07-25 15:13:59 +02:00
Milanka Ringwald
34b22aac09 avdtp, avrcp: cleanup, added error handling, fixed pts test compilation 2017-07-19 16:10:15 +02:00
Milanka Ringwald
4ccacc40ad avdtp: introduced avdtp cid on connect; cmd functions return now status; use local and remote sedi in events instead of initiator and acceptor seid 2017-07-19 16:05:35 +02:00
Milanka Ringwald
f1042e9d0d a2dp sink: forward stream establish, start, pause, release 2017-07-07 16:42:48 +02:00
Milanka Ringwald
7050d2ca52 a2dp sink: start extracting code from demo to a2dp layer 2017-07-07 14:09:31 +02:00
Milanka Ringwald
6086246c6d avrcp: add SDP query 2017-07-05 15:07:07 +02:00
Milanka Ringwald
89f1e358dd hfp hf: fix typo, add event to demo 2017-06-14 14:31:58 +02:00
Matthias Ringwald
ee6d17f24f avrcp: remove track_status from AVRCP_NOTIFICATION_EVENT_TRACK_CHANGED 2017-06-09 18:04:13 +02:00
Matthias Ringwald
6aecb8a4f3 avrcp: use play_status in AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED as it is the same as in AVRCP_SUBEVENT_PLAY_STATUS 2017-06-09 17:48:39 +02:00
Matthias Ringwald
d3b6a85e7f avrcp: use 'command_type' for ctype in AVRCP Events 2017-06-08 16:20:10 +02:00
Milanka Ringwald
b193c45e22 avrcp: use l2cap cid instead of handle 2017-06-07 22:50:10 +02:00
Matthias Ringwald
f193890f13 btstack_defines: fix spelling ATT_HANDLE_VALUE_INDICATION_IN_PROGRESS, re-enumberate OBEX errors, markup Bluetooth and BTstack error codes 2017-06-07 14:41:34 +02:00
Matthias Ringwald
d79faacd66 btstack_defines: fix spelling gap_event_inquiry_result_get_rssi_available 2017-06-07 11:21:10 +02:00
Milanka Ringwald
3e3fbf3df6 Merge branch 'avdtp-source2' into develop 2017-05-19 17:46:45 +02:00
Matthias Ringwald
6306068faf only define UNUSED if not already provided 2017-05-18 22:03:16 +02:00
Matthias Ringwald
1cfb383e56 gap: unify inquiry, inquiry with rssi, and extended inquiry response into GAP_EVENT_INQUIRY_RESULT with optional RSSI and name. Update gap_inquiry example 2017-05-17 23:07:55 +02:00
Matthias Ringwald
7149bde5b4 define HCI_CON_HANDLE_INVALID and use in sm.c. Fixes issues with con handles that are 0 2017-05-05 15:16:07 +02:00
Matthias Ringwald
dd148ddbc5 hid_device: added HID Meta Events 2017-04-27 14:56:07 +02:00
Milanka Ringwald
46e6b06306 clean up open/close stream api 2017-04-21 16:34:57 +02:00
Milanka Ringwald
a42de5830e add start/stop streaming events 2017-04-21 14:13:13 +02:00
Milanka Ringwald
b548dda644 send sine 2017-04-19 16:12:03 +02:00
Milanka Ringwald
ba155c2213 move connect/open stream to a2dp 2017-04-18 17:05:33 +02:00
Milanka Ringwald
f9bca1f39e avdtp: use avdtp cid instead con handle 2017-04-12 14:12:50 +02:00
Milanka Ringwald
a04ed5e965 move handling stream endpoint state to avdtp source 2017-04-04 16:26:40 +02:00
Milanka Ringwald
f7103c9035 avdtp: move sending code to app 2017-04-04 15:01:21 +02:00
Milanka Ringwald
85a0c7cd62 a2dp: avdtp source sends sbc frames at constant speed
a2dp: introduce context, move common code to avdtp.c

a2dp: wrap source functionality

a2dp: enable packet handler

a2dp: draft implemetation source open stream

avrcp: add streaming connection opened/released events

avdtp source: introduce timer for storing audio data at const fr., encode into sbc, and prepare for sending

wav_util: fix return of wav_reader_read_int16

sbc: rename sbc to msbc test

sbc: improve usage output

sbc: fix makefile

sbc: remove hardcoded bitrate

avdtp: add encode/decode sine example without using ring buffer

avdtp: move ring buffer to stream endpoint

avdtp: add encode/decode test with ring buffer

sbc: use btstack_sbc_encoder_num_audio_frames - 1 audio frame contains 1 audio sample for mono and 2 for stereo

sbc: use btstack_sbc_encoder_num_audio_frames - 1 audio frame contains 1 audio sample for mono and 2 for stereo

sbc: revert sample counting

avdtp: source sending correct audio first time

avdtp: shorter timer for audio generation gets correct stream

avdtp: set state to AVDTP_STREAM_ENDPOINT_STREAMING_W2_SEND when more data is ready

avdtp: introduce transport category as mandatory

avdtp: introduce transport category as mandatory
2017-03-23 22:28:03 +01:00
Matthias Ringwald
52aef63f9c events: add params for BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 2017-03-23 22:28:03 +01:00
Matthias Ringwald
f1b34e8dd9 pbap: add Phone Book Access Client (PBAP) over General Object Exchange (GOEP)
create RFCOMM connection
send OBEX Connect and receive response
retrieve phone book
repeat GET request when response incomplete
start extracting goep_client.h
support CONNECT message
support GET message
add obex_iterator
use obex_iterator
goep_client adds connection_id if available
avoid accessing internal goep state from pbap
start extracting pbap_client.h
events: add meta events and data packet types for GOEP and PBAP
use events and data packet type for goep
use events and data packet type for pbap
remove private fields from GOEP_SUBEVENT_CONNECTION_OPENED
implement SetPhoneBook
return cid in connect operations, return errors if busy, return obex errors
limit OBEX packet size by bearer MTU
split into obex.h, goep_client.h, goep_client.c, pbap_client.h, pbab_client.c
fix state after pull phonebook
add console UI for testing
clean up code
provide packet_handler in create connection for pbap_client and goep_client
annotate headers for goep_client and pbap_client
2017-03-23 22:27:59 +01:00
Milanka Ringwald
6eb7ba29da avrcp: events definition 2017-03-01 16:01:50 +01:00
Matthias Ringwald
e222d6a026 avrcp: reorder fields in AVRCP_SUBEVENT_NOW_PLAYING_INFO, extend event generator to handle multiple variable length fields 2017-03-01 16:01:49 +01:00
Milanka Ringwald
2a029560d7 avrcp: introduced shuffle and repeat 2017-03-01 16:01:49 +01:00
Matthias Ringwald
d16a039205 h4_ehcill/h5: use unique id for HCI_EVENT_TRANSPORT_SLEEP_MODE 2017-02-28 12:16:27 +01:00
Matthias Ringwald
62ca45d755 h4_ehcill/h5: provide HCI_EVENT_TRANSPORT_SLEEP_MODE event that indicates to app if it can put device into deep sleep 2017-02-28 12:08:10 +01:00
Matthias Ringwald
2c737695ff events: fix events where len(format) != len(params) 2017-02-20 12:41:57 +01:00
Milanka Ringwald
cd41da7eac avrcp: play info event 2017-02-10 11:07:03 +01:00
Milanka Ringwald
decc740c46 avrcp: send cmd unit_info 2017-02-10 11:07:03 +01:00
Milanka Ringwald
2c708e8a27 introduced general reject and reject events 2017-01-18 14:25:38 +01:00
Matthias Ringwald
beaf082c27 avdtp: use unique meta event 0xeb 2017-01-16 17:27:06 +01:00
Milanka Ringwald
60099f8b9d fix configuration event 2017-01-16 15:16:45 +01:00
Milanka Ringwald
ea7bd52950 emit configuration and capabilities 2017-01-16 14:40:25 +01:00
Milanka Ringwald
3338b9aef0 sink initiator smg pts tests 2017-01-10 17:01:33 +01:00
Milanka Ringwald
690d8d2bbb Merge branch 'develop' into a2dp 2016-12-07 12:11:46 +01:00