Enum Util.PacketType

  • All Implemented Interfaces:
    Serializable, Comparable<Util.PacketType>
    Enclosing class:
    Util

    public static enum Util.PacketType
    extends Enum<Util.PacketType>
    The known packet types used in the protocol, along with the byte values which identify them, and the names by which we describe them, and the port on which they are received.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BEAT
      Announces a beat has been played in a rekordbox-analyzed track, with lots of useful synchronization information.
      CDJ_STATUS
      A status update from a player, with a great many status flags, pitch, tempo, and beat-within-bar details.
      CHANNELS_ON_AIR
      Used by the mixer to tell the players which channels are on and off the air.
      DEVICE_HELLO
      An initial series of three of these packets is sent when a device first joins the network, at 300ms intervals.
      DEVICE_KEEP_ALIVE
      Used to report that a device is still present on the DJ Link network.
      DEVICE_NUMBER_ASSIGN
      This packet is sent by a mixer (or XDJ-XZ) when a player has acknowledged that it is ready to be assigned the device number that belongs to the jack to which it is connected.
      DEVICE_NUMBER_ASSIGNMENT_FINISHED
      This packet is sent by a mixer (or XDJ-XZ) once it sees that device number assignment has concluded successfully, to the player plugged into a channel-specific jack.
      DEVICE_NUMBER_IN_USE
      Used to defend a device number that is already in use.
      DEVICE_NUMBER_STAGE_1
      A series of three of these is sent at 300ms intervals when a device is starting to establish its device number.
      DEVICE_NUMBER_STAGE_2
      A second series of three packets sent at 300ms intervals when the device is claiming its device number.
      DEVICE_NUMBER_STAGE_3
      Third and final series of three packets sent at 300ms intervals when a device is claiming its device number.
      DEVICE_NUMBER_WILL_ASSIGN
      This packet is sent by a mixer directly to a device which has just sent a device number self-assignment packet when that device is plugged into a channel-specific Ethernet jack on the mixer (or XDJ-XZ) to let the device know the sender of this packet is responsible for assigning its number.
      FADER_START_COMMAND
      Used by the mixer to tell a set of players to start and/or stop playing.
      LOAD_SETTINGS_COMMAND
      A command to apply settings to a player; usually sent by rekordbox
      LOAD_TRACK_ACK
      A response indicating that the specified track is being loaded.
      LOAD_TRACK_COMMAND
      A command to load a particular track; usually sent by rekordbox.
      MASTER_HANDOFF_REQUEST
      Used by an incoming tempo master to ask the current tempo master to relinquish that role.
      MASTER_HANDOFF_RESPONSE
      Used by the active tempo master to respond to a request to relinquish that role.
      MEDIA_QUERY
      Used to ask a player for information about the media mounted in a slot.
      MEDIA_RESPONSE
      The response sent when a Media Query is received.
      MIXER_STATUS
      A status update from the mixer, with status flags, pitch, and tempo, and beat-within-bar information.
      PRECISE_POSITION
      Reports the exact playback position of a CDJ-3000 or newer player, on a very frequent basis, even if it is not currently playing.
      SYNC_CONTROL
      Used to tell a player to turn sync on or off, or that it should become the tempo master.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      String name
      The name by which we describe this kind of packet.
      int port
      The port on which this kind of packet is received.
      byte protocolValue
      The value that appears in the type byte which identifies this type of packet.
    • Enum Constant Detail

      • FADER_START_COMMAND

        public static final Util.PacketType FADER_START_COMMAND
        Used by the mixer to tell a set of players to start and/or stop playing.
      • CHANNELS_ON_AIR

        public static final Util.PacketType CHANNELS_ON_AIR
        Used by the mixer to tell the players which channels are on and off the air.
      • MEDIA_QUERY

        public static final Util.PacketType MEDIA_QUERY
        Used to ask a player for information about the media mounted in a slot.
      • MEDIA_RESPONSE

        public static final Util.PacketType MEDIA_RESPONSE
        The response sent when a Media Query is received.
      • DEVICE_HELLO

        public static final Util.PacketType DEVICE_HELLO
        An initial series of three of these packets is sent when a device first joins the network, at 300ms intervals.
      • DEVICE_NUMBER_STAGE_1

        public static final Util.PacketType DEVICE_NUMBER_STAGE_1
        A series of three of these is sent at 300ms intervals when a device is starting to establish its device number.
      • DEVICE_NUMBER_WILL_ASSIGN

        public static final Util.PacketType DEVICE_NUMBER_WILL_ASSIGN
        This packet is sent by a mixer directly to a device which has just sent a device number self-assignment packet when that device is plugged into a channel-specific Ethernet jack on the mixer (or XDJ-XZ) to let the device know the sender of this packet is responsible for assigning its number.
      • DEVICE_NUMBER_STAGE_2

        public static final Util.PacketType DEVICE_NUMBER_STAGE_2
        A second series of three packets sent at 300ms intervals when the device is claiming its device number.
      • DEVICE_NUMBER_ASSIGN

        public static final Util.PacketType DEVICE_NUMBER_ASSIGN
        This packet is sent by a mixer (or XDJ-XZ) when a player has acknowledged that it is ready to be assigned the device number that belongs to the jack to which it is connected.
      • DEVICE_NUMBER_STAGE_3

        public static final Util.PacketType DEVICE_NUMBER_STAGE_3
        Third and final series of three packets sent at 300ms intervals when a device is claiming its device number. If the device is configured to use a specific number, only one is sent.
      • DEVICE_NUMBER_ASSIGNMENT_FINISHED

        public static final Util.PacketType DEVICE_NUMBER_ASSIGNMENT_FINISHED
        This packet is sent by a mixer (or XDJ-XZ) once it sees that device number assignment has concluded successfully, to the player plugged into a channel-specific jack.
      • DEVICE_KEEP_ALIVE

        public static final Util.PacketType DEVICE_KEEP_ALIVE
        Used to report that a device is still present on the DJ Link network.
      • DEVICE_NUMBER_IN_USE

        public static final Util.PacketType DEVICE_NUMBER_IN_USE
        Used to defend a device number that is already in use.
      • CDJ_STATUS

        public static final Util.PacketType CDJ_STATUS
        A status update from a player, with a great many status flags, pitch, tempo, and beat-within-bar details. Sadly, the same number is used (on port 50000) as part of the CDJ startup process.
      • LOAD_TRACK_COMMAND

        public static final Util.PacketType LOAD_TRACK_COMMAND
        A command to load a particular track; usually sent by rekordbox.
      • LOAD_TRACK_ACK

        public static final Util.PacketType LOAD_TRACK_ACK
        A response indicating that the specified track is being loaded.
      • MASTER_HANDOFF_REQUEST

        public static final Util.PacketType MASTER_HANDOFF_REQUEST
        Used by an incoming tempo master to ask the current tempo master to relinquish that role.
      • MASTER_HANDOFF_RESPONSE

        public static final Util.PacketType MASTER_HANDOFF_RESPONSE
        Used by the active tempo master to respond to a request to relinquish that role.
      • BEAT

        public static final Util.PacketType BEAT
        Announces a beat has been played in a rekordbox-analyzed track, with lots of useful synchronization information.
      • PRECISE_POSITION

        public static final Util.PacketType PRECISE_POSITION
        Reports the exact playback position of a CDJ-3000 or newer player, on a very frequent basis, even if it is not currently playing.
      • MIXER_STATUS

        public static final Util.PacketType MIXER_STATUS
        A status update from the mixer, with status flags, pitch, and tempo, and beat-within-bar information.
      • SYNC_CONTROL

        public static final Util.PacketType SYNC_CONTROL
        Used to tell a player to turn sync on or off, or that it should become the tempo master.
      • LOAD_SETTINGS_COMMAND

        public static final Util.PacketType LOAD_SETTINGS_COMMAND
        A command to apply settings to a player; usually sent by rekordbox
    • Field Detail

      • protocolValue

        public final byte protocolValue
        The value that appears in the type byte which identifies this type of packet.
      • name

        public final String name
        The name by which we describe this kind of packet.
      • port

        public final int port
        The port on which this kind of packet is received.
    • Method Detail

      • values

        public static Util.PacketType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Util.PacketType c : Util.PacketType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Util.PacketType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null