packets functions

+create packet head
+decompose packets
+serial line packet communication