将数据写入微芯片 rn4870 可见

Write data to microchip rn4870 vie ble

我正在使用微芯片 rn4780。
我成功连接到设备,但是当我尝试向它发送数据(2 字节)时,
我没有收到回复(应该 运行 一些电机)。
我认为问题出在我正在使用的特征上,但我不确定。 这是我的代码

override fun onServicesDiscovered(gatt: BluetoothGatt?, status: Int) {
        super.onServicesDiscovered(gatt, status)
        for (service in gatt!!.services){
            Log.d(TAG, "Service: " + service.uuid.toString())
            for (char in service.characteristics) {
                Log.d(TAG, "Char: " + char.uuid.toString())
                if(char.uuid.toString() == "49535343-8841-43f4-a8d4-ecbe34729bb3") {
                    Log.d(TAG, "Try to write")
                    char.value = byteArrayOf(0x39, 0x31)
                    gatt!!.writeCharacteristic(char)
                    Log.d(TAG, "Finish to write")
                }
            }
        }
    }

我尝试使用 google play 中的其他应用程序,但只有一个有效,它称为“lightblue”。
From that screen, it worked perfect (I send 39 and then 31 in hex)
From that screen it doesn't work, for each characteristic, I have tried

有微芯片指南,但我不明白他们在做什么不同:
https://microchipdeveloper.com/wireless:ble-mchp-transparent-uart-service

对了,我用flutter试了一下,也没用,如果有flutter的解决方案就更好了。

我发现了问题,我在应用程序上使用了微芯片页面,它在我按摩前后发送了一些字节。 我通过查看应用程序上的日志文件弄明白了。