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

Network backend improvements #62

Open
vulpes2 opened this issue Aug 6, 2024 · 3 comments
Open

Network backend improvements #62

vulpes2 opened this issue Aug 6, 2024 · 3 comments

Comments

@vulpes2
Copy link

vulpes2 commented Aug 6, 2024

Support for two-way communication and discovery (via SNMP) would be good to have at some point.
There is an existing PR in the original repo that may be worth looking into: pklaus#137

@matmair
Copy link
Owner

matmair commented Aug 6, 2024

The current network backend seems half finished, and discovery would also be very interesting for inventree-brother-plugin

@matmair
Copy link
Owner

matmair commented Aug 18, 2024

pklaus#137 look interesting but seems to introduce pysnmp as a dependency. Would be cool if that dependency could be optional

@vulpes2
Copy link
Author

vulpes2 commented Aug 19, 2024

I looked into this and it's not an easy fix. The network backend is not half-finished, Brother doesn't support bidirectional comms through the raw network socket (port 9100) at all. The printer will only send back an error status when the buffer is full, but otherwise it won't respond to anything.

There are two channels that we can get stats from the printer with: IPP and SNMP. Both are kind of annoying to support and neither can be used for printing within the scope of this library (only URF is accepted over IPP on these printers). So basically you need to pick either IPP or SNMP, both would require a new dependency.

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