Hi All! I installed p910nd, kmod-usb2, kmod-usb-core kmod-usb-printer, but the printers do not print. On owrt 17 everything worked.
My configs:
/etc/config/p910nd
config p910nd
option runas_root '0'
option mdns '0'
option mdns_ty 'HP Deskget GT 5810'
option mdns_note 'Color Print'
option enabled '1'
option device '/dev/descjet5800'
option port '1'
option bidirectional '1'
config p910nd
option enabled '1'
option device '/dev/scx4200'
option port '2'
option bidirectional '1'
firewall rule:
config rule
option name 'Allow_p910'
option target 'ACCEPT'
option src '*'
option dest_port '9100-9102'
list proto 'tcp'
/etc/hotplug.d/usb/samsungScx4200
DEV_PRODUCT="4e8/341b/100"
SYMLINK="scx4200"
if [ "${PRODUCT}" = "${DEV_PRODUCT}" ];
then
if [ "${ACTION}" = "add" ];
then
DEVICE_NAME=$(ls /sys$DEVPATH/usbmisc | grep lp)
if [ -z ${DEVICE_NAME} ];
then
exit
fi
logger -t hotplug Device name of SAMSUNG SCX 4200 is $DEVICE_NAME
ln -s /dev/usb/$DEVICE_NAME /dev/${SYMLINK}
logger -t hotplug Symlink from /dev/usb/$DEVICE_NAME to /dev/${SYMLINK} created
fi
if [ "${ACTION}" = "remove" ];
then
if [ -L /dev/${SYMLINK} ];
then
rm /dev/${SYMLINK}
logger -t hotplug Symlink /dev/${SYMLINK} removed
fi
fi
fi
/etc/hotplug.d/usb/hpDeskjet5800
DEV_PRODUCT="3f0/ed11/100"
SYMLINK="descjet5800"
if [ "${PRODUCT}" = "${DEV_PRODUCT}" ];
then
if [ "${ACTION}" = "add" ];
then
DEVICE_NAME=$(ls /sys$DEVPATH/usbmisc | grep lp)
if [ -z ${DEVICE_NAME} ];
then
exit
fi
logger -t hotplug Device name of HP DESKJET 5800 is $DEVICE_NAME
ln -s /dev/usb/$DEVICE_NAME /dev/${SYMLINK}
logger -t hotplug Symlink from /dev/usb/$DEVICE_NAME to /dev/${SYMLINK} created
fi
if [ "${ACTION}" = "remove" ];
then
if [ -L /dev/${SYMLINK} ];
then
rm /dev/${SYMLINK}
logger -t hotplug Symlink /dev/${SYMLINK} removed
fi
fi
fi
/etc/hotplug.d/usb/20-saned - auto
Windows firewall is turned off. If I send .prn to the device from the router (for e.x.: cat scx.prn > /dev/scx4200), printing works. Doesn't work from the computer anymore.
netstat -an (192.168.2.1 - ROUTER IP):
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:9101 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9102 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.143:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.1:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.1:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 0 0 192.168.2.1:22 192.168.2.8:63411 ESTABLISHED
tcp 96540 0 192.168.2.1:9102 192.168.2.8:63452 ESTABLISHED
If you plug in the LAN interface, it doesn't work either. Any ideas?