Hi,
I try to connect to a bluetooth device with
Then I get a "java.io.IOException: Permission denied"
Any one know whats this means?
My log:
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_device_connected() hci0 device E07:BA:A7:04:E4 connected
bluetoothd[741]: external/bluetooth/bluez/ti/src/adapter.c:adapter_get_device() E07:BA:A7:04:E4
Device property changed: E07:BA:A7:04:E4 property: Connected value: true
Device connected:E07:BA:A7:04:E4
onConnected
Device E07:BA:A7:04:E4 is not connected to GATT. Ignoring
android.bluetooth.device.action.ACL_CONNECTED
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() cond 1
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() Received 20 bytes from management socket
bluetoothd[741]: Unknown Management opcode 242 (index 0)
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() cond 1
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() Received 262 bytes from management socket
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_remote_name() hci0 addr E07:BA:A7:04:E4, name iGrill2-04E4
java.io.IOException: Permission denied
at android.bluetooth.BluetoothSocket.connectNative(Native Method)
at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:210)
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() cond 1
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() Received 13 bytes from management socket
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_auth_failed() hci0 auth failed status 5
bluetoothd[741]: external/bluetooth/bluez/ti/src/event.c:btd_event_bonding_complete() status 0x05
at anywheresoftware.b4a.objects.Serial$1.run(Serial.java:152)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:864)
bluetoothd[741]: external/bluetooth/bluez/ti/src/device.c:device_bonding_complete() bonding 0x0 status 0x05
handleMessage: E msg.what=131155
processMsg: ConnectedState
ConnectedState{ what=131155 when=-9ms arg1=176 }
fetchRssiAndLinkSpeedNative RSSI = -40
handleMessage: X
[Stability] PowerManagerService_userActivity JNI pass power key event to PowerManagerService userActivity()
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@413ab5e8
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() cond 1
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() Received 13 bytes from management socket
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_device_disconnected() hci0 device E07:BA:A7:04:E4 disconnected
bluetoothd[741]: external/bluetooth/bluez/ti/src/event.c:btd_event_disconn_complete()
bluetoothd[741]: external/bluetooth/bluez/ti/src/adapter.c:adapter_remove_connection()
Device property changed: E07:BA:A7:04:E4 property: Connected value: false
Device diconnected:E07:BA:A7:04:E4
OnDisconnected
device is not connected - checking the pending connections
Device E07:BA:A7:04:E4 is not connected to GATT. Ignoring
Mogens
I try to connect to a bluetooth device with
B4X:
Serial1.Connect3(PairedDevices.Get(l.Get(res)),1)
Then I get a "java.io.IOException: Permission denied"
Any one know whats this means?
My log:
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_device_connected() hci0 device E07:BA:A7:04:E4 connected
bluetoothd[741]: external/bluetooth/bluez/ti/src/adapter.c:adapter_get_device() E07:BA:A7:04:E4
Device property changed: E07:BA:A7:04:E4 property: Connected value: true
Device connected:E07:BA:A7:04:E4
onConnected
Device E07:BA:A7:04:E4 is not connected to GATT. Ignoring
android.bluetooth.device.action.ACL_CONNECTED
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() cond 1
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() Received 20 bytes from management socket
bluetoothd[741]: Unknown Management opcode 242 (index 0)
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() cond 1
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() Received 262 bytes from management socket
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_remote_name() hci0 addr E07:BA:A7:04:E4, name iGrill2-04E4
java.io.IOException: Permission denied
at android.bluetooth.BluetoothSocket.connectNative(Native Method)
at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:210)
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() cond 1
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() Received 13 bytes from management socket
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_auth_failed() hci0 auth failed status 5
bluetoothd[741]: external/bluetooth/bluez/ti/src/event.c:btd_event_bonding_complete() status 0x05
at anywheresoftware.b4a.objects.Serial$1.run(Serial.java:152)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:864)
bluetoothd[741]: external/bluetooth/bluez/ti/src/device.c:device_bonding_complete() bonding 0x0 status 0x05
handleMessage: E msg.what=131155
processMsg: ConnectedState
ConnectedState{ what=131155 when=-9ms arg1=176 }
fetchRssiAndLinkSpeedNative RSSI = -40
handleMessage: X
[Stability] PowerManagerService_userActivity JNI pass power key event to PowerManagerService userActivity()
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@413ab5e8
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() cond 1
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_event() Received 13 bytes from management socket
bluetoothd[741]: external/bluetooth/bluez/ti/plugins/mgmtops.c:mgmt_device_disconnected() hci0 device E07:BA:A7:04:E4 disconnected
bluetoothd[741]: external/bluetooth/bluez/ti/src/event.c:btd_event_disconn_complete()
bluetoothd[741]: external/bluetooth/bluez/ti/src/adapter.c:adapter_remove_connection()
Device property changed: E07:BA:A7:04:E4 property: Connected value: false
Device diconnected:E07:BA:A7:04:E4
OnDisconnected
device is not connected - checking the pending connections
Device E07:BA:A7:04:E4 is not connected to GATT. Ignoring
Mogens