Skip to main content

Module consts

Module consts 

Source
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 Capability bit 4: the primary application’s port and address are readable at PRIMARY_APPLICATION_PORT and PRIMARY_APPLICATION_IP. Mask from Wireshark’s hf_gvcp_capability_ccp_application_portip.
CAPABILITY_CONCATENATION
GVCP Capability bit 31: several registers in one READREG/WRITEREG.
CAPABILITY_PACKET_RESEND
Capability bit 29 — counting from the most significant bit as bit 0, as the specification does — PACKETRESEND_CMD supported. Wireshark’s hf_gvcp_capability_packetresend masks 0x00000004; aravis reads the same bit (ARV_GVBS_GVCP_CAPABILITY_PACKET_RESEND, 1 << 2).
CAPABILITY_PENDING_ACK
Capability bit 26 — PENDING_ACK supported. Wireshark: hf_gvcp_capability_pending, mask 0x00000020.
CAPABILITY_WRITEMEM
GVCP Capability bit 30: WRITEMEM is 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_ACK enabled; a device sends one only once this is set. Wireshark: hf_gvcp_configuration_pending_ack_enable, mask 0x00000002.
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_CMD with 16-bit block IDs.
EVENT_ENTRY_EXTENDED
Size of one event entry in an EVENT_CMD with 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 ReadMem operation.
GENCP_WRITE_OVERHEAD
Additional bytes that accompany a GenCP WriteMem block.
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. See encode_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” on DISCOVERY_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_0000 says 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
GevSCPSPacketSize bit 30: set do-not-fragment on transmitted packets.
SCPS_FIRE_TEST_PACKET
GevSCPSPacketSize bit 31: emit one test packet of the requested size.
SECOND_URL
Second URL: an alternative to FIRST_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 GevSCPHostPort within a stream channel block.
STREAM_PACKET_DELAY
Offset for GevSCPD (packet delay) within a stream channel block.
STREAM_PACKET_SIZE
Offset for GevSCPSPacketSize within a stream channel block.
STREAM_PACKET_SIZE_MASK
The bits of GevSCPSPacketSize that 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). GevSCPD counts in these ticks.
URL_LEN
Length of FIRST_URL and SECOND_URL in bytes.
VERSION
Version: the GigE Vision version the device implements.