I am having trouble finding a solution to this (or understanding this since I am kind of a novice). Want I want to do is turn on my printer when I want to print something and then after a certain amount of time (or after its done printing), power it off. That way I won't waste standby power in between prints (I don't print that often).
My setup is a TP-Link TL-MR3020 wireless router using the p910nd print server which I currently can print wirelessly with no problems.
After some testing, what I think I need to do is the following;
1. Send a document to the printer.
2. Some type of program/script starts to run when it receives traffic on port 9100 (printer port).
3. GPIO pin 7 goes high (flips a relay that switches the AC power on for the printer).
4. GPIO pin 8 toggles (this resets the USB interface).
5. Document is printed.
6. GPIO pin 7 goes low after 30 min (not sure if there is a way to know when the printer is done printing and just shut it off then).
Is this even possible? Is there a better way to do this?
Thank you for the help in advanced.