lukevp / ESC-POS-.NET

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

Get information about the Pos printer model #285

Open jzeb opened 3 weeks ago

jzeb commented 3 weeks ago

May I ask whether I have obtained information about the POS printer model in the current LAN through network scanning

lukevp commented 3 weeks ago

I don’t understand the question. This library implements a subset of the ESC/POS spec. There aren’t currently any methods implemented that give you model information, but if that’s part of the spec we would gladly accept PRs that add that functionality. If you’re asking about port / ip address scanning to find devices, that’s out of scope for this library and there should be many .net tools that can do this.

jzeb commented 3 weeks ago

What I mean is that ESC-POS.NET can scan the LAN printer and obtain the corresponding brand and model of the printer

jzeb commented 3 weeks ago

I really want to get my reply. Now I want to find a solution. Thank you

igorocampos commented 3 weeks ago

Hi @jzeb, unfortunately, what you wish for doesn't have anything to do with the purpose of this library. You would need to accomplish that with another library and THEN use this one to communicate with the printer you found in your network

What I mean is that ESC-POS.NET can scan the LAN printer and obtain the corresponding brand and model of the printer

That’s out of scope for this library

jzeb commented 3 weeks ago

Hi @jzeb, unfortunately, what you wish for doesn't have anything to do with the purpose of this library. You would need to accomplish that with another library and THEN use this one to communicate with the printer you found in your network

What I mean is that ESC-POS.NET can scan the LAN printer and obtain the corresponding brand and model of the printer

That’s out of scope for this library

So far, I have been looking for a long time, but I have not found a suitable library to use. Could you recommend it for me? Thank you

igorocampos commented 3 weeks ago

Unfortunately I've never had that need, so I wouldn't know which to recommend, but quick search in Google pointed a few already, not sure if you already went that path or not.

jzeb commented 3 weeks ago

Currently can not find a solution, in distress