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

Not getting status from SerialPrinter #241

Open
NathanTe opened this issue Aug 18, 2023 · 1 comment
Open

Not getting status from SerialPrinter #241

NathanTe opened this issue Aug 18, 2023 · 1 comment

Comments

@NathanTe
Copy link

I'm not receiving any status updates from my printer connected through serial.

I have tried :

  • using the Status property => doesn't update
  • using the StatusChanged event => doesn't fire

I have found some answers in issues where you say to use StartMonitoring() but this method doesn't exist on SerialPrinter class.
Is this method still required? if so where can I find it?

@lukevp
Copy link
Owner

lukevp commented Jan 14, 2024

Yes, you need to enable monitoring or the printer will not send status updates back down the wire to your .NET app. It's a specific setting within the printer that has to be enabled.

It looks like the 3.0 release does not have support for status monitoring (some of it is commented out). You could try the previous releases and see if those work for you, and carry forward the status code into the latest version. it should be fairly easy to add. I think the reason that it was removed from 3.0 is because not all of the printer types support it, and we were trying to get the immediate network printer support stabilized. The status monitoring worked great in past versions so it should be able to be re-added. Let me know if you're interested in working on this, would love to have it working again. My guess is that we'll need to shift some of the code into the SerialPrinter class and have the BasePrinter provide overrides for the implementations in the subclasses.

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