[SM3] New to list with questions

[SM3] New to list with questions

Mark DM markosjal at gmail.com
Tue Jun 4 17:58:30 UTC 2019


Hello,

I am new to the list and although I am not sure if I am in the right place
or if anyone here can offer some advice. I am trying to make a small
sheetfeed scanner compatible with eSCL/AirScan. It currently works with
VueScan but fails on Mopria Android and OSX. I am not some big manufacturer
nor contracted by one.  This is for a small embedded use.

As I find no coherent list of these HTML/XML exchanges and how they should
be for a successful scan,  nor do I have a genuine device to capture
packets from, most of the information I have gleaned elsewhere to produce
the following which is actually from eSCL/ScanneStatus while scanning  .
The problem I am having is that OSX is looking for some different status in
ScannerStatus than I am offering but have no idea what to tell it. VueScan
on the other hand works 100% but it appears it takes the "201 Created" and
"Location: /eSCL/folder" from the header, ingnoring ScannerStatus and
starts the download from there

Any help appreciated, thanks.

Mark


 // scanner off
<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:State>Stopped</pwg:State>
</scan:ScannerStatus>


//scanner turned on and ScannerCapabilities queried by OSX.


//Scan job sent by OSX


<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:State>Processing</pwg:State>
<scan:Jobs>
<scan:JobInfo>
<pwg:JobUri>/eSCL/ScanJobs</pwg:JobUri>
<scan:TransferRetryCount>0</scan:TransferRetryCount>
<pwg:JobState>Processing</pwg:JobState>
<pwg:JobStateReasons>
<pwg:JobStateReason>JobScanning</pwg:JobStateReason>
</pwg:JobStateReasons>
</scan:JobInfo>
</scan:Jobs>
</scan:ScannerStatus>



<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:State>Processing</pwg:State>
<scan:Jobs>
<scan:JobInfo>
<pwg:JobUri>/eSCL/ScanJobs</pwg:JobUri>
<scan:TransferRetryCount>0</scan:TransferRetryCount>
<pwg:JobState>Processing</pwg:JobState>
<pwg:JobStateReasons>
<pwg:JobStateReason>JobScanning</pwg:JobStateReason>
</pwg:JobStateReasons>
</scan:JobInfo>
</scan:Jobs>
</scan:ScannerStatus>


<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:State>Processing</pwg:State>
<scan:Jobs>
<scan:JobInfo>
<pwg:JobUri>/eSCL/ScanJobs</pwg:JobUri>
<scan:TransferRetryCount>0</scan:TransferRetryCount>
<pwg:JobState>Processing</pwg:JobState>
<pwg:JobStateReasons>
<pwg:JobStateReason>JobScanning</pwg:JobStateReason>
</pwg:JobStateReasons>
</scan:JobInfo>
</scan:Jobs>
</scan:ScannerStatus>


<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:State>Idle</pwg:State>
<scan:Jobs>
<scan:JobInfo>
<pwg:JobUri>/eSCL/ScanJobs</pwg:JobUri>
<scan:Age>2</scan:Age>
<pwg:ImagesCompleted>1</pwg:ImagesCompleted>
<pwg:ImagesToTransfer>1</pwg:ImagesToTransfer>
<scan:TransferRetryCount>0</scan:TransferRetryCount>
<pwg:JobState>Completed</pwg:JobState>
<pwg:JobStateReasons>
<pwg:JobStateReason>JobCompletedSuccessfully</pwg:JobStateReason>
</pwg:JobStateReasons>
</scan:JobInfo>
</scan:Jobs>
</scan:ScannerStatus>

//Scan job shows completed but this may be the incorrect status to show
//At this point OSX just queries ScannerStatus repeately looking for
something that it is not seeing

<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:State>Idle</pwg:State>
<scan:Jobs>
<scan:JobInfo>
<pwg:JobUri>/eSCL/ScanJobs</pwg:JobUri>
<scan:Age>7</scan:Age>
<pwg:ImagesCompleted>1</pwg:ImagesCompleted>
<pwg:ImagesToTransfer>1</pwg:ImagesToTransfer>
<scan:TransferRetryCount>0</scan:TransferRetryCount>
<pwg:JobState>Completed</pwg:JobState>
<pwg:JobStateReasons>
<pwg:JobStateReason>JobCompletedSuccessfully</pwg:JobStateReason>
</pwg:JobStateReasons>
</scan:JobInfo>
</scan:Jobs>
</scan:ScannerStatus>



<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:State>Idle</pwg:State>
<scan:Jobs>
<scan:JobInfo>
<pwg:JobUri>/eSCL/ScanJobs</pwg:JobUri>
<scan:Age>9</scan:Age>
<pwg:ImagesCompleted>1</pwg:ImagesCompleted>
<pwg:ImagesToTransfer>1</pwg:ImagesToTransfer>
<scan:TransferRetryCount>0</scan:TransferRetryCount>
<pwg:JobState>Completed</pwg:JobState>
<pwg:JobStateReasons>
<pwg:JobStateReason>JobCompletedSuccessfully</pwg:JobStateReason>
</pwg:JobStateReasons>
</scan:JobInfo>
</scan:Jobs>
</scan:ScannerStatus>

// scanner turned OFF

<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF
ORIGIN. -->
<scan:ScannerStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:scan="http://schemas.hp.com/imaging/escl/2011/05/03" xmlns:pwg="
http://www.pwg.org/schemas/2010/12/sm" xsi:schemaLocation="
http://schemas.hp.com/imaging/escl/2011/05/03 eSCL.xsd">
<pwg:Version>2.5</pwg:Version>
<pwg:State>Stopped</pwg:State>
</scan:ScannerStatus>


More information about the sm3 mailing list