Closed alexbrickwedde closed 2 days ago
Hi Alex, thank you for the feedback. The characteristic allows to exchange 128 bytes max. It's defined in the characteristic. Same holds for the TX-characteristic. BR Matthias
Hi Alex, thank you for the feedback. The characteristic allows to exchange 128 bytes max. It's defined in the characteristic. Same holds for the TX-characteristic. BR Matthias
Is there any way to transmit up to 512 bytes in one packet? Otherwise i'll have to split. (Can i assume send order is the same as receive order?)
Splitting has to be done, yes. Send and receive order are the same. More hints:
@alexbrickwedde, we verified our tests with the transmission of large packets of up to 512 bytes, and it was working fine. Please find the log here:
Please note that MTU is set to 517 bytes during connection setup, before subscribing to the notification. That may be the difference to your test.
Please note that MTU is set to 517 bytes during connection setup, before subscribing to the notification. That may be the difference to your test.
That was the difference, works now. Thank you.
Hi,
i'm sending from Android via: int statusCode = gatt.writeCharacteristic(writecharacteristic, value, BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT);
If value is longer than 128 bytes (the standard allows 512), i get disconnect events from Stephano-I ("<<" is incoming serial data). Sometimes Stephano-I just stops sending event notifications.
Regards
...Alex