Configure the link and frame
- Record baud, parity, data/stop bits and flow control.
- Preserve scanner symbology, prefix, suffix and delimiter settings.
- Accumulate partial reads until the configured frame is complete.
- Handle RS232 or virtual-COM reconnect and port-number changes.
- Log raw bytes and timestamps before application normalization.
Avoid duplicate and missed scans
Process a complete frame once, distinguish rapid valid scans from retransmission, and validate permitted length/content or check digits where applicable. Do not use a short idle delay as the only boundary when an explicit suffix is available.
Use VB6 scanners or Delphi scanners for application-specific code, virtual COM integration, and the serial pillar.