HP Laser jet P1102 and TP-WR1043ND v2

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

thelordabdo
Posts: 33
Joined: Thu Aug 27, 2015 6:25 pm

HP Laser jet P1102 and TP-WR1043ND v2

Post by thelordabdo »

I just bought a new TP link router WR1043ND v2 , installed Gargoyle V 1.11.0 , every thing seems working fine including the usb storage .
I am trying to install my usb printer HP Laser jet P1102 (which works fine on PC) with no successful till now .
I have installed the Printer Support and system log plugin , searched the internet for workarounds which led me to disable the HP smart install utility and try connecting the usb cable to the router when the printer is already turned on for while but still "No USB printers are currently attached to the router." appearing at the "Attached USB Printers" Window .

The Green USB Led at the router is turned on , and this appeare on Log when I disconnect and connect the printer again to the router

Code: Select all

Thu Jun 27 20:46:14 2019 kern.info kernel: [  302.005145] usb 1-1: USB disconnect, device number 3
Thu Jun 27 20:46:20 2019 kern.info kernel: [  308.908082] usb 1-1: new high-speed USB device number 4 using ehci-platform
Thu Jun 27 20:46:21 2019 kern.info kernel: [  309.103675] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Thu Jun 27 20:46:21 2019 kern.info kernel: [  309.512978] usblp0: removed
Success
Any Help ?
Archer C7 V5 / Gargoyle 1.12.0
TL-WR1043ND V2 / Gargoyle 1.10.0
TL-WR841ND V9 / GArgoyle 1.10.0

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by Lantis »

Can you please show the output of the following command:
cat "/sys/kernel/debug/usb/devices" | sed 's/^$/@@@@@/g'
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

thelordabdo
Posts: 33
Joined: Thu Aug 27, 2015 6:25 pm

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by thelordabdo »

Lantis wrote:Can you please show the output of the following command:
cat "/sys/kernel/debug/usb/devices" | sed 's/^$/@@@@@/g'
I have connected the printer again and then run this command in Putty , this is the output .

Code: Select all

root@Gargoyle:~# cat "/sys/kernel/debug/usb/devices" | sed 's/^$/@@@@@/g'
@@@@@
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 4.09
S:  Manufacturer=Linux 4.9.156 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=ehci-platform.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms
@@@@@
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=03f0 ProdID=002a Rev= 1.00
S:  Manufacturer=Hewlett-Packard
S:  Product=HP LaserJet Professional P1102
S:  SerialNumber=000000000Q844TSGPR1a
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr= 98mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=10 Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=256ms
@@@@@
T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 4.09
S:  Manufacturer=Linux 4.9.156 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=ehci-platform.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms
and this is from Log

Code: Select all

Fri Jun 28 10:27:36 2019 kern.info kernel: [37271.454203] usb 1-1: new high-speed USB device number 2 using ehci-platform
Fri Jun 28 10:27:36 2019 kern.info kernel: [37271.649877] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Fri Jun 28 10:27:37 2019 kern.info kernel: [37272.051752] usblp0: removed
Fri Jun 28 10:27:38 2019 kern.info kernel: [37273.120330] usb 1-1: USB disconnect, device number 2
Fri Jun 28 10:27:38 2019 kern.info kernel: [37273.924584] usb 1-1: new high-speed USB device number 3 using ehci-platform
Fri Jun 28 10:27:39 2019 kern.info kernel: [37274.143054] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Fri Jun 28 10:27:41 2019 kern.info kernel: [37276.192447] usblp0: removed
Archer C7 V5 / Gargoyle 1.12.0
TL-WR1043ND V2 / Gargoyle 1.10.0
TL-WR841ND V9 / GArgoyle 1.10.0

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by Lantis »

I can't really tell if usblp has attached itself to your printer properly or not. It looks like it has, but the output has changed since the init script was first written.
It needs a makeover quite frankly.

If you bypass lines 60-72 in /usr/lib/gargoyle/configure_printer.sh and add a line

Code: Select all

