82 Commits

Author SHA1 Message Date
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
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
47430bed98 btstack_event: enable getters for HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE 2017-06-07 12:36:54 +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
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
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
f9a34d7a00 avrcp: play now event 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
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
5d5a5a9cd5 events: fix events where len(format) != len(params) 2017-02-20 15:16:44 +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
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
Matthias Ringwald
334126b319 sm: provide le_device_db_index in SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED again 2016-11-21 16:24:45 +01:00
Matthias Ringwald
82180fcac7 add le commands for reading and generating diffie-hellman keys via hci commands 2016-11-07 15:15:48 +01:00
Matthias Ringwald
13377825df sm: add identity_addr and identiy_addr_type to SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED. Also emit SM_EVENT_IDENTITY_CREATED during pairing 2016-10-27 11:11:40 +02:00
Matthias Ringwald
bab5f4f00b l2cap: provide incoming flag for L2CAP and RFCOMM opened events 2016-10-23 22:08:44 +02:00
Matthias Ringwald
12242deab3 add incoming to L2CAP_EVENT_LE_INCOMING_CONNECTION 2016-10-18 14:50:33 +02:00
Matthias Ringwald
4427624894 add LE Data Channel Events (L2CAP_EVENT_LE_*). implement can send now logic 2016-10-18 11:49:04 +02:00
Matthias Ringwald
ad71fb1742 annotate classic SSP events 2016-10-03 17:08:17 +02:00
Milanka Ringwald
d0c4aea60c HFP: Emit codec event after SCO connection is established, CODECS event is deleted, codec added as param in AUDIO_CONN event 2016-09-19 15:53:35 +02:00
Matthias Ringwald
8901a7c412 hfp: drop negotiated codec from SLC and Audio connection events 2016-07-25 10:41:07 +02:00
Milanka Ringwald
6a7f44bd8d add codec exchanged into event 2016-06-29 17:12:36 +02:00