update send frame alg
tiny fixed
new cypher protocal