The UART functionality is only available for cameras that support UART communication on the hardware. This feature is only supported by the following uEye+ cameras.
•USB 3 uEye+ XCP Rev. 1.2
•USB 3 uEye+ XLE Rev. 1.2
•USB 3 uEye+ XLS Rev. 1.2
The hardware must be Rev. 1.2 (or higher), as UART support is included from this hardware on. The description of the GPIO (General Purpose I/O) can be found in the camera manual of the respective camera family.
Specifies the number of bytes that make up a packet under UART. When you start reception, the camera expects a complete packet with the specified number of bytes on the UART Rx line. Only when the package is complete is it copied to UartRxBuffer.
Use UartRxStop to stop a running receive command and retrieve the data, even if the packet has not been completely received.
Name |
UartRxPacketLength |
Category |
|
Interface |
Integer |
Access |
Read/Write |
Unit |
- |
Visibility |
Expert |
Values |
1 ... 64, increment: 1 |
Standard |
IDS |
Availability uEye+ |
|
Availability uEye |
- |
Code example
C++
// Determine the current UartRxPacketLength
int64_t value = nodeMapRemoteDevice->FindNode<peak::core::nodes::IntegerNode>("UartRxPacketLength")->Value();
// Set UartRxPacketLength to 10
nodeMapRemoteDevice->FindNode<peak::core::nodes::IntegerNode>("UartRxPacketLength")->SetValue(10);
C#
// Determine the current UartRxPacketLength
long value = nodeMapRemoteDevice.FindNode<peak.core.nodes.IntegerNode>("UartRxPacketLength").Value();
// Set UartRxPacketLength to 10
nodeMapRemoteDevice.FindNode<peak.core.nodes.IntegerNode>("UartRxPacketLength").SetValue(10);
Python
# Determine the current UartRxPacketLength (int)
value = nodeMapRemoteDevice.FindNode("UartRxPacketLength").Value()
# Set UartRxPacketLength to 10 (int)
nodeMapRemoteDevice.FindNode("UartRxPacketLength").SetValue(10)