-
Notifications
You must be signed in to change notification settings - Fork 1
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 printer not detected on windows 10 #1
Comments
Hi @nirvitarka, How have you setup the printer in the |
Thank you for the response @enoy19 . I tried entering device instance path *& also shared printer path on the same system, but it always says printer not found for that path. So my issue is how to set correct printer path on "Printers" screen for USB-connected printer |
Are you running zpl-tool inside a docker container or directly on your windows machine? zpl-tool uses serialport (docs: https://serialport.io/) to communicate with serial devices. The Docs of Version 9.x.x of serialport show an example on windows. They are using "COM1", "COM2"... "COMX". Sadly I have no experience using serial communication on windows... |
I just did some research @nirvitarka. Your printer might be mounted as a COM path.
|
Ok so after debugging further, I found the error is from this part of code in fileUtil.ts
This part is checking if there is filesystem access allowed to the "path" set for "serial" printer. I believe this will work on linux because linux device path is a directory/file like Hence this part of code is not applicable for windows. I will try by commenting out this part of code to see what happens & if it is able to access the serial port properly. |
Good explanation, thank you! Was your test successful? |
Commented this file check & the code execution went ahead without error for "Printer not found". However the serialport instance creation still fails for any USB path on line I see over other forums that people face such issues to access USB port using this package So we might need to implement it with a different package to handle USB ports on windows. Will have to dig this further to find root cause & possible fix, but I am not able to spend much time on this immediately, will get back to this later when time allows me to. |
Okay thank you very much for your effort! 🌟 |
I added "Device Instance Path" from device details for the printer.
While printing from this application, it says printer <PATH_OF_MY_PRINTER> not found
The printer path is
USBPRINT\ZEBRA_TECHNOLOGIES_ZTC_ZD230-203DPI_ZPL\6&32827A83&0&USB001
How to set path of usb printer on windows? Is this the correct way of setting the path for windows OS?
The text was updated successfully, but these errors were encountered: