Device communication error 5012 astra linux
I have an HP Officejet 6500 E709n connected wirelessly to a Trendnet wireless router using a dynamic IP (all computers connect to the router dynamically) using the newest driver hplip 3.9.8.
It keeps getting a communication error 5012 when I open HP manager. Sometimes it will connect after a reboot of the computer, router and printer and will print a test page, but close HP Manager and the printer loses connection.
When I first installed the printer using CUPS it printed ok, but I admit I was determined to be able to use all functions using the HP gui, and that’s when it stopped working.
I have searched extensively on Google and several forums and have found that it is a known issue but doesn’t seem to have a definitive answer.
There is a bug report at https://bugs.launchpad.net/hplip/+bug/309833.
This computer is a dual boot of jaunty and XP SP3. We have two other computers connected to the router, a wireless laptop (Vista) and a desktop rj45 (XP SP3) and of course all print fine in windows. Now I know that sooner or later this problem will be solved (evidently this is a new model of printer), so I will check in regularly to see if there is a solution, and if I ever find a solution, I will post back here.
Until then, it still is faster to boot into windows to print, than running upstairs and restarting everything.
HP Linux Imaging and Printing System (ver. 3.9.8)
Device Information Utility ver. 5.2
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Using device: hp:/net/Officejet_6500_E709n?zc=HPD323A9
error: Unable to communicate with device (code=12): hp:/net/Officejet_6500_E709n?zc=HPD323A9
error: Unable to open device hp:/net/Officejet_6500_E709n?zc=HPD323A9.
HP Linux Imaging and Printing System (ver. 3.9.8)
Dependency/Version Check Utility ver. 14.3
Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or —compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or —run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or —both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).
Saving output in log file: hp-check.log
Initializing. Please wait.
Basic system information:
Linux colin-desktop 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux
Distribution:
ubuntu 9.04
Checking Python version.
OK, version 2.6.2 installed
Checking PyQt 4.x version.
OK, version 4.4.4 installed.
Checking for CUPS.
Status: scheduler is running
Version: 1.3.9
error_log is set to level: info
Checking for dbus/python-dbus.
dbus daemon is running.
python-dbus version: 0.83.0
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
Checking for dependency: CUPS — Common Unix Printing System.
OK, found.
Checking for dependency: CUPS DDK — CUPS driver development kit.
OK, found.
Checking for dependency: CUPS devel- Common Unix Printing System development files.
OK, found.
Checking for dependency: CUPS image — CUPS image development files.
OK, found.
Checking for dependency: DBus — Message bus system.
OK, found.
Checking for dependency: gcc — GNU Project C and C++ Compiler.
OK, found.
Checking for dependency: GhostScript — PostScript and PDF language interpreter and previewer.
OK, found.
Checking for dependency: libcrypto — OpenSSL cryptographic library.
OK, found.
Checking for dependency: libjpeg — JPEG library.
OK, found.
Checking for dependency: libnetsnmp-devel — SNMP networking library development files.
OK, found.
Checking for dependency: libpthread — POSIX threads library.
OK, found.
Checking for dependency: libtool — Library building support services.
OK, found.
Checking for dependency: libusb — USB library.
OK, found.
Checking for dependency: make — GNU make utility to maintain groups of programs.
OK, found.
Checking for dependency: PIL — Python Imaging Library (required for commandline scanning with hp-scan).
OK, found.
Checking for dependency: PolicyKit — Administrative policy framework.
OK, found.
Checking for dependency: PyQt 4 DBus — DBus Support for PyQt4.
OK, found.
Checking for dependency: Python DBus — Python bindings for DBus.
OK, found.
Checking for dependency: Python devel — Python development files.
OK, found.
Checking for dependency: Python libnotify — Python bindings for the libnotify Desktop notifications.
OK, found.
Checking for dependency: Python XML libraries.
OK, found.
Checking for dependency: Python 2.3 or greater — Required for fax functionality.
OK, found.
Checking for dependency: Python 2.2 or greater — Python programming language.
OK, found.
Checking for dependency: Reportlab — PDF library for Python.
OK, found.
Checking for dependency: SANE — Scanning library.
OK, found.
Checking for dependency: SANE — Scanning library development files.
OK, found.
Checking for dependency: scanimage — Shell scanning program.
OK, found.
Checking for dependency: xsane — Graphical scanner frontend for SANE.
OK, found.
Currently installed HPLIP version.
HPLIP 3.9.8 currently installed in ‘/usr/share/hplip’.
Current contents of ‘/etc/hp/hplip.conf’ file:
# hplip.conf. Generated from hplip.conf.in by configure.
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.9.8
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.9.8.36
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=no
Current contents of ‘/var/lib/hp/hplip.state’ file:
# hplip.state — HPLIP runtime persistent variables.
[plugin]
installed=0
eula=0
Current contents of ‘
/.hplip/hplip.conf’ file:
[last_used]
printer_name =
printer =
working_dir = .
device_uri = «hp:/net/Officejet_6500_E709n?zc=HPD323A9»
[commands]
scan = /usr/bin/xsane -V %SANE_URI%
[installation]
version = 3.9.8.36
date_time = 09-08-24 19:29:43
[settings]
systray_messages = 0
systray_visible = 1
[fax]
email_address =
voice_phone =
[refresh]
rate = 30
enable = true
type = 2
[polling]
enable = false
device_list =
interval = 5
No devices found.
Officejet_6500_E709n
———————
Type: Printer
Device URI: hp:/net/Officejet_6500_E709n?zc=HPD323A9
PPD: /etc/cups/ppd/Officejet_6500_E709n.ppd
PPD Description: HP Officejet 6500 e709n, hpcups 3.9.8
Printer status: printer Officejet_6500_E709n is idle. enabled since Sun 16 Aug 2009 05:46:05 PM EDT
error: Unable to communicate with device (code=12): hp:/net/Officejet_6500_E709n?zc=HPD323A9
error: unable to open channel
error: Communication status: Failed
Officejet_6500_E709n_fax
————————
Type: Fax
Device URI: hpfax:/net/Officejet_6500_E709n?zc=HPD323A9
PPD: /etc/cups/ppd/Officejet_6500_E709n_fax.ppd
PPD Description: HP Fax hpcups
Printer status: printer Officejet_6500_E709n_fax is idle. enabled since Sun 16 Aug 2009 05:46:05 PM EDT
error: Unable to communicate with device (code=12): hpfax:/net/Officejet_6500_E709n?zc=HPD323A9
error: unable to open channel
error: Communication status: Failed
‘hpaio’ in ‘/etc/sane.d/dll.conf’.
OK, found. SANE backend ‘hpaio’ is properly set up.
Checking output of ‘scanimage -L’.
device `hpaio:/net/Officejet_6500_E709n?zc=HPD323A9′ is a Hewlett-Packard Officejet_6500_E709n all-in-one
Checking ‘cupsext’ CUPS extension.
OK, found.
Checking ‘pcardext’ Photocard extension.
OK, found.
Checking ‘hpmudext’ I/O extension.
OK, found.
Checking ‘scanext’ SANE scanning extension.
OK, found.
colin adm dialout cdrom dip plugdev lpadmin admin sambashare
error: 2 errors and/or warnings.
Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html
I got an answer and so far, 15 minutes and the printer hasn’t lost communication.
Your question #81249 on HPLIP changed:
https://answers.launchpad.net/hplip/+question/81249
Status: Open => Needs information
Aaron Albright requested for more information:
It looks like the printer queue is using the hostname. Is it possible
to try using the IP address instead?
Select manually discovery, then enter the IP address, etc.
If that fixes it I’ll need to do some testing using the hostname rather
than the IP and see if there might be some issue.
Aaron from launchpad indicated that there might be an issue with using the host name instead of the IP. Since you have confirmed with the same issue and resolution, it would seem that this is a fairly common problem.
In either case they are aware of it and hopefully the next version of hplip will not have this problem.
I solved my problems by reinstalling the printer not usinf the HPLIP interface, like a post in this thread: http://ubuntuforums.org/showthread.php?t=1384560
I went to the display on the printer and connected it to my wifi network. After that i went to the Ubuntu menu System-Administration-Printer and found the printer!
I had the same Problem with an OfficeJet Pro 8500. Inserting the IP in setup manually solved it . hplip is 3.11.7 . with Ubuntu Maveric
1. I set my HP-8500 from its panel using the Wifi tools. I named an IP
address of my choice rather than rely on DHCP.
2. In HPLIP, I said «network connection» (no wifi) — after all, if wifi is really working, it is just another IP address on the LAN.
3. HPLIP found the printer all was well.
.
4. Upgrade to Mint-12, now I get «Comm Error 5012».
5. Moved printer (unrelated to this issue) and connect by wire
6. Configured wire net at the printer panel using the same fixed IP
as I used before under wifi.
7. Still get the «Error 5012»
SUMMARY:
** Somewhere between Ubuntu 10.04 and 11.10 (Mint-12) something changed in HPLIP-land because I didn’t use to have any troubles
** I have yet to try to re-install naming the printer IP address
** Neither 10.04 nor 11.04 (Mint-11) have or had any troubles.
I am seeing more and more people with HP printer issues
Here is one more. The problem child is HP deskjet 6500 with «communication error 5012».
That same printer works flawlessly with an ancient 600 Mhz Windows 98 (stand alone) machine like it used to work with Ubuntu 10.04.
This is an old thread, so it may get locked, but if you follow the above suggestions, especially about specifying an IP, it should work.
I now use 12.04 and the two wireless printers I have (the 6500 and a cheap Canon) both needed very little threatening to work. As a matter of fact, all functions work just fine.
Since this has been solved for quite awhile, as far as I’m concerned. solved.
Источник
Thread: HP Printer gets “Device Communication error (5012)”
Thread Tools
Display
HP Printer gets “Device Communication error (5012)”
I have spent considerable time getting my HP Photosmart C6180 all-in-one (printer, fax, scanner, copier) working on Lucid. I have seen posts indicating that other people were having similar problems so I thought I would post the solution.
I discovered that the hp-setup (no parameters) GUI and hp-toolbox both set the printer URI to “hp:/net/Photosmart_C6100_series?zc=HP547597” rather than to “hp:/net/Photosmart_C6100_series?ip=192.168.0.31” as it should be. On Lucid you can go to Mainmenu>System>Administration>Printing (system-config-printing if you need to install it with Synaptic) and change this. Right click on the printer icon, select Properties and edit the URI box. For the printer (not for a printer/fax) you can also set the URI to «socket:// :9100» and it will work. However, if you have a printer/fax you need to use “hp:/net/Photosmart_C6100_series?zc=HP547597”. Also the fax device (the icon Properties) must have a Make/Model of “HP Fax hpcups”. This cannot be changed with system-config-printing. The only way I found to get the fax to work was to use
hp-setup -i 192.168.0.31
GUI. The toolbox sets the URI wrong, but it can be corrected in system-config-printing. The Model/Make parameters are set correctly by toolbox. Note that my printer URL is 192.168.0.31. Yours will be different.
I am about to try this same setup on Precise Pangolin 12.04.
Источник
Thread: HPLIP Error 5012
Thread Tools
Display
HPLIP Error 5012
I used the HPLIP HP Linux Imaging and Printing ( http://hplipopensource.com/hplip-web/index.html ) to detect and set up my HP 4100MFP (Multifunction Printer).
The printer was automatically detected in moments and set up took a few seconds. I attempted to print a test page and received a «communication error 5012).
Previous attempts to print using the Ubuntu printer set up would also set up the printer with the same results of not being able to print. Error box kept appearing suggesting the printer was not turned on (form of communication error, I suppose).
Printer does print test page OK.
I did Google search and have found some references to other printers with mention of permissions or setting something up in root. Not sure that anything like this applies.
OS: Ubuntu 8.10
Processor: AMD 64 Athlon 3200
Memory: 3 GB
Printer Networking: Ethernet
Printer address: Mfg default 192.0.0.192 (detected by HPLIP)
PPD/Driver: HP Laserjet 4100 MFP v.3010.107 Postscript (Recommended)
Printer self test = OK
Cat5 cable test = OK
HPLIP detects printer = OK
Print job successful = NO
Thanks in advance!
Last edited by rhardie; November 18th, 2008 at 03:37 PM .
Re: HPLIP Error 5012
Have you rebooted both the printer and the PC? Shut both down and star printer first. I had a similar problem until rebooting both devices. Hope it’s that simple for you to.
Re: HPLIP Error 5012
Is it connected by a LAN cable? If yes then try setting up a static IP address. Should work wonders!
Re: HPLIP Error 5012
You tried accessing and configuring the printer using localhost:631 in a browser? I use that to manage a networked HP printer, without using HPLIP, and it works great.
Re: HPLIP Error 5012
Yes, this is on an Ethernet connection.
Yes, I did the Local Host.
Yes, the printer’s IP address is static.
I’ll attempt to shut down both pretty soon and see if that has an effect.
Re: HPLIP Error 5012
Did the sequence recommended with same communication error 5012.
Powered down workstation
Powered down HP 4100
Restarted HP 4100
Hp 4100 completes self test and in online status (Green)
Power up workstation
Open HPLIP
Receive Communication error 5012
HP Linux Imaging and Printing System (ver. 2.8.7)
Dependency/Version Check Utility ver. 14.0
Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or —compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed
to successfully compile HPLIP.
2. Run-time check mode (-r or —run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper
dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or —both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).
Saving output in log file: hp-check.log
Initializing. Please wait.
warning: Invalid ppd_dir value: None
Basic system information:
Linux rocky-desktop 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux
Distribution:
ubuntu 8.10
HPOJ running?
error: Yes, HPOJ is running. HPLIP is not compatible with HPOJ. To run HPLIP, please remove HPOJ.
Checking Python version.
OK, version 2.5.2 installed
Checking PyQt version.
OK, version 3.17 installed.
Checking SIP version.
error: SIP not installed or version not found.
Checking for CUPS.
Status: scheduler is running
error: Version: (Not available. CUPS may not be installed or not running.)
Checking for dbus/python-dbus.
dbus daemon is running.
python-dbus version: 0.82.4
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
Checking for dependency: cups — Common Unix Printing System.
OK, found.
Checking for dependency: cups-ddk — CUPS driver development kit.
OK, found.
Checking for dependency: cups-devel- Common Unix Printing System development files.
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: dbus — Message bus system.
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: gcc — GNU Project C and C++ Compiler.
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: GhostScript — PostScript and PDF language interpreter and previewer.
OK, found.
Checking for dependency: libcrypto — OpenSSL cryptographic library.
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: libjpeg — JPEG library.
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: libnetsnmp-devel — SNMP networking library development files.
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: libpthread — POSIX threads library.
OK, found.
Checking for dependency: libtool — Library building support services.
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: libusb — USB library.
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: make — GNU make utility to maintain groups of programs.
OK, found.
Checking for dependency: PIL — Python Imaging Library (required for commandline scanning with hp-scan).
OK, found.
Checking for dependency: ppdev — Parallel port support kernel module.
OK, found.
Checking for dependency: PyQt — Qt interface for Python.
OK, found.
Checking for dependency: python-ctypes — A foreign function library for Python.
OK, found.
Checking for dependency: python-dbus — Python bindings for dbus.
OK, found.
Checking for dependency: python-devel — Python development files.
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: Python 2.3 or greater — Required for fax functionality.
OK, found.
Checking for dependency: Python 2.2 or greater — Python programming language.
OK, found.
Checking for dependency: Reportlab — PDF library for Python.
OK, found.
Checking for dependency: SANE — Scanning library.
OK, found.
Checking for dependency: SANE — Scanning library development files.
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: scanimage — Shell scanning program.
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: xsane — Graphical scanner frontend for SANE.
OK, found.
Currently installed HPLIP version.
HPLIP 2.8.7 currently installed in ‘/usr/share/hplip’.
Current contents of ‘/etc/hp/hplip.conf’ file:
# hplip.conf. Generated from hplip.conf.in by configure.
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-doc/HTML
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
internal-tag=2.8.7.3
restricted-build=no
No devices found.
No devices found.
HP_LaserJet_4100_MFP
———————
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/net/HP_LaserJet_4100_MFP?ip=192.0.0.192
PPD: /etc/cups/ppd/HP_LaserJet_4100_MFP.ppd
PPD Description: HP LaserJet 4100 MFP v.3010.107 Postscript (recommended)
Printer status: printer HP_LaserJet_4100_MFP is idle. enabled since Fri 21 Nov 2008 06:05:17 AM CST
error: Unable to communicate with device (code=12): hp:/net/HP_LaserJet_4100_MFP?ip=192.0.0.192
‘hpaio’ in ‘/etc/sane.d/dll.conf’.
error: Not found. SANE backend ‘hpaio’ NOT properly setup (needs to be added to /etc/sane.d/dll.conf).
Checking output of ‘scanimage -L’.
error: scanimage not found.
Checking ‘cupsext’ CUPS extension.
OK, found.
Checking ‘pcardext’ Photocard extension.
OK, found.
Checking ‘hpmudext’ I/O extension.
OK, found.
Checking ‘scanext’ SANE scanning extension.
OK, found.
Checking for permissions of USB attached printers.
error: 16 errors and/or warnings.
Last edited by rhardie; November 21st, 2008 at 01:24 PM .
Источник