printer="Unknown Printer"
before line 78, it might fire up and work.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

thelordabdo
Posts: 33
Joined: Thu Aug 27, 2015 6:25 pm

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by thelordabdo »

Lantis wrote:I can't really tell if usblp has attached itself to your printer properly or not. It looks like it has, but the output has changed since the init script was first written.
It needs a makeover quite frankly.

If you bypass lines 60-72 in /usr/lib/gargoyle/configure_printer.sh and add a line

Code: Select all

printer="Unknown Printer"
before line 78, it might fire up and work.
Thanks for your help till now , I am not an Expert , but searched and used WinSCP to edit this file

Before :

Code: Select all

#!/bin/sh

update_dnsmasq_conf()
{
	dnsfile="$1"
	new_lines="$2"


	start_line=$(grep -n "BEGIN BONJOUR PRINTER CONFIGURATION" $dnsfile | sed 's/:.*$//g')
	end_line=$(grep -n "END BONJOUR PRINTER CONFIGURATION" $dnsfile | sed 's/:.*$//g')
	lines=$(wc -l $dnsfile | awk '{print $1 }')

	
	rm -rf /tmp/dns.new.tmp
	if [ -n "$start_line" ] ; then
		if [ $start_line -gt 1 ] ; then 
			head -n $(($start_line-1))  $dnsfile            >>/tmp/dns.new.tmp
		fi
		if [ $end_line -lt $lines ] ; then
			tail -n $(( $lines - $end_line ))  $dnsfile     >>/tmp/dns.new.tmp
		fi
	else
		cat "$dnsfile"                                          >>/tmp/dns.new.tmp
	fi

	echo '###### BEGIN BONJOUR PRINTER CONFIGURATION #####' >>/tmp/dns.new.tmp
	printf "$new_lines\n"                                   >>/tmp/dns.new.tmp
	echo '###### END BONJOUR PRINTER CONFIGURATION #######' >>/tmp/dns.new.tmp
	
	original_md5=$(md5sum "$dnsfile")
	original_md5=${original_md5% *}
	new_md5=$(md5sum "/tmp/dns.new.tmp")
	new_md5=${new_md5% *}
	if [ "$original_md5" != "$new_md5" ] ; then
		mv /tmp/dns.new.tmp "$dnsfile"
		/etc/init.d/dnsmasq restart
	else
		rm -rf /tmp/dns.new.tmp
	fi
}




if [ -e /tmp/printer_hotplug_lock ] ; then exit ; fi
touch /tmp/printer_hotplug_lock

count=5
while [ ! -e /sys/kernel/debug/usb/devices ] && [ $count -gt 0 ] ; do
	sleep 1
	count=$(( $count - 1 ))
done 

if [ ! -e /sys/kernel/debug/usb/devices ] ; then 
	rm -rf /tmp/printer_hotplug_lock
	exit 
fi


usb_device_lines=$(  echo $(cat "/sys/kernel/debug/usb/devices" | sed 's/^$/@@@@@/g') | sed 's/@@@@@/\n/g')
printer=$(printf "%s" "$usb_device_lines" | grep "Driver=usblp" | sed 's/^.*Product=//g' | sed 's/ .:.*$//g'| head -n1)
if [ -z "$printer" ] ; then
	printer=$(printf "%s" "$usb_device_lines" | grep "Driver=usblp" | sed 's/^.*SerialNumber=//g' | sed 's/ .:.*$//g'| head -n1)
	if [ -n "$printer" ] ; then
		printer="Unknown Printer with S/N $printer"
	else
		printer=$(printf "%s" "$usb_device_lines" | grep "Driver=usblp" | sed 's/^.*Vendor=/Vendor=/g' | sed 's/ .:.*$//g'| head -n1)
		if [ -n "$printer" ] ; then
			printer="Unknown Printer $printer"
		fi
	fi
fi


p910nd_enabled=$(uci get p910nd.@p910nd[0].enabled 2>/dev/null)
p910nd_printer_name=$(uci get p910nd.@p910nd[0].printer_name 2>/dev/null)

