<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eric-Hao</title>
    <description>The latest articles on DEV Community by Eric-Hao (@ericvision).</description>
    <link>https://dev.to/ericvision</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4264221%2F5b8a536b-20e9-4052-8e74-98ef6cbd6a6e.png</url>
      <title>DEV Community: Eric-Hao</title>
      <link>https://dev.to/ericvision</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ericvision"/>
    <language>en</language>
    <item>
      <title>Why your GigE Vision camera "randomly" fails — 7 wire-level reasons (and the Wireshark filters that prove each one)</title>
      <dc:creator>Eric-Hao</dc:creator>
      <pubDate>Thu, 26 Nov 2026 08:01:29 +0000</pubDate>
      <link>https://dev.to/ericvision/why-your-gige-vision-camera-randomly-fails-7-wire-level-reasons-and-the-wireshark-filters-that-1392</link>
      <guid>https://dev.to/ericvision/why-your-gige-vision-camera-randomly-fails-7-wire-level-reasons-and-the-wireshark-filters-that-1392</guid>
      <description>&lt;p&gt;There is no such thing as a random GigE Vision failure. There is only a wire that hasn't been read yet.&lt;/p&gt;

&lt;p&gt;After years of being called when "the camera works until it doesn't," the failures sort themselves into maybe seven buckets — and every single one leaves a distinct fingerprint in a packet capture. Pull out Wireshark, apply the display filter &lt;code&gt;gvcp&lt;/code&gt; to cut the GVSP image noise, and go hunting.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Discovery answered by nobody
&lt;/h2&gt;

&lt;p&gt;Symptom: the app scans forever; the camera LED is lit.&lt;/p&gt;

&lt;p&gt;Three culprits, in frequency order: the NIC's IP sits in a different subnet than the camera (fresh cameras default to link-local &lt;code&gt;169.254.x.x&lt;/code&gt; when no persistent IP was saved), the Windows firewall is on the vision NIC (it is off by default — someone "helpfully" turned it on), or a VPN adapter is making the broadcast go out the wrong interface.&lt;/p&gt;

