80 Commits

Author SHA1 Message Date
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
Matthias Ringwald
da144af509 l2cap: extract l2cap_create_channel_entry. implement register/unregister le service 2016-07-09 23:03:49 +02:00
Milanka Ringwald
6a7f44bd8d add codec exchanged into event 2016-06-29 17:12:36 +02:00
Matthias Ringwald
3d7fe1e922 sm: send/receive keypress notifications 2016-06-16 12:32:12 +02:00
Matthias Ringwald
8362d86ace sm: add SM_EVENT_NUMERIC_COMPARISON_REQUEST and SM_EVENT_NUMERIC_COMPARISON_CANCEL events for Numeric Comparison 2016-05-27 16:40:53 +02:00
Matthias Ringwald
6ff51cfd6b Add handle to HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED getters 2016-04-21 15:29:46 +02:00
Milanka Ringwald
a0653c3b5c hfp: HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_ESTABLISHED emited with connection handle 2016-04-08 17:04:40 +02:00
Milanka Ringwald
6d4269d395 fix L2CAP format 2016-04-01 16:56:21 +02:00
Milanka Ringwald
46bc5396e9 add missing GAP formats 2016-04-01 16:41:42 +02:00
Matthias Ringwald
fea5a680db java: fix compile 2016-04-01 15:54:37 +02:00
Matthias Ringwald
62c64df103 daemon: prefix l2cap/rfcomm/sdp events only used by daemon 2016-04-01 15:37:36 +02:00
Matthias Ringwald
423c667c13 bnep: add bnep_cid to all events, generate bnep event getters, BNEP_EVENT_OPEN_CHANNEL_COMPLETE -> BNEP_EVENT_CHANNEL_OPENED 2016-04-01 11:41:58 +02:00
Matthias Ringwald
49d18261c1 events: add ATT_EVENT_CAN_SEND_NOW, document BNEP events 2016-04-01 10:49:12 +02:00