Virtual GigE Vision device. More...
Public Member Functions | |
PvVirtualDeviceGEV () | |
Constructor. | |
~PvVirtualDeviceGEV () | |
Destructor. | |
PvResult | SetGEVSpecificationVersion (uint16_t aMajor, uint16_t aMinor) |
Set the version of the GigE Vision standard for the virtual GigE Vision device to use. More... | |
PvResult | GetGEVSpecificationVersion (uint16_t &aMajor, uint16_t &aMinor) |
Get the current version of the GigE Vision standard that is being used by the virtual GigE Vision device. More... | |
PvResult | SetGVCPCapabilityPacketResendCommandSupported (bool aValue) |
Configure the virtual GigE Vision device to support the packet resend command. More... | |
bool | GetGVCPCapabilityPacketResendCommandSupported () |
Get the current configuration for the packet resend command support. More... | |
PvResult | SetDeviceVersion (const PvString &aDeviceVersion) |
Set the device version. More... | |
PvString | GetDeviceVersion () |
Get the device version. More... | |
PvResult | SetSerialNumber (const PvString &aSerialNumber) |
Set the serial number string. More... | |
PvString | GetSerialNumber () |
Get the serial number. More... | |
PvResult | SetManufacturerName (const PvString &aManufacturerName) |
Set the manufacturer name string. More... | |
PvString | GetManufacturerName () |
Get the manufacturer name. More... | |
PvResult | SetModelName (const PvString &aModelName) |
Set the model name string. More... | |
PvString | GetModelName () |
Get the model name. More... | |
PvResult | AddTransmitterGEV (IPvTransmitterGEV *aTransmitterGEV) |
Add the GVSP transmitter that will issue the resend requests. More... | |
PvResult | StartListening (PvString aIPAddress) |
Begin responding to GVCP traffic on the specified network interface. More... | |
void | StopListening () |
Stop responding to GVCP traffic and close the connection. | |
uint32_t | GetDevicePortThreadPriority () const |
Get the priority of the thread used for GigE Vision control channel. More... | |
PvResult | SetDevicePortThreadPriority (uint32_t aPriority) |
Set the priority of the thread used for GigE Vision control channel. More... | |
Virtual GigE Vision device.
Used to provide basic GigE Vision device capabilities such as device discovery. Can complement the PvTransmitterGEV class by allowing one to open a data receiver connection to it using PvStream.
For a full Software GigE Vision Device implementation, look at PvSoftDeviceGEV.
Proper use of the PvVirtualDeviceGEV class is demonstrated in all transmitter samples.
PvResult PvVirtualDeviceGEV::AddTransmitterGEV | ( | IPvTransmitterGEV * | aTransmitterGEV | ) |
Add the GVSP transmitter that will issue the resend requests.
The order of addition will enforce the stream index.
[in] | aTransmitterGEV | Instance of PvTransmitterGEV. |
uint32_t PvVirtualDeviceGEV::GetDevicePortThreadPriority | ( | ) | const |
Get the priority of the thread used for GigE Vision control channel.
See SetDevicePortThreadPriority for details about the meaning of the values returned
PvString PvVirtualDeviceGEV::GetDeviceVersion | ( | ) |
Get the device version.
See SetDeviceVersion for information about the return values.
PvResult PvVirtualDeviceGEV::GetGEVSpecificationVersion | ( | uint16_t & | aMajor, |
uint16_t & | aMinor | ||
) |
Get the current version of the GigE Vision standard that is being used by the virtual GigE Vision device.
[in] | aMajor | Major version. |
[in] | aMinor | Minor version. |
bool PvVirtualDeviceGEV::GetGVCPCapabilityPacketResendCommandSupported | ( | ) |
Get the current configuration for the packet resend command support.
See SetGVCPCapabilityPacketResendCommandSupported for information about the return values.
PvString PvVirtualDeviceGEV::GetManufacturerName | ( | ) |
Get the manufacturer name.
PvString PvVirtualDeviceGEV::GetModelName | ( | ) |
Get the model name.
PvString PvVirtualDeviceGEV::GetSerialNumber | ( | ) |
Get the serial number.
PvResult PvVirtualDeviceGEV::SetDevicePortThreadPriority | ( | uint32_t | aPriority | ) |
Set the priority of the thread used for GigE Vision control channel.
This thread listening for the virtual device on the GigE Vision control channel. Handles read register, device discoveries, etc.
If you change the thread priorities, it may alterate the stability of the system. For this reason, if you report a bug to Pleora, ensure to clearly mention that you change threads priorities.
See GetDevicePortThreadPriority
[in] | aPriority | See PvPipeline::SetBufferHandlingThreadPriority for description of the supported values |
Set the device version.
Only the first 32 bytes will be used.
[in] | aDeviceVersion | New version number. |
PvResult PvVirtualDeviceGEV::SetGEVSpecificationVersion | ( | uint16_t | aMajor, |
uint16_t | aMinor | ||
) |
Set the version of the GigE Vision standard for the virtual GigE Vision device to use.
By default, version 2.0 of the standard is used. This version of the standard provides access to the latest features, including extended chunk data.
[in] | aMajor | Major version number of the GigE Vision standard. |
[in] | aMinor | Minor version number of the GigE Vision standard. |
PvResult PvVirtualDeviceGEV::SetGVCPCapabilityPacketResendCommandSupported | ( | bool | aValue | ) |
Configure the virtual GigE Vision device to support the packet resend command.
This parameter can only be used for virtual GigE Vision devices that use version 2.0 (or later) of the GigE Vision standard. By default, the native ID types for the GigE Vision standard are always used.
[in] | aValue | True to support packet resend commands. |
Set the manufacturer name string.
Only the first 32 bytes will be used.
[in] | aManufacturerName | Manufacturer name string. |
Set the model name string.
Only the first 32 bytes will be used.
[in] | aModelName | Model name string. |
Set the serial number string.
Only the first 16 bytes will be used.
[in] | aSerialNumber | Serial number. |
Begin responding to GVCP traffic on the specified network interface.
[in] | aIPAddress | IP address the virtual device listens on. Use the form 192.168.1.114 . |
Note: A PvVirtualDeviceGEV object listens for traffic on one socket at a time. To listen for GVCP traffic on more than one network interface, instantiate another PvVirtualDeviceGEV object.
Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com