A little reflection on the topic of why in Mi Band 2 will not work to display text in which more than 18 characters, even by correct modification of the firmware (change the length of the command to send text):
Mi Band 2 can receive a maximum of 20 bytes for a single command, based on the fact that the firmware is transmitted in parts of 20 bytes at most and the command for sending text has a maximum length of 20 bytes too (2 bytes for identifying the command and 18 bytes of text). If he supported commands greater than 20 bytes, then he would be stitched in parts larger than 20 bytes (in my opinion, this could be done for other reasons, for example, this length is optimal for the bracelet to quickly read the CRC16 hash to verify the integrity of the transmitted firmware, or in order to more quickly repeat the sending of part of the firmware in case it was not possible to send the part correctly).
In the Mi Fit code, there is sending text to 240 characters, it seems to be for Amazfit or some future bracelet, I don’t know what existing Xiaomi product can now display 240 characters.
The option of transmitting text in several parts is possible, but only if Xiaomi does it, you will not be able to write such a mod without the source code yourself.
Such are the cases.
Post has been editedXtracer - 13.09.17, 20:18