<br><font size=1 face="Arial">HI ,</font>
<br><font size=1 face="Arial">&nbsp;</font>
<br><font size=1 face="Arial">I am running DBUS on ARM 9 . The DBUS successfully
creates the system bus socket and I have the messagebus.pid &nbsp; &nbsp;
system_bus_socket created in the /var/run/dbus folder.</font>
<br><font size=1 face="Arial">&nbsp;</font>
<br><font size=1 face="Arial">However when I run bluetooth hcid or any
&nbsp;test application to use DBUS , it disconnects soon after connecting.</font>
<br><font size=1 face="Arial">&nbsp;</font>
<br><font size=1 face="Arial">Attached is the verbose enabled logs. Any
help in debugging is appreciated.</font>
<br><font size=1 face="Arial">&nbsp;</font>
<br><font size=1 face="Arial">Thanks</font>
<br><font size=1 face="Arial">Ajay</font>
<br><font size=1 face="Arial">&nbsp;</font>
<br><font size=1 face="Arial">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font>
<p><font size=1 face="Arial">cd /opt/bluez/sbin/-/bin/sh-2.05b# &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-/bin/sh-2.05b#
./hcid -n -d 1<br>
hcid[785]: Bluetooth HCI daemon<br>
hcid[785]: Enabling debug information<br>
hcid[785]: Parsing /opt/bluez/etc/bluetooth/main.conf failed: No such file
or di<br>
rectory<br>
785: Filling in system bus address...<br>
785: &nbsp; used default system bus &quot;unix:path=/opt/bluez/var/run/dbus/system_bus_soc<br>
ket&quot;<br>
785: Filling in session bus address...<br>
785: &nbsp; &quot;unix:abstract=/tmp/dbus-RBN05TvXCo,guid=66aa1a8946a63ced7da9e60000001399<br>
&quot;<br>
785: Filling in activation bus address...<br>
785: &nbsp; &quot;none set&quot;<br>
785: opening shared connection to: unix:path=/opt/bluez/var/run/dbus/system_bus_<br>
socket<br>
785: checking for existing connection<br>
785: creating shared_connections hash table<br>
785: &nbsp; successfully created shared_connections<br>
785: connecting to unix socket /opt/bluez/var/run/dbus/system_bus_socket
abstrac<br>
t=0<br>
785: Successfully connected to unix socket /opt/bluez/var/run/dbus/system_bus_so<br>
cket<br>
785: client: going from state NeedSendAuth to state WaitingForData<br>
785: Initialized transport on address unix:path=/opt/bluez/var/run/dbus/system_b<br>
us_socket<br>
785: &nbsp; LOCK: _dbus_connection_new_for_transport<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: check_read_watch: fd = 6<br>
785: &nbsp; setting read watch enabled = 0<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: check_write_watch(): needed = 1 on connection 0x5d2d0 watch 0x5cf98
fd = 6 <br>
outgoing messages exist 0<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: &nbsp; UNLOCK: _dbus_connection_new_for_transport<br>
785: &nbsp; LOCK: _dbus_connection_open_internal<br>
785: &nbsp; UNLOCK: _dbus_connection_open_internal<br>
785: &nbsp; LOCK: dbus_connection_set_exit_on_disconnect<br>
785: &nbsp; UNLOCK: dbus_connection_set_exit_on_disconnect<br>
785: Allocated slot 0 on allocator 0x4010ccb0 total 1 slots allocated 1
used<br>
785: &nbsp; LOCK: dbus_connection_get_data<br>
785: &nbsp; UNLOCK: dbus_connection_get_data<br>
785: &nbsp; LOCK: dbus_connection_set_data<br>
785: &nbsp; UNLOCK: dbus_connection_set_data<br>
785: &nbsp; LOCK: dbus_connection_send_with_reply<br>
785: Allocated slot 0 on allocator 0x4010ccfc total 1 slots allocated 1
used<br>
785: &nbsp; UNLOCK: protected_change_timeout<br>
785: &nbsp; LOCK: protected_change_timeout<br>
785: Message 0x5d500 (1 /org/freedesktop/DBus org.freedesktop.DBus Hello
'') for<br>
 org.freedesktop.DBus added to outgoing queue 0x5d2d0, 1 pending to send<br>
785: Message 0x5d500 serial is 1<br>
785: _dbus_connection_do_iteration_unlocked start<br>
785: &nbsp; UNLOCK: _dbus_connection_acquire_io_path<br>
785: _dbus_connection_acquire_io_path locking io_path_mutex<br>
785: _dbus_connection_acquire_io_path start connection-&gt;io_path_acquired
= 0 tim<br>
eout = 0<br>
785: _dbus_connection_acquire_io_path end connection-&gt;io_path_acquired
= 1 we_ac<br>
quired = 1<br>
785: _dbus_connection_acquire_io_path unlocking io_path_mutex<br>
785: &nbsp; LOCK: _dbus_connection_acquire_io_path<br>
785: Transport iteration flags 0x1 timeout -1 connected = 1<br>
785: &nbsp;iteration flags = write timeout = -1 read_watch = 0x5cfc0 write_watch
= 0x<br>
5cf98 fd = 6<br>
785: in iteration, need_read=0 need_write=1<br>
785: exchange_credentials: do_reading = 0, do_writing = 1<br>
785: wrote credentials byte<br>
785: &nbsp;client auth state: bytes to send<br>
785: client: Sent 18 bytes of: AUTH EXTERNAL 30</font>
<p><font size=1 face="Arial">785: exchange_credentials: do_reading = 0,
do_writing = 1<br>
785: &nbsp;client auth state: waiting for input<br>
785: check_read_watch: fd = 6<br>
785: &nbsp; setting read watch enabled = 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: check_write_watch(): needed = 0 on connection 0x5d2d0 watch 0x5cf98
fd = 6 <br>
outgoing messages exist 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: Not authenticated, not writing anything<br>
785: check_write_watch(): needed = 0 on connection 0x5d2d0 watch 0x5cf98
fd = 6 <br>
outgoing messages exist 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: &nbsp;... leaving do_iteration()<br>
785: _dbus_transport_do_iteration end<br>
785: _dbus_connection_release_io_path locking io_path_mutex<br>
785: _dbus_connection_release_io_path start connection-&gt;io_path_acquired
= 1<br>
785: _dbus_connection_release_io_path unlocking io_path_mutex<br>
785: _dbus_connection_do_iteration_unlocked end<br>
785: dispatch status = complete is_connected = 1<br>
785: &nbsp; UNLOCK: _dbus_connection_update_dispatch_status_and_unlock<br>
785: &nbsp; LOCK: dbus_connection_unref<br>
785: &nbsp; UNLOCK: dbus_connection_unref<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: doing iteration in _dbus_connection_flush_unlocked<br>
785: _dbus_connection_do_iteration_unlocked start<br>
785: &nbsp; UNLOCK: _dbus_connection_acquire_io_path<br>
785: _dbus_connection_acquire_io_path locking io_path_mutex<br>
785: _dbus_connection_acquire_io_path start connection-&gt;io_path_acquired
= 0 tim<br>
eout = -1<br>
785: _dbus_connection_acquire_io_path end connection-&gt;io_path_acquired
= 1 we_ac<br>
quired = 1<br>
785: _dbus_connection_acquire_io_path unlocking io_path_mutex<br>
785: &nbsp; LOCK: _dbus_connection_acquire_io_path<br>
785: Transport iteration flags 0x7 timeout -1 connected = 1<br>
785: &nbsp;iteration flags = readwrite timeout = -1 read_watch = 0x5cfc0
write_watch <br>
= 0x5cf98 fd = 6<br>
785: unlock socket_do_iteration pre poll<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: lock socket_do_iteration post poll<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: in iteration, need_read=1 need_write=0<br>
785: exchange_credentials: do_reading = 1, do_writing = 0<br>
785: &nbsp;client auth state: waiting for input<br>
785: &nbsp;read 37 bytes in auth phase<br>
785: client: got command &quot;OK 4eeff5879c2ddf01ff99b00000002254&quot;<br>
785: Got GUID '4eeff5879c2ddf01ff99b00000002254' from the server<br>
785: client: going from state WaitingForData to state Authenticated<br>
785: exchange_credentials: do_reading = 1, do_writing = 0<br>
785: &nbsp;client auth state: bytes to send<br>
785: check_read_watch: fd = 6<br>
785: &nbsp; setting read watch enabled = 0<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: check_write_watch(): needed = 1 on connection 0x5d2d0 watch 0x5cf98
fd = 6 <br>
outgoing messages exist 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: do_reading: fd = 6<br>
785: check_write_watch(): needed = 1 on connection 0x5d2d0 watch 0x5cf98
fd = 6 <br>
outgoing messages exist 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: &nbsp;... leaving do_iteration()<br>
785: _dbus_transport_do_iteration end<br>
785: _dbus_connection_release_io_path locking io_path_mutex<br>
785: _dbus_connection_release_io_path start connection-&gt;io_path_acquired
= 1<br>
785: _dbus_connection_release_io_path unlocking io_path_mutex<br>
785: _dbus_connection_do_iteration_unlocked end<br>
785: doing iteration in _dbus_connection_flush_unlocked<br>
785: _dbus_connection_do_iteration_unlocked start<br>
785: &nbsp; UNLOCK: _dbus_connection_acquire_io_path<br>
785: _dbus_connection_acquire_io_path locking io_path_mutex<br>
785: _dbus_connection_acquire_io_path start connection-&gt;io_path_acquired
= 0 tim<br>
eout = -1<br>
785: _dbus_connection_acquire_io_path end connection-&gt;io_path_acquired
= 1 we_ac<br>
quired = 1<br>
785: _dbus_connection_acquire_io_path unlocking io_path_mutex<br>
785: &nbsp; LOCK: _dbus_connection_acquire_io_path<br>
785: Transport iteration flags 0x7 timeout -1 connected = 1<br>
785: &nbsp;iteration flags = readwrite timeout = -1 read_watch = 0x5cfc0
write_watch <br>
= 0x5cf98 fd = 6<br>
785: unlock socket_do_iteration pre poll<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: lock socket_do_iteration post poll<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: in iteration, need_read=0 need_write=1<br>
785: exchange_credentials: do_reading = 0, do_writing = 1<br>
785: &nbsp;client auth state: bytes to send<br>
785: client: Sent 7 bytes of: BEGIN</font>
<p><font size=1 face="Arial">785: check_read_watch: fd = 6<br>
785: &nbsp; setting read watch enabled = 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: check_write_watch(): needed = 1 on connection 0x5d2d0 watch 0x5cf98
fd = 6 <br>
outgoing messages exist 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: check_write_watch(): needed = 1 on connection 0x5d2d0 watch 0x5cf98
fd = 6 <br>
outgoing messages exist 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: &nbsp;... leaving do_iteration()<br>
785: _dbus_transport_do_iteration end<br>
785: _dbus_connection_release_io_path locking io_path_mutex<br>
785: _dbus_connection_release_io_path start connection-&gt;io_path_acquired
= 1<br>
785: _dbus_connection_release_io_path unlocking io_path_mutex<br>
785: _dbus_connection_do_iteration_unlocked end<br>
785: doing iteration in _dbus_connection_flush_unlocked<br>
785: _dbus_connection_do_iteration_unlocked start<br>
785: &nbsp; UNLOCK: _dbus_connection_acquire_io_path<br>
785: _dbus_connection_acquire_io_path locking io_path_mutex<br>
785: _dbus_connection_acquire_io_path start connection-&gt;io_path_acquired
= 0 tim<br>
eout = -1<br>
785: _dbus_connection_acquire_io_path end connection-&gt;io_path_acquired
= 1 we_ac<br>
quired = 1<br>
785: _dbus_connection_acquire_io_path unlocking io_path_mutex<br>
785: &nbsp; LOCK: _dbus_connection_acquire_io_path<br>
785: Transport iteration flags 0x7 timeout -1 connected = 1<br>
785: &nbsp;iteration flags = readwrite timeout = -1 read_watch = 0x5cfc0
write_watch <br>
= 0x5cf98 fd = 6<br>
785: unlock socket_do_iteration pre poll<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: lock socket_do_iteration post poll<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: in iteration, need_read=0 need_write=1<br>
785: do_writing(), have_messages = 1, fd = 6<br>
785: &nbsp;wrote 128 bytes of 128<br>
785: Message 0x5d500 (1 /org/freedesktop/DBus org.freedesktop.DBus Hello
'') rem<br>
oved from outgoing queue 0x5d2d0, 0 left to send<br>
785: check_write_watch(): needed = 0 on connection 0x5d2d0 watch 0x5cf98
fd = 6 <br>
outgoing messages exist 0<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: &nbsp;... leaving do_iteration()<br>
785: _dbus_transport_do_iteration end<br>
785: _dbus_connection_release_io_path locking io_path_mutex<br>
785: _dbus_connection_release_io_path start connection-&gt;io_path_acquired
= 1<br>
785: _dbus_connection_release_io_path unlocking io_path_mutex<br>
785: _dbus_connection_do_iteration_unlocked end<br>
785: _dbus_connection_flush_unlocked middle<br>
785: &nbsp;0 unused bytes sent to message loader<br>
785: dispatch status = complete is_connected = 1<br>
785: dbus_connection_send_with_reply_and_block(): will block 25000 milliseconds
<br>
for reply serial 1 from 8866 sec 446068 usec to 8891 sec 446068 usec<br>
785: _dbus_connection_do_iteration_unlocked start<br>
785: &nbsp; UNLOCK: _dbus_connection_acquire_io_path<br>
785: _dbus_connection_acquire_io_path locking io_path_mutex<br>
785: _dbus_connection_acquire_io_path start connection-&gt;io_path_acquired
= 0 tim<br>
eout = 25000<br>
785: _dbus_connection_acquire_io_path end connection-&gt;io_path_acquired
= 1 we_ac<br>
quired = 1<br>
785: _dbus_connection_acquire_io_path unlocking io_path_mutex<br>
785: &nbsp; LOCK: _dbus_connection_acquire_io_path<br>
785: Transport iteration flags 0x6 timeout 25000 connected = 1<br>
785: &nbsp;iteration flags = read timeout = 25000 read_watch = 0x5cfc0
write_watch = <br>
0x5cf98 fd = 6<br>
785: unlock socket_do_iteration pre poll<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: lock socket_do_iteration post poll<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: in iteration, need_read=1 need_write=0<br>
785: do_reading: fd = 6<br>
785: check_read_watch: fd = 6<br>
785: &nbsp; setting read watch enabled = 1<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
<b>785: Disconnected from remote app<br>
785: _dbus_transport_disconnect start</b><br>
785: socket_disconnect<br>
785: free_watches start<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: Setting watch fd -1 data to data = (nil) function = (nil) from data
= (nil)<br>
 function = (nil)<br>