if [ -n "$printer" ] ; then
		
	if [ "$p910nd_enabled" != "1" ] || [ "$p910nd_printer_name" != "$printer"  ] ; then
		uci set p910nd.@p910nd[0].enabled="1"
		uci set p910nd.@p910nd[0].printer_name="$printer"
		uci commit
		/etc/init.d/p910nd enable
		/etc/init.d/p910nd stop >/dev/null 2>&1
		/etc/init.d/p910nd start
	fi
	

	domain=$(uci get dhcp.@dnsmasq[0].domain)
	hostname=$(uci get system.@system[0].hostname)
	revip=$(uci get network.lan.ipaddr | sed 's/\./ /g' | awk ' { print "0."$3"."$2"."$1 ; }')
	dnsmasqConfLines=""
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=b._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=db._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=r._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=dr._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=lb._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=_services._dns-sd._udp.$domain,_pdl-datastream._tcp.$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=_pdl-datastream._tcp.$domain,$hostname._pdl-datastream._tcp.$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nsrv-host=Gargoyle._pdl-datastream._tcp.$domain,$hostname.$domain,9100\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\ntxt-record=$hostname._pdl-datastream._tcp.$domain,ty=$printer,product=($printer),usb_MDL=$printer,txtvers=1,qtotal=1,priority=20\n")


	update_dnsmasq_conf "/etc/dnsmasq.conf" "$dnsmasqConfLines"

	#after we've found a printer we're done -- for now, only one printer at a time
elif [ "$p910nd_enabled" != "0" ] ; then
	uci set p910nd.@p910nd[0].enabled=0
	uci set p910nd.@p910nd[0].printer_name=""
	uci commit
	/etc/init.d/p910nd stop >/dev/null 2>&1
fi

rm -rf /tmp/printer_hotplug_lock

After :

Code: Select all

#!/bin/sh

update_dnsmasq_conf()
{
	dnsfile="$1"
	new_lines="$2"


	start_line=$(grep -n "BEGIN BONJOUR PRINTER CONFIGURATION" $dnsfile | sed 's/:.*$//g')
	end_line=$(grep -n "END BONJOUR PRINTER CONFIGURATION" $dnsfile | sed 's/:.*$//g')
	lines=$(wc -l $dnsfile | awk '{print $1 }')

	
	rm -rf /tmp/dns.new.tmp
	if [ -n "$start_line" ] ; then
		if [ $start_line -gt 1 ] ; then 
			head -n $(($start_line-1))  $dnsfile            >>/tmp/dns.new.tmp
		fi
		if [ $end_line -lt $lines ] ; then
			tail -n $(( $lines - $end_line ))  $dnsfile     >>/tmp/dns.new.tmp
		fi
	else
		cat "$dnsfile"                                          >>/tmp/dns.new.tmp
	fi

	echo '###### BEGIN BONJOUR PRINTER CONFIGURATION #####' >>/tmp/dns.new.tmp
	printf "$new_lines\n"                                   >>/tmp/dns.new.tmp
	echo '###### END BONJOUR PRINTER CONFIGURATION #######' >>/tmp/dns.new.tmp
	
	original_md5=$(md5sum "$dnsfile")
	original_md5=${original_md5% *}
	new_md5=$(md5sum "/tmp/dns.new.tmp")
	new_md5=${new_md5% *}
	if [ "$original_md5" != "$new_md5" ] ; then
		mv /tmp/dns.new.tmp "$dnsfile"
		/etc/init.d/dnsmasq restart
	else
		rm -rf /tmp/dns.new.tmp
	fi
}




if [ -e /tmp/printer_hotplug_lock ] ; then exit ; fi
touch /tmp/printer_hotplug_lock

count=5
while [ ! -e /sys/kernel/debug/usb/devices ] && [ $count -gt 0 ] ; do
	sleep 1
	count=$(( $count - 1 ))
done 

