© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
8 replies
Lord Iori, The Cursed

Connecting to barcode scanner

Hello, I am having some trouble working out a functional one way connection with barcode scanner. It's supposed to be a really simple connection, when the scanner scans a barcode, event activates in main form and after that its all internal logic.

Problem is, due to reasons we are unable to use OPOS connection, so we decided to use serial port connection, but that brought even more problems. The device randomly disconnects, causing the port to stay open, unable to reconnect to it, requiring whole restart of PC, sometimes even several times. Or in other instances, while it appears to be connected, port is open and everything seems fine, the SerialPort.DataReceived event doesn't fire.

After months of trying to troubleshoot this, I kind of gave up on the serial port connection, is there any other way how to do a simplistic connection to barcode scanner?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ MAUI barcode scanner library
C#CC# / help
3y ago
Error connecting to subchannel.
C#CC# / help
2y ago
Trouble Connecting to Database
C#CC# / help
2y ago