Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB not working #220

Open
danielegithub opened this issue Feb 3, 2023 · 1 comment
Open

USB not working #220

danielegithub opened this issue Feb 3, 2023 · 1 comment

Comments

@danielegithub
Copy link

Hi everyone.
Has anyone encountered the same error?

public SerialPrinter Printer { get; set; }

    public PosCommand()
    {
        this.Printer = new SerialPrinter(portName: "USB0001", baudRate: 115200);
    }

and have exception "The given port name (USB001) does not resolve to a valid serial port. (Parameter Portname).

My ports is configured as "Port: USB001" and Description "Virtual printer port for USB".

Thank

@lukevp
Copy link
Owner

lukevp commented Feb 25, 2023

This library uses System.Io.Ports. That exception is probably being thrown by the MS library. Normally the virtual COM ports are mapped to the normal serial port names (like COM6 or something). Does your virtual port driver support that?

Gary-gr9 added a commit to Gary-gr9/ESC-POS-.NET that referenced this issue Jul 6, 2023
…linux as well) with complete printer status report back.

No driver install or Virtual Serial Port needed.
Choose printer from list of usb devices and send data straight to the printer like Serial or Network printer.
Possible fix for Isuues : lukevp#186 lukevp#220 lukevp#223
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants