Hi everyone,
I try to make same test and I try also to install bluez 5.35 and everything works fine, but I have the same problem with pan.
Now I launched bluetooth with the command
Code: Select all
sudo /usr/local/libexec/Bluetooth/bluetoothd -d -n
then I pair my iPhone using simple-agent:
Code: Select all
sudo python /bluez-5.35/test/simple-agent
Once I connected I did run bt-pan:
Code: Select all
sudo python bt-pan client 58:55:CA:D2:6C:3A
, these results bluetooth comments:
Code: Select all
bluetoothd[3126]: profiles/audio/player.c:media_player_set_status() paused
bluetoothd[3126]: src/device.c:connect_profiles() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A (all), client :1.16
bluetoothd[3126]: profiles/audio/a2dp.c:a2dp_source_connect() path /org/bluez/hci0/dev_58_55_CA_D2_6C_3A
bluetoothd[3126]: a2dp-source profile connect failed for 58:55:CA:D2:6C:3A: Operation already in progress
bluetoothd[3126]: profiles/network/connection.c:connection_connect() id 4374
bluetoothd[3126]: bnep: Could not bring up bnep0: Cannot assign requested address(99)
bluetoothd[3126]: profiles/network/connection.c:bnep_conn_cb()
bluetoothd[3126]: connect failed Input/output error
The first line is the last after I pair my iPhone, later ones are after I did run bt-pan. it seems that attempts to reconnect Bluetooth A2DP-Source, but fails because it is in progress, and then fails to bring up the bpnep0.
You have an idea?
I also tested in another way. I did run bluetooth:
Code: Select all
sudo /usr/local/libexec/Bluetooth/bluetoothd -d -n
then I did run bt-pan without pair my iPhone:
Code: Select all
sudo python bt-pan client 58:55:CA:D2:6C:3A
Eventually bt-pan goes in the same error:
Code: Select all
pi@raspberry ~/fgtk-master $ sudo python bt-pan client 58:55:CA:D2:6C:3A
Traceback (most recent call last):
File "bt-pan", line 208, in <module>
if __name__ == '__main__': sys.exit(main())
File "bt-pan", line 180, in main
try: iface = net.Connect(opts.uuid)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.Failed: Input/output error
but my iPhone is now paired.
Here's bluetooth comments:
Code: Select all
bluetoothd[8977]: Endpoint registered: sender=:1.2 path=/MediaEndpoint/A2DPSink
bluetoothd[8977]: src/adapter.c:property_set_mode() sending Set Powered command for index 0
bluetoothd[8977]: src/adapter.c:dev_class_changed_callback() Class: 0x0c0000
bluetoothd[8977]: src/adapter.c:property_set_mode_complete() Success (0x00)
bluetoothd[8977]: src/adapter.c:new_settings_callback() Settings: 0x000002db
bluetoothd[8977]: src/adapter.c:settings_changed() Changed settings: 0x00000001
bluetoothd[8977]: src/adapter.c:adapter_start() adapter /org/bluez/hci0 has been enabled
bluetoothd[8977]: src/adapter.c:trigger_passive_scanning()
bluetoothd[8977]: src/device.c:connect_profiles() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A (all), client :1.27
bluetoothd[8977]: profiles/audio/a2dp.c:a2dp_source_connect() path /org/bluez/hci0/dev_58_55_CA_D2_6C_3A
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_ref() 0x3d7288: ref=1
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_ref() 0x3d7288: ref=2
bluetoothd[8977]: profiles/audio/a2dp.c:setup_ref() 0x3cd550: ref=1
bluetoothd[8977]: profiles/audio/source.c:source_set_state() State changed /org/bluez/hci0/dev_58_55_CA_D2_6C_3A: SOURCE_STATE_DISCONNECTED -> SOURCE_STATE_CONNECTING
bluetoothd[8977]: profiles/audio/source.c:source_connect() stream creation in progress
bluetoothd[8977]: src/service.c:change_state() 0x3d03c8: device 58:55:CA:D2:6C:3A profile a2dp-source state changed: disconnected -> connecting (0)
bluetoothd[8977]: src/adapter.c:connected_callback() hci0 device 58:55:CA:D2:6C:3A connected eir_len 22
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_connect_cb() AVDTP: connected signaling channel to 58:55:CA:D2:6C:3A
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_connect_cb() AVDTP imtu=672, omtu=672
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() DISCOVER request succeeded
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_discover_resp() seid 1 type 0 media 0 in use 0
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_discover_resp() seid 2 type 0 media 0 in use 0
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_discover_resp() seid 3 type 0 media 0 in use 0
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_discover_resp() seid 4 type 0 media 0 in use 0
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_discover_resp() seid 5 type 0 media 0 in use 0
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_discover_resp() seid 6 type 0 media 0 in use 0
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() GET_CAPABILITIES request succeeded
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_get_capabilities_resp() seid 1 type 0 media 0
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() GET_CAPABILITIES request succeeded
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_get_capabilities_resp() seid 2 type 0 media 0
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() GET_CAPABILITIES request succeeded
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_get_capabilities_resp() seid 3 type 0 media 0
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() GET_CAPABILITIES request succeeded
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_get_capabilities_resp() seid 4 type 0 media 0
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() GET_CAPABILITIES request succeeded
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_get_capabilities_resp() seid 5 type 0 media 0
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() GET_CAPABILITIES request succeeded
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_get_capabilities_resp() seid 6 type 0 media 0
bluetoothd[8977]: profiles/audio/a2dp.c:discover_cb() err (nil)
bluetoothd[8977]: profiles/audio/source.c:discovery_complete() Discovery complete
bluetoothd[8977]: profiles/audio/a2dp.c:setup_ref() 0x3cd550: ref=2
bluetoothd[8977]: profiles/audio/media.c:media_endpoint_async_call() Calling SelectConfiguration: name = :1.2 path = /MediaEndpoint/A2DPSink
bluetoothd[8977]: profiles/audio/a2dp.c:setup_unref() 0x3cd550: ref=1
bluetoothd[8977]: profiles/audio/a2dp.c:a2dp_config() a2dp_config: selected SEP 0x3c54b0
bluetoothd[8977]: profiles/audio/a2dp.c:setup_ref() 0x3cd550: ref=2
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_set_configuration() 0x3d7288: int_seid=2, acp_seid=1
bluetoothd[8977]: profiles/audio/a2dp.c:setup_unref() 0x3cd550: ref=1
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() SET_CONFIGURATION request succeeded
bluetoothd[8977]: profiles/audio/a2dp.c:setconf_cfm() Sink 0x3c54b0: Set_Configuration_Cfm
bluetoothd[8977]: profiles/audio/media.c:media_endpoint_async_call() Calling SetConfiguration: name = :1.2 path = /MediaEndpoint/A2DPSink
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_sep_set_state() stream state changed: IDLE -> CONFIGURED
bluetoothd[8977]: profiles/audio/avdtp.c:session_cb()
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_parse_resp() OPEN request succeeded
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_connect_cb() AVDTP: connected transport channel to 58:55:CA:D2:6C:3A
bluetoothd[8977]: profiles/audio/a2dp.c:open_cfm() Sink 0x3c54b0: Open_Cfm
bluetoothd[8977]: profiles/audio/a2dp.c:setup_unref() 0x3cd550: ref=0
bluetoothd[8977]: profiles/audio/a2dp.c:setup_free() 0x3cd550
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_unref() 0x3d7288: ref=1
bluetoothd[8977]: profiles/audio/avdtp.c:avdtp_sep_set_state() stream state changed: CONFIGURED -> OPEN
bluetoothd[8977]: src/service.c:change_state() 0x3d03c8: device 58:55:CA:D2:6C:3A profile a2dp-source state changed: connecting -> connected (0)
bluetoothd[8977]: src/device.c:device_profile_connected() a2dp-source Success (0)
bluetoothd[8977]: src/device.c:device_profile_connected() returning response to :1.27
bluetoothd[8977]: plugins/policy.c:policy_connect() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A profile audio-avrcp-target
bluetoothd[8977]: profiles/audio/avrcp.c:avrcp_connect() path /org/bluez/hci0/dev_58_55_CA_D2_6C_3A
bluetoothd[8977]: profiles/audio/avctp.c:avctp_set_state() AVCTP Connecting
bluetoothd[8977]: src/service.c:change_state() 0x3d03a8: device 58:55:CA:D2:6C:3A profile audio-avrcp-target state changed: disconnected -> connecting (0)
bluetoothd[8977]: src/service.c:btd_service_ref() 0x3d03c8: ref=3
bluetoothd[8977]: plugins/policy.c:service_cb() Added a2dp-source reconnect 1
bluetoothd[8977]: profiles/audio/source.c:source_set_state() State changed /org/bluez/hci0/dev_58_55_CA_D2_6C_3A: SOURCE_STATE_CONNECTING -> SOURCE_STATE_CONNECTED
bluetoothd[8977]: profiles/audio/transport.c:transport_update_playing() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A/fd0 State=TRANSPORT_STATE_IDLE Playing=0
bluetoothd[8977]: profiles/network/connection.c:connection_connect() id 4374
bluetoothd[8977]: profiles/audio/avctp.c:avctp_connect_cb() AVCTP: connected to 58:55:CA:D2:6C:3A
bluetoothd[8977]: profiles/audio/avctp.c:init_uinput() AVRCP: uinput initialized for 58:55:CA:D2:6C:3A
bluetoothd[8977]: profiles/audio/avrcp.c:controller_init() 0x3d4588 version 0x0104
bluetoothd[8977]: src/service.c:change_state() 0x3d03a8: device 58:55:CA:D2:6C:3A profile audio-avrcp-target state changed: connecting -> connected (0)
bluetoothd[8977]: src/device.c:device_profile_connected() audio-avrcp-target Success (0)
bluetoothd[8977]: profiles/audio/player.c:media_player_controller_create() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A/player0
bluetoothd[8977]: profiles/audio/avctp.c:avctp_set_state() AVCTP Browsing Connecting
bluetoothd[8977]: profiles/audio/avrcp.c:target_init() 0x3dbf28 version 0x0104
bluetoothd[8977]: profiles/audio/avctp.c:avctp_set_state() AVCTP Connected
bluetoothd[8977]: profiles/audio/avrcp.c:handle_vendordep_pdu() AVRCP PDU 0x10, company 0x001958 len 0x0001
bluetoothd[8977]: profiles/audio/avrcp.c:avrcp_handle_get_capabilities() id=3
bluetoothd[8977]: bnep: Could not bring up bnep0: Cannot assign requested address(99)
bluetoothd[8977]: profiles/network/connection.c:bnep_conn_cb()
bluetoothd[8977]: connect failed Input/output error
bluetoothd[8977]: profiles/audio/avrcp.c:handle_vendordep_pdu() AVRCP PDU 0x31, company 0x001958 len 0x0005
bluetoothd[8977]: profiles/audio/avctp.c:avctp_connect_browsing_cb() AVCTP Browsing: connected to 58:55:CA:D2:6C:3A
bluetoothd[8977]: profiles/audio/avctp.c:avctp_set_state() AVCTP Browsing Connected
bluetoothd[8977]: profiles/audio/player.c:media_player_set_type() Audio
bluetoothd[8977]: profiles/audio/player.c:media_player_set_subtype() None
bluetoothd[8977]: profiles/audio/player.c:media_player_set_status() paused
bluetoothd[8977]: profiles/audio/player.c:media_player_set_browsable() true
bluetoothd[8977]: profiles/audio/player.c:media_folder_create_item() /Filesystem type folder uid 0
bluetoothd[8977]: profiles/audio/player.c:media_folder_create_item() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A/player0/Filesystem
bluetoothd[8977]: profiles/audio/player.c:media_folder_create_item() /NowPlaying type folder uid 0
bluetoothd[8977]: profiles/audio/player.c:media_folder_create_item() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A/player0/NowPlaying
bluetoothd[8977]: profiles/audio/player.c:media_player_set_playlist() /NowPlaying
bluetoothd[8977]: profiles/audio/player.c:media_player_set_name() Musica
bluetoothd[8977]: src/device.c:search_cb() 58:55:CA:D2:6C:3A: No service update
bluetoothd[8977]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A err 0
bluetoothd[8977]: profiles/audio/player.c:media_player_set_setting() Repeat: alltracks
bluetoothd[8977]: profiles/audio/player.c:media_player_set_setting() Shuffle: alltracks
bluetoothd[8977]: profiles/audio/player.c:media_player_set_folder() /Filesystem number of items 7
bluetoothd[8977]: profiles/audio/player.c:media_player_set_playlist_item() 9433943860815688982
bluetoothd[8977]: profiles/audio/player.c:media_folder_create_item() (null) type audio uid 9433943860815688982
bluetoothd[8977]: profiles/audio/player.c:media_folder_create_item() /org/bluez/hci0/dev_58_55_CA_D2_6C_3A/player0/NowPlaying/item9433943860815688982
bluetoothd[8977]: profiles/audio/player.c:media_player_set_metadata() Title: Europa (Santana)
bluetoothd[8977]: profiles/audio/player.c:media_player_set_metadata() Artist: Alessandro Ferri
bluetoothd[8977]: profiles/audio/player.c:media_player_set_metadata() Album: Laboratorio Audio
bluetoothd[8977]: profiles/audio/player.c:media_player_set_metadata() TrackNumber: 2
bluetoothd[8977]: profiles/audio/player.c:media_player_set_metadata() NumberOfTracks: 14
bluetoothd[8977]: profiles/audio/player.c:media_player_set_metadata() Duration: 251400
bluetoothd[8977]: profiles/audio/player.c:media_player_set_duration() 251400
bluetoothd[8977]: profiles/audio/player.c:media_player_set_position() 78291
bluetoothd[8977]: profiles/audio/player.c:media_player_set_status() paused
bluetoothd[8977]: profiles/audio/player.c:media_player_set_duration() 251400
bluetoothd[8977]: profiles/audio/player.c:media_player_set_position() 78291
bluetoothd[8977]: profiles/audio/player.c:media_player_set_status() paused
If you use test-network (/Bluez-5.35/test/Testnetwork) instead of the program bt-pan, this creates the same error of bt-pan, but bluetoothd not see any comments.
I have the impression that there is a conflict between the service A2DP, which is always active, and service the NAP / NAP.
How can I disable the A2DP service, for testing?
Anyone can help me?