Aravis.GvDevice¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
The device address |
||
w/co |
The address of the interface connected to the device |
||
r/w/c |
Packet size adjustment option |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Aravis.GvDevice(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(interface_address, device_address)¶
- Parameters:
interface_address (
Gio.InetAddress
) – address of the interface connected to the devicedevice_address (
Gio.InetAddress
) – device address
- Raises:
- Returns:
a newly created
Aravis.Device
using GigE protocol- Return type:
New in version 0.8.0.
- auto_packet_size()¶
- Raises:
- Returns:
The automatic packet size, in bytes, or the current one if GevSCPSFireTestPacket is not supported.
- Return type:
Automatically determine the biggest packet size that can be used data streaming, and set ArvGevSCPSPacketSize value accordingly. This function relies on the GevSCPSFireTestPacket feature.
New in version 0.6.0.
- get_current_ip()¶
- Raises:
- Returns:
True
on success- ip:
a IP address placeholder
- mask:
a netmask placeholder
- gateway:
a gateway IP address placeholder
- Return type:
(
bool
, ip:Gio.InetAddress
, mask:Gio.InetAddressMask
, gateway:Gio.InetAddress
)
Get the current IP address setting of device.
New in version 0.8.22.
- get_device_address()¶
- Returns:
the device IP address.
- Return type:
New in version 0.2.0.
- get_interface_address()¶
- Returns:
the device host interface IP address.
- Return type:
New in version 0.2.0.
- get_ip_configuration_mode()¶
- Raises:
- Returns:
IP address configuration mode
- Return type:
Get the IP address configuration mode.
New in version 0.8.22.
- get_packet_size()¶
- Raises:
- Return type:
- get_persistent_ip()¶
- Raises:
- Returns:
True
on success- ip:
a IP address placeholder
- mask:
a netmask placeholder
- gateway:
a gateway IP address placeholder
- Return type:
(
bool
, ip:Gio.InetAddress
, mask:Gio.InetAddressMask
, gateway:Gio.InetAddress
)
Get the persistent IP address setting of device.
New in version 0.8.22.
- get_stream_options()¶
- Returns:
options for stream creation
- Return type:
New in version 0.6.0.
- get_timestamp_tick_frequency()¶
- Raises:
- Return type:
- is_controller()¶
- Returns:
value indicating whether the
Aravis.GvDevice
has control access to the camera- Return type:
New in version 0.8.0.
- leave_control()¶
- Raises:
- Returns:
whether the control was successfully relinquished
- Return type:
New in version 0.8.3.
- set_ip_configuration_mode(mode)¶
- Parameters:
mode (
Aravis.GvIpConfigurationMode
) – IP address configuration mode- Raises:
- Returns:
True
on success- Return type:
Sets the IP address configuration mode. Available modes are
Aravis.GvIpConfigurationMode.DHCP
,Aravis.GvIpConfigurationMode.PERSISTENT_IP
,Aravis.GvIpConfigurationMode.LLA
New in version 0.8.22.
- set_packet_size_adjustment(adjustment)¶
- Parameters:
adjustment (
Aravis.GvPacketSizeAdjustment
) – aAravis.GvPacketSizeAdjustment
option
Sets the option for the packet size adjustment happening at stream object creation. See
Aravis.GvDevice.auto_packet_size
() for a description of the packet adjustment feature. The default behaviour is ARV_GV_PACKET_SIZE_ADJUSTEMENT_ON_FAILURE_ONCE, which means the packet size is adjusted if the current packet size check fails, and only the first timeAravis.Device.create_stream
() is successfully called during self instance life.New in version 0.8.3.
- set_persistent_ip(ip, mask, gateway)¶
- Parameters:
ip (
Gio.InetAddress
orNone
) – IPv4 addressmask (
Gio.InetAddressMask
orNone
) – Netmaskgateway (
Gio.InetAddress
orNone
) – Gateway IPv4 address
- Raises:
- Returns:
True
on success- Return type:
Sets the persistent IP address to device. Also disable DHCP then enable persistent IP mode.
New in version 0.8.22.
- set_persistent_ip_from_string(ip, mask, gateway)¶
- Parameters:
- Raises:
- Returns:
True
on success- Return type:
Sets the persistent IP address to device.
New in version 0.8.22.
- set_stream_options(options)¶
- Parameters:
options (
Aravis.GvStreamOption
) – options for stream creation
Sets the option used during stream creation. It must be called before
Aravis.Device.create_stream
().New in version 0.6.0.
- take_control()¶
- Raises:
- Returns:
whether the control was successfully acquired
- Return type:
New in version 0.8.3.
Property Details¶
- Aravis.GvDevice.props.device_address¶
- Name:
device-address
- Type:
- Default Value:
- Flags:
The device address
- Aravis.GvDevice.props.interface_address¶
- Name:
interface-address
- Type:
- Default Value:
- Flags:
The address of the interface connected to the device
- Aravis.GvDevice.props.packet_size_adjustment¶
- Name:
packet-size-adjustment
- Type:
- Default Value:
- Flags:
Packet size adjustment option