Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem working with AirSane #4

Open
jmarchewka opened this issue May 28, 2023 · 2 comments
Open

Problem working with AirSane #4

jmarchewka opened this issue May 28, 2023 · 2 comments

Comments

@jmarchewka
Copy link

Hello! I am having an issue using this on an iPad (MYFY2LL/A, 16,4,1(a) ) and communicating with an AirSane instance (https://github.com/SimulPiscator/AirSane.) My AirSane instance does work on my Mac mini M2 with macOS Ventura 13.2.1.

When I launch OpenAirScan, it finds the scanner, but it just shows a spinner for the space where the icon would be, and when I click on the scanner, the next page has no options. Clicking 'Custom Scan' and then 'Start scan!' just brings up an red banner stating 'the scanner is busy!'

IMG_0220

IMG_0221

I have checked the URLs and they are using self-signed certificates, but I am able to access them with the iPad. Here is the output from Bonjour (via the Discovery app) for the scanner along with the XML from the ScannerCapabilities endpoint.

_uscans._tcp. - 1 item
FUJITSU fi-6110dj
officepi.local.
192.168.50.5:4443
192.168.99.10:4443
txtvers=1
vers=2.0
pdl=application/pdf,image/jpeg,image/png
ty=FUJITSU fi-6110dj
note=2nd Floor Office
uuid=561ca374-a30b-5d55-b459-632579be635e
rs=561ca374-a30b-5d55-b459-632579be635e
cs=grayscale,color
is=adf
duplex=T
adminurl=https://officepi.duplexx.net:4443/561ca374-a30b-5d55-b459-632579be635e
representation=https://officepi.duplexx.net:4443/561ca374-a30b-5d55-b459-632579be635e/ScannerIcon
<scan:ScannerCapabilities xmlns:pwg="http://www.pwg.org/schemas/2010/12/sm" xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03">
<pwg:Version>2.0</pwg:Version>
<pwg:MakeAndModel>FUJITSU fi-6110dj</pwg:MakeAndModel>
<pwg:SerialNumber>1.0</pwg:SerialNumber>
<scan:UUID>561ca374-a30b-5d55-b459-632579be635e</scan:UUID>
<scan:AdminURI>
https://officepi.duplexx.net:4443/561ca374-a30b-5d55-b459-632579be635e
</scan:AdminURI>
<scan:IconURI>
https://officepi.duplexx.net:4443/561ca374-a30b-5d55-b459-632579be635e/ScannerIcon
</scan:IconURI>
<scan:Adf>
<scan:AdfDuplexInputCaps>
<scan:MinWidth>0</scan:MinWidth>
<scan:MinHeight>0</scan:MinHeight>
<scan:MaxWidth>2550</scan:MaxWidth>
<scan:MaxHeight>3300</scan:MaxHeight>
<scan:MaxPhysicalWidth>2550</scan:MaxPhysicalWidth>
<scan:MaxPhysicalHeight>3300</scan:MaxPhysicalHeight>
<scan:MaxScanRegions>1</scan:MaxScanRegions>
<scan:SettingProfiles>
<scan:SettingProfile name="0">
<scan:ColorModes>
<scan:ColorMode>Grayscale8</scan:ColorMode>
<scan:ColorMode>RGB24</scan:ColorMode>
</scan:ColorModes>
<scan:ColorSpaces>
<scan:ColorSpace>RGB</scan:ColorSpace>
</scan:ColorSpaces>
<scan:SupportedResolutions>
<scan:DiscreteResolutions>
<scan:DiscreteResolution>
<scan:XResolution>50</scan:XResolution>
<scan:YResolution>50</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>75</scan:XResolution>
<scan:YResolution>75</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>150</scan:XResolution>
<scan:YResolution>150</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>300</scan:XResolution>
<scan:YResolution>300</scan:YResolution>
</scan:DiscreteResolution>
<scan:DiscreteResolution>
<scan:XResolution>600</scan:XResolution>
<scan:YResolution>600</scan:YResolution>
</scan:DiscreteResolution>
</scan:DiscreteResolutions>
</scan:SupportedResolutions>
<scan:DocumentFormats>
<pwg:DocumentFormat>application/pdf</pwg:DocumentFormat>
<pwg:DocumentFormat>image/jpeg</pwg:DocumentFormat>
<pwg:DocumentFormat>image/png</pwg:DocumentFormat>
</scan:DocumentFormats>
</scan:SettingProfile>
</scan:SettingProfiles>
<scan:SupportedIntents>
<scan:SupportedIntent>TextAndGraphic</scan:SupportedIntent>
<scan:SupportedIntent>Photo</scan:SupportedIntent>
</scan:SupportedIntents>
</scan:AdfDuplexInputCaps>
<scan:AdfOptions>
<scan:AdfOption>DetectPaperLoaded</scan:AdfOption>
</scan:AdfOptions>
</scan:Adf>
</scan:ScannerCapabilities>

Thanks for any help you can provide!

@LeoKlaus
Copy link
Owner

I'll have to spin up an instance of AirSane myself to troubleshoot this.

The image doesn't load as there is no image specified in the path returned by AirSane, it's just a directory.

@jmarchewka
Copy link
Author

The image doesn't load as there is no image specified in the path returned by AirSane, it's just a directory.

That URL does point to a valid image. I am not sure if the escl spec requires a filename.

curl --insecure -v https://officepi.duplexx.net:4443/561ca374-a30b-5d55-b459-632579be635e/ScannerIcon
*   Trying 192.168.50.5:4443...
* Connected to officepi.duplexx.net (192.168.50.5) port 4443 (#0)
* ALPN: offers h2
* ALPN: offers http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* (304) (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: CN=tvpi
*  start date: Oct 13 22:08:29 2022 GMT
*  expire date: Oct 10 22:08:29 2032 GMT
*  issuer: CN=tvpi
*  SSL certificate verify result: self signed certificate (18), continuing anyway.
> GET /561ca374-a30b-5d55-b459-632579be635e/ScannerIcon HTTP/1.1
> Host: officepi.duplexx.net:4443
> User-Agent: curl/7.86.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx/1.10.3
< Date: Sun, 28 May 2023 17:59:50 GMT
< Content-Type: image/png
< Transfer-Encoding: chunked
< Connection: keep-alive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants