1. Sign the two terminals with the same agreed string to see if they are different. If not, the basic algorithm of signature is different. In this case, you must debug the signature algorithm.
2. If the signatures obtained are consistent, it means that the plaintext characters of the two terminals are different, so check where the plaintext characters are different.