helloSystem / Utilities

Utilities written in PyQt5, meant for use with helloSystem
BSD 2-Clause "Simplified" License
27 stars 29 forks source link

Zeroconf.app: Handle _scanner._tcp #15

Open probonopd opened 3 years ago

probonopd commented 3 years ago

skanlite seems to recognize

=    em0 IPv4 HP LaserJet 200 colorMFP M276n (...)       _scanner._tcp        local
   hostname = [....local]
   address = [...]
   port = [8289]
   txt = ["note=" "flatbed=T" "feeder=T" "button=T" "mdl=200 colorMFP M276n" "mfg=Hewlett Packard" "ty=HP LaserJet 200 colorMFP M276n" "adminurl=http://....local." "txtvers=1"]

=    em0 IPv4 HP LaserJet 200 colorMFP M276n (...)       _ipp._tcp            local
   hostname = [....local]
   address = [192.168.0.30]
   port = [631]
   txt = ["mac=..." "usb_MDL=HP LaserJet 200 colorMFP M276n" "usb_MFG=Hewlett-Packard" "UUID=..." "Fax=T" "Scan=T" "Duplex=F" "Color=T" "note=" "adminurl=http://....local." "priority=10" "product=(HP LaserJet 200 colorMFP M276n)" "ty=HP LaserJet 200 colorMFP M276n" "URF=V1.1,CP99,W8,OB10,PQ3-4-5,ADOBERGB24,DEVRGB24,DEVW8,SRGB24,IS1-4,MT1-2-3-5-12,RS600" "rp=ipp/print" "pdl=application/postscript,application/vnd.hp-PCL,application/vnd.hp-PCLXL,application/pdf,image/urf" "qtotal=1" "txtvers=1"]

but then ends with

image

xsane gives:

image

Semi-related discussion: https://github.com/helloSystem/ISO/issues/58

probonopd commented 3 years ago
OptiPlex-780:/home/user% scanimage -L
device `hpaio:/net/HP_LaserJet_200_colorMFP_M276n?ip=192.168.0.30' is a Hewlett-Packard HP_LaserJet_200_colorMFP_M276n all-in-one
probonopd commented 3 years ago

cat /var/log/messages shows:

Dec 29 13:25:04 FreeBSD xsane[10041]: protocol/discovery/mdns.c 109: unable to bind udp socket: Address already in use
Dec 29 13:25:04 FreeBSD xsane[10041]: common/utils.c 112: unable to open /var/lib/hp/hplip.state: No such file or directory
Dec 29 13:25:04 FreeBSD xsane[10041]: common/utils.c 162: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Dec 29 13:25:04 FreeBSD xsane[10041]: common/utils.c 206: Plugin version is not matching 
Dec 29 13:25:04 FreeBSD xsane[10041]: common/utils.c 277: Invalid Library hanlder pLibHandler = NULL.
Dec 29 13:25:22 FreeBSD xsane[10043]: protocol/discovery/mdns.c 109: unable to bind udp socket: Address already in use
Dec 29 13:25:22 FreeBSD xsane[10043]: common/utils.c 112: unable to open /var/lib/hp/hplip.state: No such file or directory
Dec 29 13:25:22 FreeBSD xsane[10043]: common/utils.c 162: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Dec 29 13:25:22 FreeBSD xsane[10043]: common/utils.c 206: Plugin version is not matching 
Dec 29 13:25:22 FreeBSD xsane[10043]: common/utils.c 277: Invalid Library hanlder pLibHandler = NULL.
Dec 29 13:27:47 FreeBSD xsane[10163]: io/hpmud/model.c 532: no laserjet_200_colormfp_m276n attributes found in /usr/local/share/hplip/data/models/models.dat
Dec 29 13:27:47 FreeBSD xsane[10163]: io/hpmud/model.c 543: no laserjet_200_colormfp_m276n attributes found in /usr/local/share/hplip/data/models/unreleased/unreleased.dat
Dec 29 13:27:47 FreeBSD xsane[10163]: common/utils.c 112: unable to open /var/lib/hp/hplip.state: No such file or directory
Dec 29 13:27:47 FreeBSD xsane[10163]: common/utils.c 162: validate_plugin_version() Failed to get Plugin version from [/var/lib/hp/hplip.state]
Dec 29 13:27:47 FreeBSD xsane[10163]: common/utils.c 206: Plugin version is not matching 
Dec 29 13:27:47 FreeBSD xsane[10163]: common/utils.c 277: Invalid Library hanlder pLibHandler = NULL.