SimpleBluetoothLeTerminal icon indicating copy to clipboard operation
SimpleBluetoothLeTerminal copied to clipboard

How to configure UUID in SerialSocket.java

Open suoko opened this issue 5 months ago • 4 comments

Hi, I was able to configure the original app where you can insert devices while using configuring the app on the phone. I see that this app does not allow to do so, but you have to put the UUIDs in the code. I tried putting Service UUID, Read Characteristic UUID and Write Characteristic UUID taken from the full app into the serialSocket.java file as below:

    private static final UUID BLUETOOTH_LE_TIO_SERVICE          = UUID.fromString("xxxx-xxxx-xxxx-xxxx-xxxx");
    private static final UUID BLUETOOTH_LE_TIO_CHAR_TX          = UUID.fromString("yyyy-xxxx-xxxx-xxxx-xxxx"); // WNR
    private static final UUID BLUETOOTH_LE_TIO_CHAR_RX          = UUID.fromString("zzzz-xxxx-xxxx-xxxx-xxxx"); // N
    private static final UUID BLUETOOTH_LE_TIO_CHAR_TX_CREDITS  = UUID.fromString("yyyy-xxxx-xxxx-xxxx-xxxx"); // W
    private static final UUID BLUETOOTH_LE_TIO_CHAR_RX_CREDITS  = UUID.fromString("zzzz-xxxx-xxxx-xxxx-xxxx"); // I

I considered RX as READ, and TX as WRITE, but I got "read credits characteristic not found". What am I missing ? Thanks

suoko avatar Mar 09 '24 16:03 suoko