changing chksum for data transfer
changing calc_chksum for transfer
modifing complete calc_chksum
modifing for transfer
before sleep