I'm doing a project to build printer using a microcontroller via USB. The MCU's USB is configured as printer class when I plug the MCU into the PC so that it is identified as a printer. I've installed generic/text only driver available with windows and hence i can see my printer in "devices and printers" listed under printer category.
My question here is if I want to print whatever is sent to the printer, I need to know the data being sent from PC. For example, if I print a pdf, I want to know what data is sent i mean the format like HEX values or anything like that. Once I know what is coming into the controller I can print.
Any input here is welcome.
Thanks in advance
Well, since your printer setting is a simple generic/text only, the data sent will be the text content of the PDF. No markup, not even bold text or italics. Any pictures in the PDF will not be sent at all.
If you wan more than that, you can write a driver for your printer. As the driver writer, you determine what's sent to the printer.
Related
We have an application running within Electron which is successfully sending a byte array to the Windows print buffer and printing on all of our printers, except for one: "HP LaserJet Pro M402n". We found an option to print a history and the HP printer is tallying the phantom jobs as printed, but nothing actually was. We're at a bit of a loss on how to debug this, as it seems like an internal printer issue. Does anyone have advice on how to debug something like this? I'm thinking like Fiddler, virtual printer w/ debugger, etc. Any advice is appreciated.
Thanks
Good morning,
I am developing a kiosk application. In that application i need to send some commands to a printer with ESC/POS protocol.
I have some commands that give me information about printer (printer status, end of paper status). For sending command I use this function, but I need also to read the printer reply.
How can I do it? (The printer is connected in USB mode).
I'm developing on delphi xe2
Thanks
The example is assuming that your string type is simple such as shortstring. Try declaring s as shortstring. It can not work with widestring or unicode.
Did you check if the USB connection makes a new serial port?
If a new serial port displayed in device manager, I can help you to send the ESC command with a Delphi Comport component.
But if there is no serial port shown up, I have no idea about how to control the thermal printer.
i am attempting to print labels from our custom CMS for products using EPL2 label printer drivers but having no luck.
the printer spits out about 12 labels (4x1") but no text is visible.
i set up the printer manually and using the CUPS admin interface and get the same results each time.
zebra doesn't make a native driver, but i am finding on the web that this driver should work.
any advice would be much appreciated.
thanks.
What kind of data are you sending to the device? If you're just doing a File->Print of the web page it should work with the OS drivers, no need to go into the CUPS interface. If you're writing to the spool folder you should be sending raw EPL code - look for the EPL Programming Guide # Zebra.com
Make sure you setup the device correctly as well.
http://www.nrgsoft.com/blog/?p=11
what ended up working was doing a factory reset and using #page along with paper size settings to print in the correct dimensions.
the only printer i could get to actually work the way it was supposed to was Chrome.
I have problem with Zebex Z-3000 barcode scanner. It is connected to my PC via PS2 port. Does anybody knows about PS2 scanners. I had no problem with USB scanners but I ca't get PS2 scanners work. Do I have to listen PS2 port?
No, usually PS/2 scanners will simulate keypresses as if the barcode's value had been typed on the keyboard.
Is it recognising the barcode but not sending data, or not even beeping?
Scanners generally come with (or you can obtain) a set of configuration barcodes to control the types of codes it recognises and how the values are formatted (whether it appends a carriage-return, for example). You could try contacting the manufacturer or scour their website (now that it's working again) to find these.
I also have a barcode scanner with PS/2 connector. A "keyboard wedge" y connector to be precise. When I plug only the scanner to the PC and perform scanning, I only head a beep sound without any text written in text editor, which I use to test it.
Now, when I plug a PS/2 keyboard into the Y connector, so it's keyboard+scanner connected to the PS/2 port, I could see some text written in the text editor when performing test.
So, the key point is that you need to have the keyboard attached to the Y connector.
PS/2 barcode scanners are "keyboard wedge" scanners that plug in between a PS/2 keyboard and a computer's PS/2 port. When a barcode is scanned, they send the data to the computer as if it were keyboard input.
The ZEBEX Z-3000 barcode scanner has a set of configuration barcodes. Try to use those to get the scanner working if when you try scanning into Notepad, the scanner does not send any data. The scanner might be incorrectly set to RS-232C or USB mode (instead of PC/AT mode), or the barcode symbology you are trying to scan might not be enabled.
(Users of other models of barcode scanners should consult their respective manufacturers' programming guides instead.)
I have a piece of hardware that we created that connects to my PC via USB. We also wrote the drivers for it. EVERY time I plug this device in, the new device message comes up, even though the drivers are installed. I can cancel the dialog and it works fine, but it looks like crap and I'll be selling this product and want it to function like other USB products and only throw this dialog up once.
How do I make this happen?
Do you have all of the USB device descriptor fields populated in your device? Specifically, I am asking about the serial number field.
http://blogs.msdn.com/oldnewthing/archive/2004/11/10/255047.aspx