Do bluetooth communication in background thread