added socket connection code for Bluetooth bioinfo