lukevp / ESC-POS-.NET

Efficient, Easy to Use Thermal Printing & POS (Windows/Linux/OSX, WiFi/BT/USB/Ethernet)
MIT License
500 stars 161 forks source link

Port get jammed after long use #240

Open VibinKesavan opened 11 months ago

VibinKesavan commented 11 months ago

Hi Team,

I am using SerialPrinter using a COM port, the instance is a singleton in my app and it kept printing the receipts. However, 1-2 times a week, the printer communication stops working and I need to do the following steps to resolve the issue

Sometimes this works Go to device manager -> disable com1 - then enable com1 - print from then the app

Sometimes Go to device manager -> disable com1 -> restart pc - then enable com1 - print from then the app

I am using SNBC 80mm serial printer. my code is exactly the same as the documentation says, am i using the library correct? do i need to move away from the serialprinter to some other printer implementation? please help

Vibin

@lukevp

lukevp commented 5 months ago

Hey @VibinKesavan, I do not use this code in production myself and primarily work on this in a consulting capacity. I haven't heard from any other customers that they've had a similar issue. If you're making a commercial product and you'd like to discuss having me help look into it with you, I'd be happy to work something out.

Out of curiosity, is there no way to fix it from the printer side? removing and reconnecting printer, restarting it, etc.? Does restarting the machine fix it? or only removing and re-adding the device in device manager?

If it's a device manager only thing, then it sounds like the issue is in your drivers, and not in the code or the printer itself.