rkn704
Posts: 37
Joined: Sun Dec 30, 2012 4:25 pm

Connecting USB printer stops Pi

Mon May 08, 2017 12:51 pm

If I turn on my HP Laser printer and then connect it to my running Raspberry Pi it stops it.

If I have the printer powered down and connected to the Pi and then turn the printer on, that will also stop the Pi.

If the printer is powered up and connected and then the Pi is rebooted everything is good. My Python program runs OK and can print via CUPS without problems.

I am assuming this is a power type issue rather than software. I have a good quality PSU and a powered USB hub. I have also tried having the Pi and USB hub powered via a UPS just in case its a mains issue when switching on the printer. I am keen to sort this issue as I know that at some stage someone will turn the printer Off/on to clear a paper feed issue or change a printer cartridge.

When the printer is turned on it appears that everything stops. If I am connected in headless mode I loose the connection and cannot reconnect. The Python program that monitors a serial port and then prints info to the printer also appears to stop.

I don't have another printer to try at the moment, that will be the next thing to try.

Any other suggestions please.

Thanks in advance.

fruitoftheloom
Posts: 20708
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Connecting USB printer stops Pi

Mon May 08, 2017 12:56 pm

rkn704 wrote:If I turn on my HP Laser printer and then connect it to my running Raspberry Pi it stops it.

If I have the printer powered down and connected to the Pi and then turn the printer on, that will also stop the Pi.

If the printer is powered up and connected and then the Pi is rebooted everything is good. My Python program runs OK and can print via CUPS without problems.

I am assuming this is a power type issue rather than software. I have a good quality PSU and a powered USB hub. I have also tried having the Pi and USB hub powered via a UPS just in case its a mains issue when switching on the printer. I am keen to sort this issue as I know that at some stage someone will turn the printer Off/on to clear a paper feed issue or change a printer cartridge.

When the printer is turned on it appears that everything stops. If I am connected in headless mode I loose the connection and cannot reconnect. The Python program that monitors a serial port and then prints info to the printer also appears to stop.

I don't have another printer to try at the moment, that will be the next thing to try.

Any other suggestions please.

Thanks in advance.
Model of RPi ??

If a B+ / 2B / 3B what happens when not using a powered USB Hub ??
Retired disgracefully.....

rkn704
Posts: 37
Joined: Sun Dec 30, 2012 4:25 pm

Re: Connecting USB printer stops Pi

Mon May 08, 2017 12:59 pm

Raspberry Pi B+

Tried both Wheezy and Jessie operating systems.

rkn704
Posts: 37
Joined: Sun Dec 30, 2012 4:25 pm

Re: Connecting USB printer stops Pi

Mon May 08, 2017 1:00 pm

Sorry missed part of your question.

Same problem with and without powered hub.

ElEscalador
Posts: 680
Joined: Tue Dec 15, 2015 4:55 pm
Location: Detroit, MI USA
Contact: Website

Re: Connecting USB printer stops Pi

Mon May 08, 2017 1:01 pm

Power supply
My Autonomous Robot Project and a few of my other projects below.

https://lloydbrombach.wordpress.com/

fruitoftheloom
Posts: 20708
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Connecting USB printer stops Pi

Mon May 08, 2017 1:08 pm

rkn704 wrote:Sorry missed part of your question.

Same problem with and without powered hub.
Did you increase the USB max total to 1200mA though you will need to use a 5V 2A quality PSU ??

https://www.modmypi.com/blog/boost-usb-current


Regards Raspbian Wheezy it has been end of life since Sept '15 ;)
Retired disgracefully.....

rkn704
Posts: 37
Joined: Sun Dec 30, 2012 4:25 pm

Re: Connecting USB printer stops Pi

Mon May 08, 2017 1:09 pm

Currently using a 2.5A power supply. Have tried four different PSU's in the 1.8 to 2.5A range.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2093
Joined: Thu Jul 11, 2013 2:37 pm

Re: Connecting USB printer stops Pi

Mon May 08, 2017 1:47 pm

What model is your printer?
Rockets are loud.
https://astro-pi.org

rkn704
Posts: 37
Joined: Sun Dec 30, 2012 4:25 pm

Re: Connecting USB printer stops Pi

Mon May 08, 2017 2:30 pm

The printer is a HP Laserjet P2055dn

User avatar
solar3000
Posts: 1051
Joined: Sat May 18, 2013 12:14 am

Re: Connecting USB printer stops Pi

Mon May 08, 2017 2:43 pm

How about using a cheap print server? Or use wifi or bluetooth.
Antikythera

pcmanbob
Posts: 6933
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Connecting USB printer stops Pi

Mon May 08, 2017 3:40 pm

fruitoftheloom wrote:
rkn704 wrote:Sorry missed part of your question.

Same problem with and without powered hub.
Did you increase the USB max total to 1200mA though you will need to use a 5V 2A quality PSU ??

https://www.modmypi.com/blog/boost-usb-current
so you are using a 2.5A psu but did you add the line to turn on 1200mA max on the pi as fruitoftheloom suggested ?

try using a different usb cable between pi and printer, I have know poor quality usb cables cause print problems even on desktop PC's
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

rkn704
Posts: 37
Joined: Sun Dec 30, 2012 4:25 pm

Re: Connecting USB printer stops Pi

Thu May 11, 2017 11:48 am

Thank you pcmanbob and fruitoftheloom.

The usb port boosting mod in config.txt made the difference.

max_usb_current=1

I can now disconnect and reconnect the printer without issue.

Return to “General discussion”