OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
967 stars 177 forks source link

IOS 17.3 IPhone 12 Pictures APP can not choose cups printer #884

Closed tianmax closed 3 months ago

tianmax commented 5 months ago

Describe the bug IOS 17.3 IPhone 12 Pictures APP can not choose cups printer.

To Reproduce Steps to reproduce the behavior:

  1. Goto iPhone Pictures APP
  2. Choose Print, Choose CUPS printer
  3. But can not choose this printer

System Information:

michaelrsweet commented 5 months ago

Do you mean the "Photos" app?

What printer are you trying to print to? What driver are you using?

tianmax commented 5 months ago

Yes, HP DJ 2132, HP Laserjet 1020 I used Wireshark to capture packets and found that there were only MDNS requests and responses, without connecting to the TCP 631 interface. It may be a problem with some iPhone models. Thank you for your reply.

gmuth commented 5 months ago

This looks more like a config/setup/network/bonjour-printer-discovery issue to me. You can check your Bonjour setup like this:

dns-sd -Z _universal._ipp._tcp

You should see PTR, SRV and TXT records for your printer. Depending on your OS and CUPS Version, printer sharing for iOS devices might not be enabled by default. Not sure, but is iOS officially supported by CUPS on any platform?

tianmax commented 5 months ago

photos_mdns.pcapng.zip Here is pcap files of wireshark, Thanks for help.

michaelrsweet commented 5 months ago

Well, the packet trace you attached shows the client querying and getting the address and TXT records for each of the shared printers, so that part (at least) is working.

It would be useful to see a trace showing the port 631 traffic, as well as a debug log from the CUPS server when you pick one of the printers.

tianmax commented 5 months ago

I used Wireshark to capture packets, but after communicating with MDNS, I did not detect any communication with TCP port 631. What fields in the photo app may not have been met in the MDNS response? Or what kind of bug is in the photo app? Other apps are working normally, such as the browser, memo, and so on。 Thank you for your reply.

michaelrsweet commented 4 months ago

You should see activity on port 631 once you select one of the CUPS printers, no matter the application. Just browsing the available printers won't trigger an IPP request.

tianmax commented 4 months ago

Yes, I know, I have chosen a CUPS printer, But there is no interaction with port 631 in wireshak or cups's log, and this printer cannot be selected on the Photos APP GUI. Thank you for your reply.