if [ ! -e /sys/kernel/debug/usb/devices ] ; then 
	rm -rf /tmp/printer_hotplug_lock
	exit 
fi




p910nd_enabled=$(uci get p910nd.@p910nd[0].enabled 2>/dev/null)
p910nd_printer_name=$(uci get p910nd.@p910nd[0].printer_name 2>/dev/null)
printer="Unknown Printer"

if [ -n "$printer" ] ; then
		
	if [ "$p910nd_enabled" != "1" ] || [ "$p910nd_printer_name" != "$printer"  ] ; then
		uci set p910nd.@p910nd[0].enabled="1"
		uci set p910nd.@p910nd[0].printer_name="$printer"
		uci commit
		/etc/init.d/p910nd enable
		/etc/init.d/p910nd stop >/dev/null 2>&1
		/etc/init.d/p910nd start
	fi
	

	domain=$(uci get dhcp.@dnsmasq[0].domain)
	hostname=$(uci get system.@system[0].hostname)
	revip=$(uci get network.lan.ipaddr | sed 's/\./ /g' | awk ' { print "0."$3"."$2"."$1 ; }')
	dnsmasqConfLines=""
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=b._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=db._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=r._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=dr._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=lb._dns-sd._udp.$revip.in-addr.arpa,$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=_services._dns-sd._udp.$domain,_pdl-datastream._tcp.$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nptr-record=_pdl-datastream._tcp.$domain,$hostname._pdl-datastream._tcp.$domain\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\nsrv-host=Gargoyle._pdl-datastream._tcp.$domain,$hostname.$domain,9100\n")
	dnsmasqConfLines=$(printf "${dnsmasqConfLines}\ntxt-record=$hostname._pdl-datastream._tcp.$domain,ty=$printer,product=($printer),usb_MDL=$printer,txtvers=1,qtotal=1,priority=20\n")


	update_dnsmasq_conf "/etc/dnsmasq.conf" "$dnsmasqConfLines"

	#after we've found a printer we're done -- for now, only one printer at a time
elif [ "$p910nd_enabled" != "0" ] ; then
	uci set p910nd.@p910nd[0].enabled=0
	uci set p910nd.@p910nd[0].printer_name=""
	uci commit
	/etc/init.d/p910nd stop >/dev/null 2>&1
fi

rm -rf /tmp/printer_hotplug_lock

After Editing and refresh this window appeared for less than a second (I had to use a screen recorder to capture it)

https://ibb.co/Xz1pGm5

But After restarting the Router it worked !

https://ibb.co/s9gWtRq

