Pack the service code for transmission. Returns a 2 byte string.

def pack(self):
        """Pack the service code for transmission. Returns a 2 byte string."""
        sn, sa = self.number, self.attribute
        return pack("<H", (sn & 0x3ff) << 6 | (sa & 0x3f))