Hi,
My phone and my ioio connect normally through blutooth. But now I want to send voice commands using a BT handset to my ioio based robot.
I set the audiomanager to use the BT handset this way:
audioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
audioManager.startBluetoothSco();
audioManager.setBluetoothScoOn(true);
IOIO and the BT handset start working normally, the handset sending voice commands to the program, while the program communicates with the IOIO card. But then I always get excepcions in the IOIOLib
Does the ioio libbt assumes that there is always only one BT connection?
Please, help me
11-23 16:19:12.705: E/AndroidRuntime(5477): FATAL EXCEPTION: Thread-823
11-23 16:19:12.705: E/AndroidRuntime(5477): java.lang.NullPointerException
11-23 16:19:12.705: E/AndroidRuntime(5477): at ioio.lib.impl.IncomingState$DataModuleState.reportAdditionalBuffer(IncomingState.java:117)
11-23 16:19:12.705: E/AndroidRuntime(5477): at ioio.lib.impl.IncomingState.handleSpiReportTxStatus(IncomingState.java:408)
11-23 16:19:12.705: E/AndroidRuntime(5477): at ioio.lib.impl.IOIOProtocol$IncomingThread.run(IOIOProtocol.java:740