192 Commits

Author SHA1 Message Date
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
Matthias Ringwald
334126b319 sm: provide le_device_db_index in SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED again 2016-11-21 16:24:45 +01:00
Milanka Ringwald
25234a7e05 Merge branch 'develop' into a2dp
Conflicts:
	example/Makefile.inc
	example/sco_demo_util.c
	port/pic32-harmony/app.X/nbproject/Makefile-default.mk
	port/pic32-harmony/app.X/nbproject/Makefile-genesis.properties
	port/pic32-harmony/app.X/nbproject/configurations.xml
	port/pic32-harmony/create_examples.py
	src/classic/btstack_cvsd_plc.c
	src/classic/btstack_sbc_bludroid.c
	src/classic/btstack_sbc_plc.c
	test/ring_buffer/.gitignore
2016-11-14 15:54:38 +01:00
Matthias Ringwald
bb38f05734 att_server: allow individual service implementations to register for can send now callbacks 2016-11-01 15:42:03 +01:00
Matthias Ringwald
f3963406e0 introduce UNUSED macro 2016-10-27 15:04:09 +02:00
Matthias Ringwald
84182ed9e3 example/sm_pairing_peripheral: print identity address and type 2016-10-27 11:13:46 +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
fcea67036c Merge branch 'develop' into le-data-channel 2016-10-04 11:46:19 +02:00
Milanka Ringwald
a23045e2bf extend btstack defines, and memory generator 2016-09-27 15:17:16 +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
8cff923e81 Merge branch 'develop' into a2dp 2016-08-24 13:45:38 +02:00
Matthias Ringwald
94530c7711 renamed l2cap error code 2016-07-27 16:39:11 +02:00
Matthias Ringwald
8901a7c412 hfp: drop negotiated codec from SLC and Audio connection events 2016-07-25 10:41:07 +02:00
Matthias Ringwald
9367f9b01e Merge branch 'develop' into le-data-channel 2016-07-22 16:50:18 +02:00
Matthias Ringwald
7e8856ebfd l2cap: return error for l2cap_unregister_service 2016-07-17 22:43:06 +02:00