PC to printer wireless communication

Thread Starter

nikhilclement

Joined Sep 17, 2013
8
I want to establish wireless communication between PC and a laser printer using ZigBee. But, first I need to know if it's possible to interface a microcontroller to the laser printer for serial to parallel conversion of data. Can anybody tell me if it's possible in real time?
 

3v0

Joined Mar 26, 2009
14
Zigbee is a mesh network with several profiles which define everything from light switches to power meters. You may want to look at a X-Bee point to point setup.

I should be possible.
 

#12

Joined Nov 30, 2010
18,224
Because you can do it a lot cheaper than buying a whole laser printer.

You can buy some little dongle looking things that plug into the computers USB port and the printers USB port, and they do the communication.

(Lazy people like things that cost less than $20 and avoid hours of work.)
 

Thread Starter

nikhilclement

Joined Sep 17, 2013
8
Thank you all for the response. I am doing a project on "PC to printer wireless communication". So I just wanted to use anything else apart from Wi-Fi to execute it, because Wi-Fi printers are currently in the trend. I'm using HP laserjet 1010 printer. So serial to parallel conversion has to be done by the microcontroller. This is the main purpose of interfacing MCU to the printer. I'll go with Xbee as you guys advised. Which microcontroller would you suggest? Avr, arm, pic or any other?
 

t06afre

Joined May 11, 2009
5,934
Thank you all for the response. I am doing a project on "PC to printer wireless communication". So I just wanted to use anything else apart from Wi-Fi to execute it, because Wi-Fi printers are currently in the trend. I'm using HP laserjet 1010 printer. So serial to parallel conversion has to be done by the microcontroller. This is the main purpose of interfacing MCU to the printer. I'll go with Xbee as you guys advised. Which microcontroller would you suggest? Avr, arm, pic or any other?
This sounds like academic project;). I did a check at HP. And it looks like the 1015 version comes with a parallel port (IEEE 1284) And this makes a lot more easy for you. Then it comes to selecting a microcontroller. It does not matter much. Select the brand that your school support and use in education. Read the parallel port specification and then select a controller with enough IO pins. It is no reason to skimp on IO in this case. So if you select a 40 pin critter. You will not worry about running out of IO
 

3v0

Joined Mar 26, 2009
14
This sounds like a nice project.

I agree with t06afre in that you should use the processor used by your school or what you have already learned. Start by getting the pin/signal definitions for the printer port which is centronics according to service manual. I would have been surprised if it was something else.

It may be easier to do a centronics to serial at the printer and serial to centronics at the computer. Rather then getting a serial driver to work with your hardware at the computer.

EDIT: Low cost laser printers do the page formatting on the PC and send the formatted paged ready to print to the printer. So you are limited to using drivers specific to this print engine.
 
Last edited:

Thread Starter

nikhilclement

Joined Sep 17, 2013
8
Yes, it's my academic project. I'm a beginner and it's really getting tough for me to understand lot of things. Theoretically, this project looks easy. But practically, I'm facing lot of problems. I learnt that to interface a microcontroller to a laser printer, the microcontroller must be written with the printer's driver in it's memory, so that it can understand the commands given by the printer. Is this true? If yes then how should I write the drivers in MCU's memory? Should I interface a separate memory to MCU, since it has limited memory?
 

t06afre

Joined May 11, 2009
5,934
What kind of Zigbee unit do you use on the PC side. Is some sort of USB dongle? Those often mount as a virtual serial port. It could be that you can link the printer driver to the latter port directly. Then your task will more or less be to receive the data stream from the Zigbee unit. And emulate a parallel port with your MCU.
 

Thread Starter

nikhilclement

Joined Sep 17, 2013
8
I'm planning to use xbee pro module. I haven't purchased anything yet. I'm gathering info so that I buy the correct product. Is this suitable?
 

sirch2

Joined Jan 21, 2013
1,037
I learnt that to interface a microcontroller to a laser printer, the microcontroller must be written with the printer's driver in it's memory, so that it can understand the commands given by the printer. Is this true? If yes then how should I write the drivers in MCU's memory? Should I interface a separate memory to MCU, since it has limited memory?
Not necessarily, the Driver on the PC does the conversion to printer commands. What it seems you want to do is replace a cable with wireless, the cable just transmits data, it doesn't change the data.
 

Thread Starter

nikhilclement

Joined Sep 17, 2013
8
Not necessarily, the Driver on the PC does the conversion to printer commands. What it seems you want to do is replace a cable with wireless, the cable just transmits data, it doesn't change the data.
I agree:). But, what if there are no pages in the printer and it wants to indicate this to the PC? Would the microcontroller still not require the printer's drivers to process this command from printer and transmit it to PC?
 

sirch2

Joined Jan 21, 2013
1,037
Same thing really, whatever the printer sends back as an "out of paper" or "out of toner" your module just sends it back to the PC, then the driver on the PC interprets it. Like I said, think of your project as a cable replacement, it just passes whatever comes out of the PC to the Printer and whatever comes out of the Printer to the PC.
 

Thread Starter

nikhilclement

Joined Sep 17, 2013
8
What about the mismatch in data rate? Will there be any problem of data rate? Laser printer has an input data rate of 3Mbps, while ZigBee/Xbee has 250kbps data rate. Will this affect in getting a printout of multiple pages?
 

t06afre

Joined May 11, 2009
5,934
No i do not think so, as the centronics interface have defined pins for controlling the dataflow. Like pin 11 the busy signal (on PC side). This signal will tell the PC that the printer can not take more data.
 
Top