quick_blue icon indicating copy to clipboard operation
quick_blue copied to clipboard

MTU change

Open thewizard1983 opened this issue 2 years ago • 7 comments

is there a way to change MTU value and priority to increase data rate (Bluetooth 5)?

thewizard1983 avatar Mar 18 '22 12:03 thewizard1983

Which platform do you infer?

Android has requestConnectionPriority(int)

I haven't finished refactor from notepad_core to quick_blue

https://github.com/woodemi/notepad_core/blob/b0e329f3d6e02f14f8a0e5e48a6ddb48e026b658/notepad_core/android/src/main/kotlin/io/woodemi/notepad_core/NotepadCorePlugin.kt#L128-L136

            "requestConnectionPriority" -> {
                val bleConnectionPriority = call.argument<String>("bleConnectionPriority")!!
                connectGatt?.requestConnectionPriority(when (bleConnectionPriority) {
                    "high" -> BluetoothGatt.CONNECTION_PRIORITY_HIGH
                    "lowPower" -> BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER
                    else -> BluetoothGatt.CONNECTION_PRIORITY_BALANCED
                })
                result.success(null)
            }

Sunbreak avatar Mar 18 '22 12:03 Sunbreak

Android is my priority, iOs the second. Is 2M Phy channel configurable too?

Thanks

thewizard1983 avatar Mar 18 '22 13:03 thewizard1983

2M Phy channel

Any doc or testable device?

Sunbreak avatar Mar 18 '22 13:03 Sunbreak

2MPhy is for increasing bluetooth data rate in Bluetooth 5. Here is how to do it in android: https://source.android.com/devices/bluetooth/ble_advertising

thewizard1983 avatar Mar 18 '22 15:03 thewizard1983

So we could use an Android 8+ device as peripheral to test 2MPhy?

Sunbreak avatar Mar 18 '22 15:03 Sunbreak

Hi, sorry for my delay. You can configure an Arduino with BLE in order to work onto 2M phy and test the library.

On 18 marzo 2022 a 16:50:53, Sunbreak @.@.>) scritto:

So we could use an Android 8+ device as peripheral to test 2MPhy?

— Reply to this email directly, view it on GitHubhttps://github.com/woodemi/quick_blue/issues/62#issuecomment-1072540906, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEHREYUKX6OTNUTAZEMYU5DVASQ5VANCNFSM5RBXQZHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

thewizard1983 avatar May 30 '22 09:05 thewizard1983

Hi, sorry for my delay. You can configure an Arduino with BLE in order to work onto 2M phy and test the library.

Sorry. I don't have an Arduino nor Raspberry Pi right now

Sunbreak avatar May 30 '22 10:05 Sunbreak