(1) padding PN code with 1. (2)remove the preamble and accesscode of the packet.