android - Bluetooth socket wrong signal size -


i'm coding app master-slave design bluetooth on android. master in piconet can have 7 active slaves. i've read android bluetooth dev guide , bluetoothsocket.java source code, there no maximum number of slaves mentioned. tried accept more 7 slaves in following code:

private void startserversocket(string name) {     bluetoothserversocket serversocket = null;     try {         serversocket = madapter.listenusinginsecurerfcommwithservicerecord(macmap.get(name), uuidmap.get(name));         (int = 0; < 8; i++) {             bluetoothsocket socket = null;              log.d(tag, + " waitting " + name + " accpet...");             socket = serversocket.accept();             log.d(tag, + " " + name + " accepted");              // corresponding slave thread on master side             mastersocketthread mst = new mastersocketthread(socket, socket.getremotedevice().getname());             mst.start();              // register slave thread master manager             mcallback.registersocketthread(mst);         }         serversocket.close();     } catch (ioexception e) {         e.printstacktrace();     } } 

as result @ 8th iteration exception accept() method:

android io.ioexception: connection failure, wrong signal size: 27763 

my question whether it's related bluetooth standard(7 active slaves) or there occurence not aware of?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -