Expand description
GigE Vision’s vocabulary: GVCP opcodes and header fields, bootstrap register addresses and bits, and the protocol’s limits.
Public as a namespace on purpose (ADR-0030): the fake camera imports these rather than keeping copies. A constant is vocabulary; what a register means, and how a packet is encoded, each side still derives from the specification on its own.
Constants§
- ACTION_
ACK - Opcode of the action acknowledgement.
- ACTION_
COMMAND - Opcode of the action command.
- CAPABILITY_
CCP_ APPLICATION_ PORT_ IP GVCP Capabilitybit 4: the primary application’s port and address are readable atPRIMARY_APPLICATION_PORTandPRIMARY_APPLICATION_IP. Mask from Wireshark’shf_gvcp_capability_ccp_application_portip.- CAPABILITY_
CONCATENATION GVCP Capabilitybit 31: several registers in oneREADREG/WRITEREG.- CAPABILITY_
PACKET_ RESEND - Capability bit 29 — counting from the most significant bit as bit 0,
as the specification does —
PACKETRESEND_CMDsupported. Wireshark’shf_gvcp_capability_packetresendmasks0x00000004; aravis reads the same bit (ARV_GVBS_GVCP_CAPABILITY_PACKET_RESEND,1 << 2). - CAPABILITY_
PENDING_ ACK - Capability bit 26 —
PENDING_ACKsupported. Wireshark:hf_gvcp_capability_pending, mask0x00000020. - CAPABILITY_
WRITEMEM GVCP Capabilitybit 30:WRITEMEMis supported.- CCP_
CONTROL - CCP value claiming exclusive control.
- CCP_
CONTROLLER_ BITS - Bits of the CCP register that mean “this application is the controller”.
- CCP_
EXCLUSIVE - CCP value indicating an exclusive owner.
- CONFIGURATION_
PENDING_ ACK_ ENABLE - Configuration bit 30 —
PENDING_ACKenabled; a device sends one only once this is set. Wireshark:hf_gvcp_configuration_pending_ack_enable, mask0x00000002. - CONTROL_
CHANNEL_ PRIVILEGE - Address of the Control Channel Privilege (CCP) register.
- CONTROL_
TIMEOUT - Default timeout for control transactions.
- CURRENT_
DEFAULT_ GATEWAY Current Default Gateway.- CURRENT_
IP_ ADDRESS Current IP Address.- CURRENT_
IP_ CONFIG - Current IP configuration flags register.
- CURRENT_
SUBNET_ MASK Current Subnet Mask.- DEVICE_
MAC_ ADDRESS_ HIGH Device MAC Address – High: the MAC’s top two bytes, right-aligned.- DEVICE_
MAC_ ADDRESS_ LOW Device MAC Address – Low: the MAC’s bottom four bytes.- DEVICE_
MODE Device Mode: endianness, character set, device class.- DISCOVERY_
ACK - Opcode of the discovery acknowledgement.
- DISCOVERY_
BUFFER - Maximum number of bytes captured while listening for discovery responses.
- DISCOVERY_
COMMAND - Opcode of the discovery command.
- EVENTDATA_
ACK - Opcode of the acknowledgement returned for an
EVENTDATA_CMD. - EVENTDATA_
COMMAND - Opcode of the event command that carries device-specific event data.
- EVENT_
ACK - Opcode of the acknowledgement a controller returns for an
EVENT_CMD. - EVENT_
COMMAND - Opcode of the event command sent by a device on the message channel.
- EVENT_
ENTRY - Size of one event entry in an
EVENT_CMDwith 16-bit block IDs. - EVENT_
ENTRY_ EXTENDED - Size of one event entry in an
EVENT_CMDwith 64-bit block IDs. - FIRST_
URL First URL: where the device’s GenApi XML is (512 bytes, a string).- FLAG_
ACK_ REQUIRED - Command flag bit 0: the sender wants an acknowledgement.
- FLAG_
EXTENDED_ IDS - Command flag bit 4 on an event command: 64-bit block ids (GigE Vision 2.0).
- FORCEIP_
ACK - Opcode of the FORCEIP acknowledgement.
- FORCEIP_
COMMAND - Opcode of the FORCEIP command.
- GENCP_
MAX_ BLOCK - Maximum number of bytes we read per GenCP
ReadMemoperation. - GENCP_
WRITE_ OVERHEAD - Additional bytes that accompany a GenCP
WriteMemblock. - GVCP_
CAPABILITY - GVCP Capability: one bit per optional command or feature. Wireshark:
GVCP_CAPABILITY. - GVCP_
CMD_ KEY - The key byte every GVCP command starts with.
- GVCP_
CONFIGURATION - GVCP Configuration (
GevGVCPConfiguration): optional behaviour the controller switches on. Wireshark:GVCP_CONFIGURATION. - GVCP_
HEADER_ SIZE - Size of a GVCP command or acknowledgement header.
- HEARTBEAT_
TIMEOUT - Heartbeat timeout register (
GevHeartbeatTimeout), in milliseconds. - MAX_
PENDING_ ACKS - Maximum number of consecutive PENDING_ACKs honoured for one command.
- MAX_
PENDING_ ACK_ WAIT - Ceiling on the extension a single PENDING_ACK may request.
- MAX_
RETRIES - Maximum number of automatic retries for a control transaction.
- MESSAGE_
CHANNEL_ RETRY_ COUNT - Message channel retry count (
GevMCRC). - MESSAGE_
CHANNEL_ TIMEOUT - Message channel transmission timeout in milliseconds (
GevMCTT). - MESSAGE_
DESTINATION_ ADDRESS - Message channel destination address register (
GevMCDA). - MESSAGE_
DESTINATION_ PORT - Message channel destination port register (
GevMCP). - NUMBER_
OF_ MESSAGE_ CHANNELS - Number of message channels the device implements (
GevNumberOfMessageChannels). - NUMBER_
OF_ STREAM_ CHANNELS - Number of stream channels the device implements
(
GevNumberOfStreamChannels). Wireshark:GVCP_NUMBER_OF_STREAM_CHANNELS. - PACKET_
RESEND_ COMMAND - Opcode of
PACKETRESEND_CMD, which asks for no acknowledgement: the answer is the packets themselves, on the stream channel. Seeencode_packet_resend. - PACKET_
RESEND_ EXTENDED_ IDS - Flag-byte bit 4 on
PACKETRESEND_CMD: the payload carries a 64-bit block id and 32-bit packet ids (GigE Vision 2.0 extended ids). The same bit means “allow broadcast acknowledge” onDISCOVERY_CMD. - PENDING_
ACK - Opcode of the PENDING_ACK acknowledgement (GigE Vision 1.2, section 18.5).
- PERSISTENT_
DEFAULT_ GATEWAY - Persistent default gateway register.
- PERSISTENT_
IP_ ADDRESS - Persistent IP address register (4 bytes at the end of a 16-byte block).
- PERSISTENT_
SUBNET_ MASK - Persistent subnet mask register.
- PORT
- GVCP control port as defined by the GigE Vision specification (section 7.3).
- PRIMARY_
APPLICATION_ IP - Primary Application IP address. Wireshark:
GVCP_PRIMARY_APPLICATION_IP_ADDRESS. - PRIMARY_
APPLICATION_ PORT - Primary Application Port: the UDP port of the application holding
control, in the low half, where GVCP Capability bit
0x0800_0000says the device has it. Wireshark:GVCP_PRIMARY_APPLICATION_PORT. - RETRY_
BASE_ DELAY - Base delay used for retry backoff.
- RETRY_
JITTER - Upper bound for the random jitter added to the retry delay (inclusive).
- SCPS_
DO_ NOT_ FRAGMENT GevSCPSPacketSizebit 30: set do-not-fragment on transmitted packets.- SCPS_
FIRE_ TEST_ PACKET GevSCPSPacketSizebit 31: emit one test packet of the requested size.- SECOND_
URL Second URL: an alternative toFIRST_URL.- STREAM_
CHANNEL_ BASE - Base register for stream channel 0 (GigE Vision bootstrap register map).
- STREAM_
CHANNEL_ STRIDE - Stride in bytes between successive stream channel blocks.
- STREAM_
DESTINATION_ ADDRESS - Offset for
GevSCDA(stream destination IP address) within a stream channel block. - STREAM_
DESTINATION_ PORT - Offset for
GevSCPHostPortwithin a stream channel block. - STREAM_
PACKET_ DELAY - Offset for
GevSCPD(packet delay) within a stream channel block. - STREAM_
PACKET_ SIZE - Offset for
GevSCPSPacketSizewithin a stream channel block. - STREAM_
PACKET_ SIZE_ MASK - The bits of
GevSCPSPacketSizethat hold the packet size. - SUPPORTED_
IP_ CONFIG Supported IP Configuration: LLA, DHCP, persistent IP.- TIMESTAMP_
TICK_ FREQUENCY_ HIGH - Timestamp tick frequency, high 32 bits (
GevTimestampTickFrequencyHigh). - TIMESTAMP_
TICK_ FREQUENCY_ LOW - Timestamp tick frequency, low 32 bits (
GevTimestampTickFrequencyLow).GevSCPDcounts in these ticks. - URL_LEN
- Length of
FIRST_URLandSECOND_URLin bytes. - VERSION
Version: the GigE Vision version the device implements.