watson / ipp-printer

An IPP printer written in Node.js
MIT License
548 stars 81 forks source link

Sending universal subtype #15

Open laughinglion opened 7 years ago

laughinglion commented 7 years ago

Hi,

I'm trying to send the universal subtype but can't get it working. I'm calling bonjour as follows:

bonjour.publish({ txt: {rp: 'printers/Printer1', usb_MFG: 'Astrium', usb_MDL: 'Astrium Printer 1', product: '(Astrium Printer)', ty: 'Astrium Printer', pdl: 'application/pdf,image/urf', URF: 'W8,DM3,CP255,RS600'}, type: 'ipp', port: printer.port, name: printer.name, subtypes: [ '_universal']})

I've tried removing the underscore as well.

Any suggestions?

laughinglion commented 7 years ago

As an addendum, I am checking with this command: dns-sd -Z _ipp._tcp,_universal It only shows my HP printer as a result. My IPP printer shows up if I remove ,_universal from the command.

watson commented 7 years ago

Good question. I think maybe some of the subtype stuff is not fully implemented/broken

laughinglion commented 7 years ago

I've replaced the bonjour call with the mdns package. my iPhone can now see the printer and send a print job. I actually managed to print a doc from my phone to the ipp printer, but it only worked once :-( Will give feedback on how it goes.

watson commented 7 years ago

Thanks for the info 👍