beacon_makePacket almost done