Thanks for your answer. It took me a while to get the PC running with the BT dongle.The PC BT also gets the disconnect - but because of an ERROR_CODE_AUTHENTICATION_FAILURE - reason 0x16.With our posix-h4-scsc device, authentication is not the problem, since the devices have been paired in the past and authentication passes correctly. Also, the disconnect comes from the device (reason 0x13) while here it's from the host (0x16).Attached are the files using the PC CSR BT dongle.
To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/0DD04021-1B18-4E68-BD8B-E7C8F0211F6D%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/E0985EAC-2BE8-41CB-8AF4-5C7D7E8BC32C%40gmail.com.
V mechif@orcam4 ~/ws/bluekitchen_lib/port/posix-h4-scsc$ (v1.53) objdump -T ~/ws/bluekitchen_lib/port/posix-h4-scsc/install/lib/libbluekitchen.so > objdump.txt
V mechif@orcam4 ~/ws/bluekitchen_lib/port/posix-h4-scsc$ (v1.53) less objdump.txt | grep "a2dp"
0007e63c g DF .text 00000090 Base a2dp_source_create_sdp_record 0007f878 g DF .text 00000054 Base a2dp_sink_set_config_atrac 0007f244 g DF .text 00000090 Base a2dp_sink_create_sdp_record 00000000 D *UND* 00000000 a2dp_config_process_set_mpeg_aac 0007f7d0 g DF .text 00000054 Base a2dp_sink_set_config_mpeg_audio 0007f4b8 g DF .text 00000024 Base a2dp_sink_finalize_stream_endpoint 0007ea6c g DF .text 00000030 Base a2dp_source_disconnect 0007e838 g DF .text 000000c4 Base a2dp_source_create_stream_endpoint 0007ecec g DF .text 00000054 Base a2dp_source_set_config_mpeg_audio 0007f4dc g DF .text 0000010c Base a2dp_sink_establish_stream 0007e80c g DF .text 0000002c Base a2dp_source_deinit 0007ec98 g DF .text 00000054 Base a2dp_source_set_config_sbc 0007eb64 g DF .text 00000044 Base a2dp_max_media_payload_size 0007f8cc g DF .text 0000005c Base a2dp_sink_set_config_other 0007e7f8 g DF .text 00000014 Base a2dp_source_init 00000000 D *UND* 00000000 a2dp_register_source_packet_handler 0007eba8 g DF .text 0000005c Base a2dp_source_stream_send_media_payload 0007f400 g DF .text 000000b8 Base a2dp_sink_create_stream_endpoint 00000000 D *UND* 00000000 a2dp_config_process_set_sbc 0007e8fc g DF .text 00000024 Base a2dp_source_finalize_stream_endpoint 0007f1d8 g DF .text 00000044 Base a2dp_source_register_media_config_validator 0007e788 g DF .text 00000070 Base a2dp_source_register_packet_handler 0007ede8 g DF .text 0000005c Base a2dp_source_set_config_other 0007ec54 g DF .text 00000044 Base a2dp_source_stream_send_media_packet 00000000 D *UND* 00000000 a2dp_config_process_avdtp_event_handler 0007ec04 g DF .text 00000050 Base a2dp_source_stream_send_media_payload_rtp 0007e920 g DF .text 0000014c Base a2dp_source_establish_stream 00000000 D *UND* 00000000 a2dp_config_process_set_atrac 00000000 D *UND* 00000000 a2dp_deinit 0007f77c g DF .text 00000054 Base a2dp_sink_set_config_sbc 0007ed94 g DF .text 00000054 Base a2dp_source_set_config_atrac 0007f344 g DF .text 00000054 Base a2dp_sink_register_media_handler 00000000 D *UND* 00000000 a2dp_replace_subevent_id_and_emit_source 0007eae0 g DF .text 00000044 Base a2dp_source_pause_stream 00000000 D *UND* 00000000 a2dp_register_sink_packet_handler 0007ea9c g DF .text 00000044 Base a2dp_source_start_stream 00000000 D *UND* 00000000 a2dp_subevent_id_for_avdtp_subevent_id 0007ed40 g DF .text 00000054 Base a2dp_source_set_config_mpeg_aac 0007f824 g DF .text 00000054 Base a2dp_sink_set_config_mpeg_aac 0007eb24 g DF .text 00000040 Base a2dp_source_stream_endpoint_request_can_send_now 0007f3ac g DF .text 00000054 Base a2dp_sink_deinit 0007f2d4 g DF .text 00000070 Base a2dp_sink_register_packet_handler 00000000 D *UND* 00000000 a2dp_config_process_set_mpeg_audio 0007ee44 g DF .text 000002dc Base a2dp_source_reconfigure_stream_sampling_frequency 0007f738 g DF .text 00000044 Base a2dp_sink_register_media_config_validator 0007f5e8 g DF .text 0000002c Base a2dp_sink_disconnect 00000000 D *UND* 00000000 a2dp_config_process_set_other 00000000 D *UND* 00000000 a2dp_create_sdp_record 00000000 D *UND* 00000000 a2dp_config_process_ready_for_sep_discovery 0007f398 g DF .text 00000014 Base a2dp_sink_init
To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/AE968A1A-5B84-4C5A-AA45-3BF18D997204%40gmail.com.
I used the a2dp_source_demo.static void btstack_uart_block_posix_process_read(btstack_data_source_t *ds) {......if (bytes_read < 0) {log_error("read returned error\n");btstack_run_loop_enable_data_source_callbacks(ds, DATA_SOURCE_CALLBACK_READ);return;}......}
To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/97039FB6-80D1-4559-A5F4-38800DB8F084%40gmail.com.
203 12:21:03.473 PKTLOG 28 hfp_ag_demo.c.200: USER:'a'336 12:21:05.053 PKTLOG 82 l2cap.c.2842: channel 0x56364800f420, cid 0042 - state 6: actual 0 >= required 2?350 12:21:08.149 PKTLOG 70 hci.c.3539: HCI_EVENT_DISCONNECTION_COMPLETE status 0x00 reason 0x13 // ERROR_CODE_REMOTE_USER_TERMINATED_CONNECTION
357 12:22:45.521 PKTLOG 28 hfp_ag_demo.c.200: USER:'a'513 12:22:54.773 PKTLOG 57 l2cap.c.2857: l2cap_ready_to_connect, authentication OK656 12:22:54.943 PKTLOG 117 rfcomm.c.264: RFCOMM_EVENT_CHANNEL_OPENED status 0x0 addr F4:AF:E7:1D:2D:D5 handle 0x47 channel #7 cid 0x02 mtu 1018
43968 12:23:21.076 PKTLOG 70 hci.c.3539: HCI_EVENT_DISCONNECTION_COMPLETE status 0x00 reason 0x08
43997 12:23:21.792 PKTLOG 28 hfp_ag_demo.c.211: USER:'b'44008 12:25:00.317 PKTLOG 51 hci.c.6747: BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 144040 12:25:00.511 PKTLOG 70 hci.c.3539: HCI_EVENT_DISCONNECTION_COMPLETE status 0x00 reason 0x1344044 12:25:00.512 PKTLOG 51 hci.c.6747: BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 0
To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/36BDB580-EEC0-4637-814A-29CE2810DA52%40gmail.com.
Address not found |
Your message wasn't delivered to matthias@bluetkitchen-gmbh.com because the domain bluetkitchen-gmbh.com couldn't be found. Check for typos or unnecessary spaces and try again |
To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/51725943-4162-4CB5-8CA4-B11F60916CCA%40gmail.com.