&lt;p&gt;Proof on the wire: you see &lt;code&gt;gvcp&lt;/code&gt; DISCOVERY requests to &lt;code&gt;255.255.255.255:3956&lt;/code&gt; and zero DISCOVERY_ACK replies. Filter for the replies by payload signature instead of by port: &lt;code&gt;udp.payload[0:1] == 42 &amp;amp;&amp;amp; udp.payload[2:2] == 00:03&lt;/code&gt; (GVCP magic 0x42, command code 0x0003 = DISCOVERY_ACK at UDP-payload offset 2. The spec mandates discovery runs 3956→3956 both ways, but cameras and drivers that ignore that do exist — matching the payload signature can't miss a reply no matter what ports it plays with) — silence is your answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. ACCESS_DENIED (0x8006) — the control channel is taken
&lt;/h2&gt;

&lt;p&gt;GigE Vision allows exactly one controlling application per camera, channel 0. When the vendor viewer is open on the same PC (or yesterday's crash left a half-dead socket), every register write from your new process comes back NAK'd. Filter: &lt;code&gt;udp.payload[8:4] == 00:00:80:06&lt;/code&gt; (the NAK status code — Wireshark's dissector never dissects NAK payloads, so raw bytes are the honest filter). Close the second app; no camera reboot needed afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. InvalidAddress (0x8003) — SDK and firmware disagree
&lt;/h2&gt;

&lt;p&gt;Usually a SDK/firmware version mismatch, or code copy-pasted from a different sensor family: you're writing a register that does not exist on this exact model. &lt;code&gt;udp.payload[8:4] == 00:00:80:03&lt;/code&gt; and look at the address in the offending request (the NAK's &lt;code&gt;gvcp.cmd.req_id&lt;/code&gt; names the request it killed). If it's at or above &lt;code&gt;0x3000&lt;/code&gt;, you're in vendor-specific territory — that address may simply not exist on this firmware revision. Cross-check your vendor's register document, not a forum post.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Jumbo frames enabled on four of the five links
&lt;/h2&gt;

&lt;p&gt;Packet size above 1500 requires jumbo frames on the camera NIC, &lt;em&gt;every&lt;/em&gt; switch port in the path, the NIC driver's own setting (Intel calls it "Jumbo Packet", Realtek "Jumbo Frame"), &lt;strong&gt;and&lt;/strong&gt; the camera's packet-size setting. One skipped hop and the oversized GVSP packets are dropped silently — usually only under load, which is why it "only happens sometimes". The packet-size knob itself is standardized: the &lt;strong&gt;Stream Channel PacketSize&lt;/strong&gt; register at &lt;code&gt;0x0D04&lt;/code&gt; (stream channels live in 64-byte register blocks from &lt;code&gt;0x0D00&lt;/code&gt; in the GigE Vision bootstrap space) — every GigE Vision camera exposes it at that address, and the value written there is visible on the wire: filter &lt;code&gt;gvcp.cmd == 0x0002 &amp;amp;&amp;amp; gvcp.req.register_address == 0x00000d04&lt;/code&gt; if your dissector decodes register accesses, or by raw bytes &lt;code&gt;udp.payload[12:4] == 00:00:0d:04&lt;/code&gt; (the WRITE_REQ register address sits at payload offset 12 — GVCP header is 8 bytes plus a 4-byte data-count field; the written value follows at offset 16). (Vendor-specific registers start at &lt;code&gt;0x3000&lt;/code&gt; — don't confuse them with the standard area.) Then verify GVSP frame numbers keep counting without gaps.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Receiver-side drops: descriptors, EEE, flow control
&lt;/h2&gt;

&lt;p&gt;Dropped frames with zero errors on the camera side? That's your PC saying no. The settings that actually move the needle on Intel I219/I225-class ports: &lt;em&gt;Receive Buffers&lt;/em&gt; → 2048, &lt;em&gt;Flow Control&lt;/em&gt; → Rx &amp;amp; Tx Enabled, &lt;em&gt;Energy Efficient Ethernet&lt;/em&gt; → &lt;strong&gt;Disabled&lt;/strong&gt; (EEE's L1 exit latency is a known source of periodic stalls on vision NICs), &lt;em&gt;Interrupt Moderation&lt;/em&gt; → Disabled while tuning. Then raise the driver ring buffer beyond its "default" — 2048 descriptors. Confirm the stall pattern in the capture: sort by time delta on the GVSP flow — clusters &amp;gt; 60 ms mean the camera kept sending and your NIC kept discarding.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Bandwidth headroom, the quiet killer
&lt;/h2&gt;

&lt;p&gt;A 1 GbE link tops out at ~118 MB/s of payload — about 944 Mbps — and that ceiling includes retransmissions, ARP chatter and everything else sharing the cable. Compute your camera's demand first: &lt;code&gt;width × height × bytes/pixel × fps&lt;/code&gt;, then add ~5% for GigE/IP/UDP/Ethernet headers. If the number comes out anywhere near 944 Mbps, the link is oversubscribed by arithmetic, not by bad luck — and no driver tweak will save it. Decide what to sacrifice: fps, ROI, bit depth, or the gigabit link itself. If it fits but the line still drops, the drop is happening &lt;em&gt;below&lt;/em&gt; the link's physical limit — which means a buffer, a descriptor ring or a switch buffer is the bottleneck, and your capture will show it as stalls (§5).&lt;/p&gt;

&lt;h2&gt;
  
  
  7. One MAC, two IPs (and the clone nobody remembers)
&lt;/h2&gt;

&lt;p&gt;Two cameras answering with the same source MAC = you cloned a NIC's MAC, or a second NIC in the same PC has a stale static IP inside the camera subnet and is answering ARP first. Filter &lt;code&gt;eth.src == &amp;lt;camera mac&amp;gt;&lt;/code&gt; and watch the source IPs disagree. Separate NICs need separate subnets; then &lt;code&gt;arp -d&lt;/code&gt; to purge the stale entry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Triage order that has never wasted my time
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Discovery silent? → §1&lt;/li&gt;
&lt;li&gt;Discovery fine but images stall under load? → §4/§5/§6&lt;/li&gt;
&lt;li&gt;Everything rejects with NAKs? → §2/§3&lt;/li&gt;
&lt;li&gt;Multi-camera? → §7&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Next post: &lt;em&gt;the MTU 9000 checklist — jumbo frames on a machine-vision network, hop by hop.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>wireshark</category>
      <category>networking</category>
      <category>machinevision</category>
    </item>
  </channel>
</rss>