I thought the problem is gone , but after trying to print test page from PC (port configured yesterday as per this guide https://www.gargoyle-router.com/wiki/do ... ed_printer , the page just go the print queue page for half a second and then disappear as if its already printed successfully , but the printer does not print any thing .
Deleted the port and reconfigured it again now the page go to the print Queue and stay there with status "printing" for a minute or two then failed .
For reminding : the printer driver works very good at this PC , I have printed 3 pages yesterday to check .
Last edited by thelordabdo on Fri Jun 28, 2019 1:37 pm, edited 1 time in total.
Archer C7 V5 / Gargoyle 1.12.0
TL-WR1043ND V2 / Gargoyle 1.10.0
TL-WR841ND V9 / GArgoyle 1.10.0

thelordabdo
Posts: 33
Joined: Thu Aug 27, 2015 6:25 pm

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by thelordabdo »

I have added this firewall rule

Code: Select all

#Allow attached network printer
config rule
        option src 'lan'
        option proto 'tcp'
        option dest_port '9100'
        option target 'ACCEPT'
then restarted the router , send many print test page from the PC , opened and closed the printer , plugged and unplugged it , then suddenly the test page has been printed once !! , tried to do this again but didn't figure how to print another one again , i may need to restart the router , I think I am too close to find a permanent solution but still don't know how .

this is my log :

Code: Select all

Fri Jun 28 19:01:03 2019 kern.info kernel: [  161.459932] usb 1-1: USB disconnect, device number 2
Fri Jun 28 19:01:09 2019 kern.info kernel: [  167.261521] usb 1-1: new high-speed USB device number 3 using ehci-platform
Fri Jun 28 19:01:09 2019 kern.info kernel: [  167.457059] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Fri Jun 28 19:01:09 2019 kern.info kernel: [  167.830032] usblp0: removed
Fri Jun 28 19:01:52 2019 daemon.info hostapd: wlan0: STA 00:36:76:21:2c:38 IEEE 802.11: authenticated
Fri Jun 28 19:01:52 2019 daemon.info hostapd: wlan0: STA 00:36:76:21:2c:38 IEEE 802.11: associated (aid 5)
Fri Jun 28 19:01:52 2019 daemon.notice hostapd: wlan0: AP-STA-CONNECTED 00:36:76:21:2c:38
Fri Jun 28 19:01:52 2019 daemon.info hostapd: wlan0: STA 00:36:76:21:2c:38 RADIUS: starting accounting session B4708D7C0245AF1F
Fri Jun 28 19:01:52 2019 daemon.info hostapd: wlan0: STA 00:36:76:21:2c:38 WPA: pairwise key handshake completed (RSN)
Fri Jun 28 19:02:05 2019 daemon.info dnsmasq-dhcp[2573]: DHCPREQUEST(br-lan) 192.168.0.3 00:36:76:21:2c:38
Fri Jun 28 19:02:05 2019 daemon.info dnsmasq-dhcp[2573]: DHCPACK(br-lan) 192.168.0.3 00:36:76:21:2c:38 M58P_PC
Fri Jun 28 19:02:35 2019 daemon.info dnsmasq-dhcp[2573]: DHCPDISCOVER(br-lan) 00:36:76:21:2c:38
Fri Jun 28 19:02:35 2019 daemon.info dnsmasq-dhcp[2573]: DHCPOFFER(br-lan) 192.168.0.3 00:36:76:21:2c:38
Fri Jun 28 19:02:35 2019 daemon.info dnsmasq-dhcp[2573]: DHCPDISCOVER(br-lan) 00:36:76:21:2c:38
Fri Jun 28 19:02:35 2019 daemon.info dnsmasq-dhcp[2573]: DHCPOFFER(br-lan) 192.168.0.3 00:36:76:21:2c:38
Fri Jun 28 19:02:35 2019 daemon.info dnsmasq-dhcp[2573]: DHCPDISCOVER(br-lan) 00:36:76:21:2c:38
Fri Jun 28 19:02:35 2019 daemon.info dnsmasq-dhcp[2573]: DHCPOFFER(br-lan) 192.168.0.3 00:36:76:21:2c:38
Fri Jun 28 19:05:31 2019 kern.info kernel: [  430.239560] usb 1-1: USB disconnect, device number 3
Fri Jun 28 19:05:50 2019 kern.info kernel: [  449.004335] usb 1-1: new high-speed USB device number 4 using ehci-platform
Fri Jun 28 19:05:50 2019 kern.info kernel: [  449.199936] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Fri Jun 28 19:05:51 2019 kern.warn kernel: [  449.620130] usblp0: nonzero write bulk status received: -143
Fri Jun 28 19:05:51 2019 kern.info kernel: [  449.631925] usblp0: removed
Fri Jun 28 19:07:10 2019 kern.info kernel: [  528.603682] usb 1-1: USB disconnect, device number 4
Fri Jun 28 19:07:30 2019 kern.info kernel: [  548.423564] usb 1-1: new high-speed USB device number 5 using ehci-platform
Fri Jun 28 19:07:30 2019 kern.info kernel: [  548.619082] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Fri Jun 28 19:07:30 2019 kern.info kernel: [  549.013648] usblp0: removed
Fri Jun 28 19:08:03 2019 kern.info kernel: [  581.716414] usb 1-1: USB disconnect, device number 5
Fri Jun 28 19:08:08 2019 kern.info kernel: [  586.283187] usb 1-1: new high-speed USB device number 6 using ehci-platform
Fri Jun 28 19:08:08 2019 kern.info kernel: [  586.478773] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Fri Jun 28 19:08:08 2019 kern.info kernel: [  586.863675] usblp0: removed
Fri Jun 28 19:09:25 2019 kern.info kernel: [  664.042414] usb 1-1: USB disconnect, device number 6
Fri Jun 28 19:09:44 2019 kern.info kernel: [  682.663827] usb 1-1: new high-speed USB device number 7 using ehci-platform
Fri Jun 28 19:09:44 2019 kern.info kernel: [  682.859433] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Fri Jun 28 19:09:44 2019 kern.info kernel: [  683.227782] usblp0: removed
Success
Archer C7 V5 / Gargoyle 1.12.0
TL-WR1043ND V2 / Gargoyle 1.10.0
TL-WR841ND V9 / GArgoyle 1.10.0

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by RomanHK »

This is a known problem with these printers, and you can get trouble-free by turning off the "HP Smart Install" feature. In this function, a CD-ROM is created and the USB ports are shifted.

Connect the printer to your PC and turn it off: https://h30434.www3.hp.com/t5/Printer-S ... -p/6262621
+
You can still try to turn off the Auto-Off function so that it does not turn off after a long period of inactivity: https://www.youtube.com/watch?v=4kJw1p2RhxI
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

thelordabdo
Posts: 33
Joined: Thu Aug 27, 2015 6:25 pm

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by thelordabdo »

RomanHK wrote:This is a known problem with these printers, and you can get trouble-free by turning off the "HP Smart Install" feature. In this function, a CD-ROM is created and the USB ports are shifted.

Connect the printer to your PC and turn it off: https://h30434.www3.hp.com/t5/Printer-S ... -p/6262621
+
You can still try to turn off the Auto-Off function so that it does not turn off after a long period of inactivity: https://www.youtube.com/watch?v=4kJw1p2RhxI
Thanks for your help , but I have disabled the HP Smart install before posting this topic , not in windows 10 but I don't think it will matter much , I checked it again now and it's clearly disabled

https://ibb.co/DMPXN14

For the Auto-Off function it's 2 hours at PC , but nevertheless the printer didn't work even if I just turned it on , I think from my searching and readings its about gargoyle not loading the driver correctly , but don't know how to fix it yet .
Archer C7 V5 / Gargoyle 1.12.0
TL-WR1043ND V2 / Gargoyle 1.10.0
TL-WR841ND V9 / GArgoyle 1.10.0

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by RomanHK »

I'm sorry, I missed the "HP Smart Install" :oops: .

The driver does not look like this, the connection is cycling, and I suspected the creation of a virtual CD-ROM.

Try replacing the USB cable with a short one. There may be a problem with the power or frequency between the USB port and the printer.

I have this type of printer in my job (even this type of router), I will try and give a report after the weekend.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

thelordabdo
Posts: 33
Joined: Thu Aug 27, 2015 6:25 pm

Re: HP Laser jet P1102 and TP-WR1043ND v2

Post by thelordabdo »

RomanHK wrote:I'm sorry, I missed the "HP Smart Install" :oops: .

The driver does not look like this, the connection is cycling, and I suspected the creation of a virtual CD-ROM.

Try replacing the USB cable with a short one. There may be a problem with the power or frequency between the USB port and the printer.

I have this type of printer in my job (even this type of router), I will try and give a report after the weekend.
Thank you for your help , I will try to search for another cable to test , the driver you mean at the photo ? may be because this printer is attached to an old Windows XP PC that I have so the driver is different from the Windows 10 PC .

I suspect the solution is at changing gargoyle settings , because the printer printed a page once when I was playing with the router settings and restarting it , but couldn't repeat that again till now .
Archer C7 V5 / Gargoyle 1.12.0
TL-WR1043ND V2 / Gargoyle 1.10.0
TL-WR841ND V9 / GArgoyle 1.10.0

Post Reply