# TCP Communication Loss - Barcode Scanning

**URL:** <https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259>\
**Category:** Ignition\
**Created:** [October 31, 2023, 6:18pm UTC](https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259 "2023-10-31T18:18:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Magill](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@Thomas\_Magill](https://forum.inductiveautomation.com/u/Thomas_Magill)\
**Post date:** [October 31, 2023, 6:18pm UTC](https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259/1 "2023-10-31T18:18:51Z")

</div>

We have integrated Zebra FS20 barcode scanners into Ignition through TCP protocol, but are experiencing occasional loss of data on the order of 1 per 3000 messages. I am able to confirm 100% reads from the scanner, so leaning towards an issue on the Ignition side.  
Not seeing any device timeouts in the Log.  
Any thoughts?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 31, 2023, 6:42pm UTC](https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259/2 "2023-10-31T18:42:05Z")

</div>

How/where are you determining a message is missed? How fast do they arrive?

---

<div class="post-metadata">

**Author:** ![Thomas\_Magill](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@Thomas\_Magill](https://forum.inductiveautomation.com/u/Thomas_Magill)\
**Post date:** [November 1, 2023, 3:05pm UTC](https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259/3 "2023-11-01T15:05:04Z")

</div>

Hi Kevin,

We know how many should have been scanned, and have verification from the scanner, a count from the self hosted web hmi. I am also historizing the scanned barcode message.  
We are only scanning once every 20 seconds.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 1, 2023, 3:13pm UTC](https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259/4 "2023-11-01T15:13:26Z")

</div>

I think realistically the only way to prove one side or the other is at fault will be to run a continuous Wireshark capture that captures a missed message according to what you've historized.

There's a logger you'll find searching for "PayloadHandler" that would also be useful when set to DEBUG level. Or perhaps all of the loggers found searching "TCPDriver". See [Diagnostics - Logs - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Diagnostics+-+Logs#DiagnosticsLogs-ChangingLoggingLevels)

If you need help with either of these things you can open a support ticket and they should be able to help you out.

---

<div class="post-metadata">

**Author:** ![drojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drojas/32/3403_2.png) [@drojas](https://forum.inductiveautomation.com/u/drojas)\
**Post date:** [November 2, 2023, 5:49pm UTC](https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259/5 "2023-11-02T17:49:04Z")

</div>

Thomas, I know there was one time I had issues with missed scans as well, however I was using a Honeywell handheld barcode scanner. The issue might have been some sort of polling delay internal to the TCP driver. Have you tried testing your setup with a different module from @chi [GitHub - chi-Ignition/generic-tcp-driver: A universal tcp client/server driver for the Ignition(R) OPC-UA server.](https://github.com/chi-Ignition/generic-tcp-driver)

My issue was a long time ago...back in Ignition 7.9 days so I can't offer much more help, but at least this will give you something else to try in the meantime.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 2, 2023, 5:52pm UTC](https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259/6 "2023-11-02T17:52:28Z")

</div>

Yeah, I think there's some weird internal 250ms polling due to this driver being ancient. That's why I was asking how fast barcodes are scanned. At only 20s it's probably not an issue.

edit: looks like it's actually 25ms, so... still awkward but even less likely to be an issue if the 20s quote is accurate.

---

<div class="post-metadata">

**Author:** ![drojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drojas/32/3403_2.png) [@drojas](https://forum.inductiveautomation.com/u/drojas)\
**Post date:** [November 2, 2023, 5:58pm UTC](https://forum.inductiveautomation.com/t/tcp-communication-loss-barcode-scanning/81259/7 "2023-11-02T17:58:04Z")

</div>

We were only scanning once per minute and would still occasionally skip a scan. As I am recalling a bit more, this might have been with the Serial Port module (and the USB barcode scanner doing some serial port emulation). I had to switch over to use some Serial to TCP converter software so as to utilize the Ignition TCP driver instead and the problem didn't show up again...that I know of.
