I guess i'm missing something here. If I have the following code:
And then Break at the CalcChecksum method and poke into the passed data
As you can see, the first 2 bytes are fine but the 3rd is wrong. It is 0xFFFFFF80 instead of 0x80.
I've been tinkering about and basically anything > 0x79 shows wrong. Anthing < 0x79 is fine.
Any ideas?
B4X:
Dim serial() As Byte = Array As Byte(0x53, 0x32, 0x33, 0x31, 0x33, 0x31, 0x57, 0x34, 0x33, 0x39)
Dim LoginString() As Byte = Array As Byte(0x55, 0x79, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0b, serial(0), serial(1), serial(2), serial(3), serial(4), serial(5), serial(6), serial(7), serial(8), serial(9), 0x01)
Dim Chksum() As Byte = CalcChecksum(LoginString)
And then Break at the CalcChecksum method and poke into the passed data
As you can see, the first 2 bytes are fine but the 3rd is wrong. It is 0xFFFFFF80 instead of 0x80.
I've been tinkering about and basically anything > 0x79 shows wrong. Anthing < 0x79 is fine.
Any ideas?