PDA

View Full Version : how to calculate checksum for x35


mali_kruno
03-31-2003, 22:00
please if sameone can write how can i calculate checksum for x35 siemens phones !!

if i send 65536 bytes to phone than i must send checksum and phone must answer with xx xx xx xx OK, how to calculate this last byte ) checksum ?:confused: :confused: :confused:

please source in VB or just write it as pure algo ( nor C or delphi source)!!

Thanx in advance

Regards Mali

maxxnskk
04-01-2003, 03:23
all bytes from sended blocks must be Xored
checksum=Arr[1]
For I=2 to 65535 do
checksum=checksum xor Arr[I]

mali_kruno
04-01-2003, 16:39
Originally posted by maxxnskk
all bytes from sended blocks must be Xored
checksum=Arr[1]
For I=2 to 65535 do
checksum=checksum xor Arr[I]


thanx one more time for your help ;) ;) ;) ;)

Regards Mali