How To: Test Camera Connection¶
Use this guide to verify that a camera is connected and can read barcodes.
Step 1: Identify the camera type¶
Check appsettings.json to find the camera type:
| Camera Type | Connection | Used At |
|---|---|---|
| Cognex DataMan | TCP (IP:23) | Most sites (Cargill, Hormel) |
| Cognex Insight | TCP (IP:23) | Cargill Hersey (OCR) |
| Zebra FS40 | TCP (IP:port) | Zebra Futures Lab |
| Zebra DS9908R | USB (CoreScanner) | Teasdale |
Step 2: Check physical connections¶
For TCP cameras (Cognex, Insight, FS40)¶
- Check that the camera has power (indicator light is on).
- Check that the Ethernet cable is connected at both ends.
- Check the Ethernet port lights on the camera (link light should be solid or blinking).
For USB cameras (DS9908R)¶
- Check that the scanner is powered on (it should beep on startup).
- Check that the USB cable is securely connected.
- Check that the cable reaches the computer without being stretched or damaged.
Step 3: Verify network connectivity (TCP cameras)¶
- Open a command prompt.
- Ping the camera IP address:
- Expected: You should see replies.
- If ping fails, see Check Network Connectivity.
Step 4: Check the Diagnostics panel¶
- Open the Diagnostics panel in GateKeeper (gear icon).
- Find the camera in the device list.
- Check the connection status.
| Status | Meaning | Next Step |
|---|---|---|
| Connected | Camera is online | Go to Step 5 |
| Disconnected | Camera is not reachable | Check cable and power, then restart the application |
Step 5: Test barcode reading¶
For Cognex cameras with manual trigger available¶
- Place a barcode label in front of the camera.
- Use the manual trigger button in the Diagnostics panel (if available).
- Expected: The camera reads the barcode and the result appears in the panel.
For cameras in Hardware trigger mode¶
- Hardware trigger cameras are activated by a photo-eye sensor.
- Pass a case with a barcode through the trigger zone.
- Expected: The camera reads the barcode and the validation result appears.
For DS9908R (Teasdale)¶
- Hold a case with a DataMatrix barcode and RFID tag near the scanner.
- The scanner should automatically read the barcode (presentation mode) or be triggered by the operator.
- Expected: The scan progress indicators in the UI show checkmarks as each component is read.
Step 6: Check for NOREAD issues¶
If the camera is connected but returns NOREAD:
- Check barcode quality: Is the barcode clearly printed and undamaged?
- Check positioning: Is the barcode in the camera's field of view?
- Check focus: Is the camera focused at the correct distance?
- Check lighting: Is there enough light, and is there excessive glare?
Log messages for NOREAD:
- "NOREAD" in the camera data
- "No barcode read from camera" in validation log
Step 7: Camera reconnection behavior¶
Cognex cameras have automatic reconnection: - If the connection drops during a trigger, the application will attempt one automatic reconnection. - If reconnection succeeds, the trigger is retried. - If reconnection fails, the camera is marked as disconnected.
To manually reconnect: Restart the application. See Restart Application.