Fix bug: make magic words error when build in big-endian platform
Encode package same with ppp protocol

* send firmware with 256*1024 bytes per package
* read and check device response after send cmd
* use 0x7d as an escape character to encode package