785: &nbsp; UNLOCK: protected_change_watch<br>
785: &nbsp; LOCK: protected_change_watch<br>
785: Setting watch fd -1 data to data = (nil) function = (nil) from data
= (nil)<br>
 function = (nil)<br>
785: free_watches end<br>
785: _dbus_transport_disconnect end<br>
785: &nbsp;... leaving do_iteration()<br>
785: _dbus_transport_do_iteration end<br>
785: _dbus_connection_release_io_path locking io_path_mutex<br>
785: _dbus_connection_release_io_path start connection-&gt;io_path_acquired
= 1<br>
785: _dbus_connection_release_io_path unlocking io_path_mutex<br>
785: _dbus_connection_do_iteration_unlocked end<br>
785: _dbus_connection_block_pending_call top of recheck<br>
785: dispatch status = complete is_connected = 0<br>
785: Sending disconnect message from notify_disconnected_and_dispatch_complete_u<br>
nlocked<br>
785: Synthesized message 0x5d660 added to incoming queue 0x5d2d0, 1 incoming<br>
785: &nbsp; UNLOCK: protected_change_timeout<br>
785: &nbsp; LOCK: protected_change_timeout<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: &nbsp; LOCK: free_pending_call_on_hash_removal<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: &nbsp; LOCK: connection_timeout_and_complete_all_pending_calls_unlocked<br>
785: Synthesized message 0x5d358 added to incoming queue 0x5d2d0, 2 incoming<br>
785: check_for_reply_and_update_dispatch_unlocked checked for reply<br>
785: dbus_connection_send_with_reply_and_block(): got reply<br>
785: &nbsp; handing message 0x5d660 (error) to pending call serial 1<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: &nbsp; LOCK: check_for_reply_and_update_dispatch_unlocked<br>
785: &nbsp; UNLOCK: _dbus_connection_update_dispatch_status_and_unlock<br>
785: &nbsp; LOCK: dbus_connection_unref<br>
785: &nbsp; UNLOCK: dbus_connection_unref<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: &nbsp; LOCK: _dbus_connection_lock<br>
785: &nbsp; UNLOCK: _dbus_connection_unlock<br>
785: Freeing slot 0 on allocator 0x4010ccfc total 1 allocated 1 used<br>
785: &nbsp; LOCK: dbus_connection_unref<br>
785: &nbsp; UNLOCK: dbus_connection_unref<br>
785: &nbsp; LOCK: _dbus_connection_close_possibly_shared<br>
785: Disconnecting 0x5d2d0<br>
785: _dbus_transport_disconnect start<br>
785: &nbsp; UNLOCK: _dbus_connection_update_dispatch_status_and_unlock<br>
785: &nbsp; LOCK: dbus_connection_unref<br>
785: &nbsp; UNLOCK: dbus_connection_unref<br>
785: &nbsp; LOCK: dbus_connection_unref<br>
785: &nbsp; UNLOCK: dbus_connection_unref<br>
785: &nbsp; LOCK: dbus_connection_unref<br>
785: &nbsp; UNLOCK: dbus_connection_unref<br>
785: opening shared connection to: unix:path=/opt/bluez/var/run/dbus/system_bus_<br>
socket<br>
785: checking for existing connection<br>
785: connecting to unix socket /opt/bluez/var/run/dbus/system_bus_socket
abstrac<br>
t=0<br>
hcid[785]: Unable to get on D-Bus</font>
<p><font size=1 face="Arial">&nbsp;</font>
<p><font size=1 face="Arial">---------------------------------------------------------------------------------------------------------------------</font>

<BR>
______________________________________________________________________<BR>