|
Machine Vision Digital Connection Standards - Part 1
This is the first part on a two part series that describes the current connection types used in machine vision and imaging. The second part of this detailed explanation is avaliable here. Technology is moving at a blistering pace in today's world. Products and standards are constantly evolving to accommodate the ever increasing demands that we place on getting the results we need in our particular business environments. This is no different in the machine vision arena. We are seeing a constant flow of new cameras with ever increasing performance, resolution and functionality. Furthermore as the industry has matured we have seen a more pointed focus on reducing overall systems costs. This is of course great news for the industry as it offers more choice which in turn results in a tighter solution for the customer at a lower price. One of the key facets to these advances is the choice of connectivity between the camera and the acquisition device. As performance has increased the connection between the camera and the acquisition device has been under pressure to support the increased bandwidth, to do it at a lower cost and to do it more conveniently for the system designer and user. In response to this pressure there has been several connection types adopted by the machine vision industry. All have a position in the market but each has its own advantages and disadvantages. Data rates (bandwidth), cable lengths, environmental issues, usage, lifetime, software development and other considerations are all aspects to be considered. If designing, integrating or building a vision system it is important to understand the differences between these connection types. The traditional camera connectivity types like standard video analog
or parallel RS422 and LVDS digital are still available, but they are becoming
less and less prevalent. The newer connection standards include Camera
Link, USB 2.0, IEEE 1394a (Firewire) and more recently 1394b (Firewire),
GigE Vision (Gigabit Ethernet). Each of these standards offer different
pros and cons and the individual requirement of a system will define which
best suits. In this paper we will investigate these relatively new digital
standards and discuss what the important differences are between them.
CameraLink CameraLink carries image data, synchronization signals and RS232 signals for camera control. It takes the form of a serialized data stream that in its Base configuration allows 28 bits of data to be transmitted over 4 twisted wire pairs. Of these 28 bits, 24 are used for image data (i.e. 24 bit colour or 3x 8bit mono) and the remaining 4 bits are used for timing signals. There are a total of 11 twisted pairs in a CameraLink cable. The remaining 7 pairs are used for camera mode control, pixel clock and RS232 for camera communications. CameraLink does not carry power to the camera and so the camera must be powered independently. The Camera Link interface has three different configurations: Base, Medium and Full and is capable of transferring data at up to 650Mbytes/sec sustained.
CameraLink uses 26pin Miniature Delta Ribbon (MDR) connectors that are locking with tabs or screws and quite thin flexible multi twisted-pair cabling. All 26 pins are used and so the cable contains the 11 twisted wire pairs for data and 4 pins are used for shielding. It is rated at a maximum 10 metre length and will connect a single camera i.e. it is point-to-point, not a network architecture. Most grabbers will accept signals from one camera but there are dual channel grabbers that will accept the signal from two CameraLink cameras independently. There are fibre extenders available for CameraLink to extend its signal up to 10Km.
The CameraLink interface has been designed to transmit RS232 data on the same cable. This is typically used by the software to control the cameras operation (i.e. shutter speed etc). A CameraLink connection requires that a CameraLink grabber be installed in the computer. While this adds cost a frame grabber adds other important features. These include DMA engines to reduce the CPU involvement with data transfer to virtually nil; Input/Output control; real-time trigger inputs and strobe outputs for lighting or to reject parts in a time critical manner and more. Some grabber manufactures such as Coreco for example also offer features for tracking data as it flows from the grabber to the software application to ensure no data is lost or confused i.e. image tagging etc. Coreco calls this "Trigger To Image Reliability". Some grabbers also offer pre-processing of the images using LookUp Tables or on-board processors. CameraLink is a specialist connection. The cost to implement CameraLink is higher than USB, FireWire or GigE so it is typically used in those applications that require its unique features such as high speed, deterministic behaviour or slightly longer cable lengths.
These days you can pretty much guarantee that your computer has USB 2.0 ports. USB's true strength lies in that it is by far the most ubiquitous PC interface available today. It can be found in every new PC for the past several years and will continue as primary computer peripheral interface for years to come. USB was designed as an interface for computer peripherals and was not
originally designed with the intention of high speed deterministic data
transfers. Nonetheless it has been adopted as a connection standard for
vision and performs adequately in many applications. The USB 2.0 interface offers data transfer rates of 480 Mbits/sec which theoretically equates to 60 MBytes/sec. In reality the true sustained maximum data rate of USB2.0 is around 45 Mbytes/sec which is quite enough for many applications. For example a 640x480 pixel monochrome 8 bit camera running at 30 frames per second requires only 9 Mbytes/sec; a 640x480 pixel RGB colour camera running at 25fps requires approx 27 Mbytes/sec. Cable lengths for USB2.0 are strictly limited to 5m but if extra length is required extenders are available. One of the drawbacks of USB2.0 is that standard USB connectors are non-locking and so in industrial applications run the risk of being dislodged. Some USB2.0 camera manufacturers like iDS Imaging have gone part of the way in solving this by supplying cameras and cables with mini-D connectors that will screw lock and so eliminate the possibility of coming loose. The USB2.0 interface is both isochronous and asynchronous. This is best
explained as follows: USB2.0 is a bus architecture and so multiple devices can share the same bus i.e. multiple devices can be connected to a USB Hub. One special note of care however is that all devices connected to the same USB2.0 bus must share the data bandwidth. So if there are two devices on a USB2.0 bus then each device has less than 22 Mbytes/sec allowed to it (i.e. not enough for 640x480 RGB camera running at 30fps).
Another point of care when there are multiple devices sharing the same bus is if one of these devices is an earlier version of USB then it will slow down the bus and so slow down all devices. The USB2.0 connection is a polled type connection. The CPU continually
requests the camera for data to be sent packet-by-packet and so naturally
it requires significant CPU resources to control data transfer. The amount
of CPU involvement depends somewhat on the manufacturer of the USB2.0
camera and the driver written for it. iDS Imaging for example have very
efficient USB2.0 software drivers for their cameras and so offer data
transfer with less CPU intervention than other USB2 camera manufacturers.
USB2.0 has limitations and cannot be used with high-resolution high-speed cameras, or for time critical or heavy computational applications. However for ease-of-setup, low cost and access to virtually any computer with no extra acquisition hardware USB2.0 is a suitable choice.
Please continue to read on with Part 2 as we will be exploring the firewire and Gigabit Ethernet Standards. Researched and Written by:
For more information or to discuss please contact us. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
![]() |
|
FRAME GRABBERS | |
Select
by Manufacturer ![]() |
|
Std Colour/Mono for Analogue Cameras | |
Advanced Scan for Analogue | |
RS-422/LVDS | |
for LAPTOPS | |
Firewire | |
Camera Link | |
Vision Processors | |
Standalone Vision Engines | |
![]() |
![]() |
|
LENSES | |
Select
by Manufacturer ![]() |
|
Multi-sensor | |
High Magnification | |
High Resolution | |
Optical Filters | |
Machine Vision | |
Macro | |
Near IR | |
Specialty | |
Telecentric | |
Zoom | |
![]() |
![]() |
|
LIGHTING | |
Select
by Manufacturer ![]() |
|
LED Lighting | |
High Power for High Speed | |
Structured Laser Lighting | |
Fibre Optic Lighting | |
Strobe Lighting | |
Infra Red Lighting | |
Lighting Controllers | |
![]() |
![]() |
|||
SOFTWARE | |||
Select by Manufacturer | |||
Artificial
Intelligence ![]() |
|||
Digital
Image Correlation ![]() |
|||
Machine
Vision ![]() |
|||
Image
Analysis ![]() |
|||
Motion
Analysis ![]() |
|||
Hyperspectral ![]() |
|||
![]() |
![]() |
|
VISION SYSTEMS | |
Select
by Manufacturer ![]() |
|
Online Ore Sizing | |
Portable DVR systems | |
Hyperspectral Vision Systems | |
TELEDYNE DALSA ipd Vision Appliances | |
Custom System Integration | |
![]() |
![]() |
|
INDUSTRIAL PCS | |
Select by Manufacturer ![]() |
|
Displays | |
PCs | |
![]() |